Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

nanomud-settings.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#include <winsock.h>
#include <richedit.h>
#include "NanoMud.h"
#include <assert.h>

Include dependency graph for nanomud-settings.c:

Include dependency graph

Go to the source code of this file.

Functions

void CreateSettings (void)
void load_settings ()
void save_settings ()
LRESULT CALLBACK SettingsProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
void SetupSettingDialog (void)

Variables

HWND dcolour
HWND EA
HWND EB
HWND ECC
HWND EM
HWND EP
HWND EPP
HWND ES
HWND ESS
HWND ESSS
HWND ET
HWND ETL
HWND ETN
HWND EUR
HWND max_buffer
HWND ODS
RECT srect
HWND UMC


Function Documentation

void CreateSettings void   ) 
 

Definition at line 207 of file nanomud-settings.c.

References g_hInst, GiveError(), MudSettings, SettingsProc, SettingsProcedure(), and SetupSettingDialog().

Referenced by WindowProcedure().

00208 {
00209     if (IsWindow(MudSettings))
00210         return;
00211     MudSettings = CreateWindowEx(WS_EX_TOPMOST  ,"Settings","NanoMud Settings",  WS_SYSMENU|WS_MINIMIZEBOX,
00212         200,200,360,360,0,0,g_hInst,0);
00213     SettingsProc = (WNDPROC) SetWindowLong(MudSettings, GWL_WNDPROC, (LONG)SettingsProcedure); 
00214     ShowWindow(MudSettings, SW_SHOW);
00215     if (!IsWindow(MudSettings))
00216     {
00217         GiveError("Unable to create settings window.",0);
00218         return;
00219     }
00220     SetupSettingDialog();
00221     return;
00222 }

Here is the call graph for this function:

void load_settings  ) 
 

Definition at line 180 of file nanomud-settings.c.

References give_term_error(), handle_input(), read_string(), and SETTINGS_FILE.

Referenced by WinMain().

00181 {
00182     FILE *fp;
00183     int ret;
00184     char buf[1000];
00185     char temp[1000];
00186     
00187     if ((fp=fopen(SETTINGS_FILE, "r")) == NULL)
00188     {
00189         give_term_error("Unable to open %s settings file for reading. Settings will be defaulted.", SETTINGS_FILE);
00190         return;
00191     }
00192     
00193     while ((ret = read_string(temp, fp)) > -1)
00194     {
00195         temp[ret] = '\0'; 
00196         sprintf(buf, "#setoption %s", temp);
00197 
00198         handle_input(buf);
00199         temp[0] = '\0';
00200         buf[0] = '\0';
00201        
00202     }    
00203 
00204 }

Here is the call graph for this function:

void save_settings  ) 
 

Definition at line 130 of file nanomud-settings.c.

References session_data::colour, session_data::EnableAliases, session_data::EnableBlinkies, session_data::EnableClientChat, session_data::EnableMacros, session_data::EnablePaths, session_data::EnablePing, session_data::EnableScripts, session_data::EnableSound, session_data::EnableSplashScreen, session_data::EnableTestLogging, session_data::EnableTN, session_data::EnableTriggers, session_data::EnableUsageReports, give_term_error(), session_data::host, session_data::IsBetaTester, session_data::max_buffer, session_data::name, session_data::OptimizeDualScreen, session_data::port, SETTINGS_FILE, this_session, and session_data::UseMemoryCompression.

Referenced by SettingsProcedure(), and WinMain().

00131 {
00132     FILE *fp; 
00133     
00134     
00135     if ((fp=fopen(SETTINGS_FILE,"w")) == NULL)
00136     {
00137         give_term_error("Unable to open %s setting file for writing. Settings will not be saved.", SETTINGS_FILE);
00138         return;
00139     }
00140     
00141     this_session->UseMemoryCompression = FALSE;
00142     this_session->OptimizeDualScreen = FALSE;
00143     this_session->EnableClientChat = FALSE;
00144     this_session->EnableUsageReports = FALSE;
00145     
00146     // write settings
00147         
00148     fprintf(fp, "name %s\n", this_session->name);
00149     fprintf(fp, "host %s\n", this_session->host);    
00150     fprintf(fp, "port %d\n", this_session->port);
00151     fprintf(fp, "colour %d\n", this_session->colour >=1 ? 1 : 0); // BOOL
00152     fprintf(fp, "max_buffer %d\n", this_session->max_buffer);
00153     fprintf(fp, "UseMemoryCompression %d\n", this_session->UseMemoryCompression>=1 ? 1 : 0); //bool
00154     fprintf(fp, "IsBetaTester %d\n", this_session->IsBetaTester>=1 ? 1 : 0); //bool
00155     fprintf(fp, "EnableTestLogging %d\n", this_session->EnableTestLogging>=1 ? 1 : 0); //bool
00156     fprintf(fp, "OptimizeDualScreen %d\n", this_session->OptimizeDualScreen>=1 ? 1 : 0); //bool
00157     fprintf(fp, "EnableScripts %d\n", this_session->EnableScripts>=1 ? 1 : 0); //bool
00158     fprintf(fp, "EnableAliases %d\n", this_session->EnableAliases>=1 ? 1 : 0);//bool
00159     fprintf(fp, "EnableTriggers %d\n", this_session->EnableTriggers>=1 ? 1 : 0);//bool
00160     fprintf(fp, "EnablePaths %d\n", this_session->EnablePaths>=1 ? 1 : 0);//bool
00161     fprintf(fp, "EnableMacros %d\n", this_session->EnableMacros>=1 ? 1 : 0);//bool
00162     fprintf(fp, "EnableSplashScreen %d\n", this_session->EnableSplashScreen>=1 ? 1 : 0);//bool
00163     fprintf(fp, "EnableClientChat %d\n", this_session->EnableClientChat>=1 ? 1 : 0);//bool
00164     fprintf(fp, "EnablePing %d\n", this_session->EnablePing>=1 ? 1 : 0);//bool
00165     fprintf(fp, "EnableUsageReports %d\n", this_session->EnableUsageReports>=1 ? 1 : 0);//bool
00166     fprintf(fp, "EnableBlinkies %d\n", this_session->EnableBlinkies>=1 ? 1 : 0);//bool
00167     fprintf(fp, "EnableSound %d\n", this_session->EnableSound>=1 ? 1 : 0);//bool
00168     fprintf(fp, "EnableTN %d\n", this_session->EnableTN>=1 ? 1 : 0); //bool
00169     
00170     fclose(fp);
00171     
00172 
00173 
00174 }

Here is the call graph for this function:

LRESULT CALLBACK SettingsProcedure HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam
 

Definition at line 226 of file nanomud-settings.c.

References session_data::colour, dcolour, EA, EB, ECC, EM, session_data::EnableAliases, session_data::EnableBlinkies, session_data::EnableClientChat, session_data::EnableMacros, session_data::EnablePaths, session_data::EnablePing, session_data::EnableScripts, session_data::EnableSound, session_data::EnableSplashScreen, session_data::EnableTestLogging, session_data::EnableTN, session_data::EnableTriggers, session_data::EnableUsageReports, EP, EPP, ES, ESS, ESSS, ET, ETL, ETN, EUR, g_hInst, ID_CONFIG_COLOR, ID_CONFIG_EA, ID_CONFIG_EB, ID_CONFIG_ECC, ID_CONFIG_EM, ID_CONFIG_EP, ID_CONFIG_EPP, ID_CONFIG_ES, ID_CONFIG_ESS, ID_CONFIG_ESSS, ID_CONFIG_ET, ID_CONFIG_ETL, ID_CONFIG_ETN, ID_CONFIG_EUR, ID_CONFIG_ODS, ID_CONFIG_UMC, MudSettings, ODS, session_data::OptimizeDualScreen, save_settings(), srect, this_session, UMC, and session_data::UseMemoryCompression.

Referenced by CreateSettings().

00227 {
00228     switch (message) 
00229     {
00230         case WM_CREATE:
00231         {
00232 
00233             
00234             GetClientRect(MudSettings, &srect);            
00235             dcolour = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Colours On/off",
00236                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,10,350,20,hwnd,(HMENU)ID_CONFIG_COLOR,g_hInst,0);
00237             ShowWindow(dcolour,SW_SHOW);
00238             
00239             UMC = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Memory Compression (expiermental) On/off",
00240                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,30,350,20,hwnd,(HMENU)ID_CONFIG_UMC,g_hInst,0);
00241             ShowWindow(UMC,SW_SHOW);
00242             
00243             ETL = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Test logging (not recommended) On/off",
00244                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,50,350,20,hwnd,(HMENU)ID_CONFIG_ETL,g_hInst,0);
00245             ShowWindow(ETL,SW_SHOW);  
00246 
00247             ODS = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Optimise Dualscreen (expiermental) On/off",
00248                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,70,350,20,hwnd,(HMENU)ID_CONFIG_ODS,g_hInst,0);
00249             ShowWindow(ODS,SW_SHOW);            
00250             
00251             ES =  CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Use Scripts On/off",
00252                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,90,350,20,hwnd,(HMENU)ID_CONFIG_ES,g_hInst,0);
00253             ShowWindow(ES,SW_SHOW);
00254             
00255             EA = CreateWindowEx(WS_EX_WINDOWEDGE    , "BUTTON", "Aliases On/off",
00256                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,110,350,20,hwnd,(HMENU)ID_CONFIG_EA,g_hInst,0);
00257             ShowWindow(EA,SW_SHOW);    
00258             
00259             ET = CreateWindowEx(WS_EX_WINDOWEDGE    , "BUTTON", "Triggers On/off",
00260                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,130,350,20,hwnd,(HMENU)ID_CONFIG_ET,g_hInst,0);
00261             ShowWindow(ET,SW_SHOW);  
00262             
00263             EP = CreateWindowEx(WS_EX_WINDOWEDGE    , "BUTTON", "Paths On/off",
00264                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,150,350,20,hwnd,(HMENU)ID_CONFIG_EP,g_hInst,0);
00265             ShowWindow(EP,SW_SHOW);  
00266             
00267             EM = CreateWindowEx(WS_EX_WINDOWEDGE    , "BUTTON", "Macros On/off",
00268                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,170,350,20,hwnd,(HMENU)ID_CONFIG_EM,g_hInst,0);
00269             ShowWindow(EM,SW_SHOW);  
00270             
00271             ESS = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "SplashScreen On/off",
00272                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,190,350,20,hwnd,(HMENU)ID_CONFIG_ESS,g_hInst,0);
00273             ShowWindow(ESS,SW_SHOW);  
00274             
00275             ECC = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Client Chat (expiermental) On/off",
00276                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,210,350,20,hwnd,(HMENU)ID_CONFIG_ECC,g_hInst,0);
00277             ShowWindow(ECC,SW_SHOW);  
00278             
00279             EPP = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Ping On/off",
00280                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,230,350,20,hwnd,(HMENU)ID_CONFIG_EPP,g_hInst,0);
00281             ShowWindow(EPP,SW_SHOW);  
00282 
00283             
00284             EUR = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Usage Reports On/off",
00285                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,250,350,20,hwnd,(HMENU)ID_CONFIG_EUR,g_hInst,0);
00286             ShowWindow(EUR,SW_SHOW);  
00287             
00288             EB = CreateWindowEx(WS_EX_WINDOWEDGE    , "BUTTON", "Blinkies On/off",
00289                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,270,350,20,hwnd,(HMENU)ID_CONFIG_EB,g_hInst,0);
00290             ShowWindow(EB,SW_SHOW);  
00291             
00292             ESSS = CreateWindowEx(WS_EX_WINDOWEDGE  , "BUTTON", "Sound On/off",
00293                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,290,350,20,hwnd,(HMENU)ID_CONFIG_ESSS,g_hInst,0);
00294             ShowWindow(ESSS,SW_SHOW);  
00295             
00296             ETN = CreateWindowEx(WS_EX_WINDOWEDGE   , "BUTTON", "Telnet Negotiation (expiermental) On/off",
00297                 WS_VISIBLE|WS_CHILD|BS_AUTOCHECKBOX,  10,310,350,20,hwnd,(HMENU)ID_CONFIG_ETN,g_hInst,0);
00298             ShowWindow(ETN,SW_SHOW);  
00299             
00300 
00301             
00302             
00303             
00304         }
00305         case WM_COMMAND:
00306         {
00307             switch (LOWORD(wParam))
00308             {
00309                 case ID_CONFIG_COLOR:
00310                 {
00311                     switch (HIWORD(wParam))
00312                     {
00313                         case BN_CLICKED:
00314                         {
00315                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_COLOR, BM_GETCHECK, 0, 0)) 
00316                                 this_session->colour = 1;
00317                             else
00318                                 this_session->colour = 0;
00319                         }
00320                         break;
00321 
00322                     }
00323 
00324                 }
00325                 break;
00326 
00327                 case ID_CONFIG_UMC:
00328                 {
00329                     switch (HIWORD(wParam))
00330                     {
00331                         case BN_CLICKED:
00332                         {
00333                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_UMC, BM_GETCHECK, 0, 0)) 
00334                                 this_session->UseMemoryCompression = 1;
00335                             else
00336                                 this_session->UseMemoryCompression = 0;
00337                         }
00338                         break;
00339 
00340                     }
00341 
00342                 }
00343                 break;
00344         
00345                 case ID_CONFIG_ETL:
00346                 {
00347                     switch (HIWORD(wParam))
00348                     {
00349                         case BN_CLICKED:
00350                         {
00351                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ETL, BM_GETCHECK, 0, 0)) 
00352                                 this_session->EnableTestLogging = 1;
00353                             else
00354                                 this_session->EnableTestLogging = 0;
00355                         }
00356                         break;
00357 
00358                     }
00359 
00360                 }
00361                 break;
00362 
00363                 case ID_CONFIG_ODS:
00364                 {
00365                     switch (HIWORD(wParam))
00366                     {
00367                         case BN_CLICKED:
00368                         {
00369                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ODS, BM_GETCHECK, 0, 0)) 
00370                                 this_session->OptimizeDualScreen = 1;
00371                             else
00372                                 this_session->OptimizeDualScreen = 0;
00373                         }
00374                         break;
00375 
00376                     }
00377 
00378                 }
00379                 break;
00380 
00381                 case ID_CONFIG_ES:
00382                 {
00383                     switch (HIWORD(wParam))
00384                     {
00385                         case BN_CLICKED:
00386                         {
00387                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ES, BM_GETCHECK, 0, 0)) 
00388                                 this_session->EnableScripts = 1;
00389                             else
00390                                 this_session->EnableScripts = 0;
00391                         }
00392                         break;
00393 
00394                     }
00395 
00396                 }
00397                 break;
00398                 
00399                 case ID_CONFIG_EA:
00400                 {
00401                     switch (HIWORD(wParam))
00402                     {
00403                         case BN_CLICKED:
00404                         {
00405                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_EA, BM_GETCHECK, 0, 0)) 
00406                                 this_session->EnableAliases = 1;
00407                             else
00408                                 this_session->EnableAliases = 0;
00409                         }
00410                         break;
00411 
00412                     }
00413 
00414                 }
00415                 break;
00416                 
00417                 
00418                 case ID_CONFIG_ET:
00419                 {
00420                     switch (HIWORD(wParam))
00421                     {
00422                         case BN_CLICKED:
00423                         {
00424                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ET, BM_GETCHECK, 0, 0)) 
00425                                 this_session->EnableTriggers = 1;
00426                             else
00427                                 this_session->EnableTriggers = 0;
00428                         }
00429                         break;
00430 
00431                     }
00432 
00433                 }
00434                 break;
00435                 
00436                 case ID_CONFIG_EP:
00437                 {
00438                     switch (HIWORD(wParam))
00439                     {
00440                         case BN_CLICKED:
00441                         {
00442                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_EP, BM_GETCHECK, 0, 0)) 
00443                                 this_session->EnablePaths = 1;
00444                             else
00445                                 this_session->EnablePaths = 0;
00446                         }
00447                         break;
00448 
00449                     }
00450 
00451                 }
00452                 break;
00453                 
00454                 case ID_CONFIG_EM:
00455                 {
00456                     switch (HIWORD(wParam))
00457                     {
00458                         case BN_CLICKED:
00459                         {
00460                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_EM, BM_GETCHECK, 0, 0)) 
00461                                 this_session->EnableMacros = 1;
00462                             else
00463                                 this_session->EnableMacros = 0;
00464                         }
00465                         break;
00466 
00467                     }
00468 
00469                 }
00470                 break;
00471                 
00472                 case ID_CONFIG_ESS:
00473                 {
00474                     switch (HIWORD(wParam))
00475                     {
00476                         case BN_CLICKED:
00477                         {
00478                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ESS, BM_GETCHECK, 0, 0)) 
00479                                 this_session->EnableSplashScreen = 1;
00480                             else
00481                                 this_session->EnableSplashScreen = 0;
00482                         }
00483                         break;
00484 
00485                     }
00486 
00487                 }
00488                 break;
00489                 
00490                 case ID_CONFIG_ECC:
00491                 {
00492                     switch (HIWORD(wParam))
00493                     {
00494                         case BN_CLICKED:
00495                         {
00496                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ECC, BM_GETCHECK, 0, 0)) 
00497                                 this_session->EnableClientChat = 1;
00498                             else
00499                                 this_session->EnableClientChat = 0;
00500                         }
00501                         break;
00502 
00503                     }
00504 
00505                 }
00506                 break;
00507 
00508       
00509                 case ID_CONFIG_EPP:
00510                 {
00511                     switch (HIWORD(wParam))
00512                     {
00513                         case BN_CLICKED:
00514                         {
00515                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_EPP, BM_GETCHECK, 0, 0)) 
00516                                 this_session->EnablePing = 1;
00517                             else
00518                                 this_session->EnablePing = 0;
00519                         }
00520                         break;
00521 
00522                     }
00523 
00524                 }
00525                 break;
00526                 
00527                 case ID_CONFIG_EUR:
00528                 {
00529                     switch (HIWORD(wParam))
00530                     {
00531                         case BN_CLICKED:
00532                         {
00533                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_EUR, BM_GETCHECK, 0, 0)) 
00534                                 this_session->EnableUsageReports = 1;
00535                             else
00536                                 this_session->EnableUsageReports = 0;
00537                         }
00538                         break;
00539 
00540                     }
00541 
00542                 }
00543                 break;
00544                 
00545                 case ID_CONFIG_EB:
00546                 {
00547                     switch (HIWORD(wParam))
00548                     {
00549                         case BN_CLICKED:
00550                         {
00551                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_EB, BM_GETCHECK, 0, 0)) 
00552                                 this_session->EnableBlinkies = 1;
00553                             else
00554                                 this_session->EnableBlinkies = 0;
00555                         }
00556                         break;
00557 
00558                     }
00559 
00560                 }
00561                 break;
00562                 
00563                 case ID_CONFIG_ESSS:
00564                 {
00565                     switch (HIWORD(wParam))
00566                     {
00567                         case BN_CLICKED:
00568                         {
00569                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ESSS, BM_GETCHECK, 0, 0)) 
00570                                 this_session->EnableSound = 1;
00571                             else
00572                                 this_session->EnableSound = 0;
00573                         }
00574                         break;
00575 
00576                     }
00577 
00578                 }
00579                 break;
00580                 
00581                 case ID_CONFIG_ETN:
00582                 {
00583                     switch (HIWORD(wParam))
00584                     {
00585                         case BN_CLICKED:
00586                         {
00587                             if (SendDlgItemMessage(MudSettings, ID_CONFIG_ETN, BM_GETCHECK, 0, 0)) 
00588                                 this_session->EnableTN = 1;
00589                             else
00590                                 this_session->EnableTN = 0;
00591                         }
00592                         break;
00593 
00594                     }
00595 
00596                 }
00597                 break;
00598 
00599 
00600             }
00601             save_settings();
00602             return 0;
00603         }
00604         break;
00605         
00606                 
00607         default:                
00608             return DefWindowProc (hwnd, message, wParam, lParam);
00609     }
00610      
00611     return 0;
00612 }

Here is the call graph for this function:

void SetupSettingDialog void   ) 
 

Definition at line 89 of file nanomud-settings.c.

References session_data::colour, session_data::EnableAliases, session_data::EnableBlinkies, session_data::EnableClientChat, session_data::EnableMacros, session_data::EnablePaths, session_data::EnablePing, session_data::EnableScripts, session_data::EnableSound, session_data::EnableSplashScreen, session_data::EnableTestLogging, session_data::EnableTN, session_data::EnableTriggers, session_data::EnableUsageReports, ID_CONFIG_COLOR, ID_CONFIG_EA, ID_CONFIG_EB, ID_CONFIG_ECC, ID_CONFIG_EM, ID_CONFIG_EP, ID_CONFIG_EPP, ID_CONFIG_ES, ID_CONFIG_ESS, ID_CONFIG_ESSS, ID_CONFIG_ET, ID_CONFIG_ETL, ID_CONFIG_ETN, ID_CONFIG_EUR, ID_CONFIG_ODS, ID_CONFIG_UMC, MudSettings, session_data::OptimizeDualScreen, this_session, and session_data::UseMemoryCompression.

Referenced by CreateSettings().

00090 {
00091 
00092     if (this_session->colour == 1)
00093         SendDlgItemMessage(MudSettings, ID_CONFIG_COLOR, BM_CLICK, 0, 0);
00094     if (this_session->UseMemoryCompression == 1)
00095         SendDlgItemMessage(MudSettings, ID_CONFIG_UMC, BM_CLICK,0,0);
00096     if (this_session->EnableTestLogging == 1)
00097         SendDlgItemMessage(MudSettings, ID_CONFIG_ETL, BM_CLICK,0,0);
00098     if (this_session->OptimizeDualScreen == 1)
00099         SendDlgItemMessage(MudSettings, ID_CONFIG_ODS, BM_CLICK,0,0);
00100     if (this_session->EnableScripts == 1)
00101         SendDlgItemMessage(MudSettings, ID_CONFIG_ES, BM_CLICK,0,0);
00102     if (this_session->EnableAliases == 1)
00103         SendDlgItemMessage(MudSettings, ID_CONFIG_EA, BM_CLICK,0,0);
00104     if (this_session->EnableTriggers == 1)
00105         SendDlgItemMessage(MudSettings, ID_CONFIG_ET, BM_CLICK,0,0);
00106     if (this_session->EnablePaths == 1)
00107         SendDlgItemMessage(MudSettings, ID_CONFIG_EP, BM_CLICK,0,0);
00108     if (this_session->EnableMacros == 1)
00109         SendDlgItemMessage(MudSettings, ID_CONFIG_EM, BM_CLICK,0,0);
00110     if (this_session->EnableSplashScreen == 1)
00111         SendDlgItemMessage(MudSettings, ID_CONFIG_ESS, BM_CLICK,0,0);
00112     if (this_session->EnableClientChat == 1)
00113         SendDlgItemMessage(MudSettings, ID_CONFIG_ECC, BM_CLICK,0,0);
00114     if (this_session->EnablePing == 1)
00115         SendDlgItemMessage(MudSettings, ID_CONFIG_EPP, BM_CLICK,0,0);
00116     if (this_session->EnableUsageReports == 1)
00117         SendDlgItemMessage(MudSettings, ID_CONFIG_EUR, BM_CLICK,0,0);
00118     if (this_session->EnableBlinkies == 1)
00119         SendDlgItemMessage(MudSettings, ID_CONFIG_EB, BM_CLICK,0,0);
00120     if (this_session->EnableSound == 1)
00121         SendDlgItemMessage(MudSettings, ID_CONFIG_ESSS, BM_CLICK, 0,0);
00122     if (this_session->EnableTN == 1)
00123         SendDlgItemMessage(MudSettings, ID_CONFIG_ETN, BM_CLICK,0,0);
00124         
00125 
00126     
00127 }


Variable Documentation

HWND dcolour
 

Definition at line 70 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND EA
 

Definition at line 76 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND EB
 

Definition at line 84 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND ECC
 

Definition at line 81 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND EM
 

Definition at line 79 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND EP
 

Definition at line 78 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND EPP
 

Definition at line 82 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND ES
 

Definition at line 75 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND ESS
 

Definition at line 80 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND ESSS
 

Definition at line 85 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND ET
 

Definition at line 77 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND ETL
 

Definition at line 73 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND ETN
 

Definition at line 86 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND EUR
 

Definition at line 83 of file nanomud-settings.c.

Referenced by SettingsProcedure().

HWND max_buffer
 

Definition at line 71 of file nanomud-settings.c.

HWND ODS
 

Definition at line 74 of file nanomud-settings.c.

Referenced by SettingsProcedure().

RECT srect
 

Definition at line 87 of file nanomud-settings.c.

Referenced by GetWindowWrap(), and SettingsProcedure().

HWND UMC
 

Definition at line 72 of file nanomud-settings.c.

Referenced by SettingsProcedure().


Generated on Sun Dec 26 17:22:53 2004 for mudclient by  doxygen 1.3.9.1