Crossfire Client, Trunk  R20507
Macros
CONFIG_xxx want_config array indices.

Definitions to index into an array of most of the configuration options. More...

Macros

#define CONFIG_APPLY_CONTAINER   28
 Reapply container. More...
 
#define CONFIG_CACHE   5
 
#define CONFIG_CWINDOW   4
 
#define CONFIG_DARKNESS   22
 
#define CONFIG_DISPLAYMODE   10
 
#define CONFIG_DOWNLOAD   1
 
#define CONFIG_ECHO   2
 
#define CONFIG_FASTTCP   3
 
#define CONFIG_FOGWAR   6
 
#define CONFIG_FOODBEEP   21
 
#define CONFIG_GRAD_COLOR   24
 
#define CONFIG_ICONSCALE   7
 
#define CONFIG_LIGHTING   17
 
#define CONFIG_MAPHEIGHT   20
 
#define CONFIG_MAPSCALE   8
 
#define CONFIG_MAPSCROLL   29
 Use bitmap operations for map scrolling. More...
 
#define CONFIG_MAPWIDTH   19
 
#define CONFIG_NUMS   32
 This should always be the last value in the CONFIG_xxx list. More...
 
#define CONFIG_POPUPS   9
 
#define CONFIG_PORT   23
 Is this useful any more? More...
 
#define CONFIG_RESISTS   25
 
#define CONFIG_SHOWGRID   16
 
#define CONFIG_SHOWICON   11
 
#define CONFIG_SIGNPOPUP   30
 
#define CONFIG_SMOOTH   26
 
#define CONFIG_SOUND   13
 
#define CONFIG_SPLASH   27
 
#define CONFIG_SPLITINFO   14
 
#define CONFIG_SPLITWIN   15
 
#define CONFIG_TIMESTAMP   31
 
#define CONFIG_TOOLTIPS   12
 
#define CONFIG_TRIMINFO   18
 

Detailed Description

Definitions to index into an array of most of the configuration options.

Instead of having a whole mess of variables of different names, instead use a common 16 bit signed array, and index into these - this makes processing in the GUI aspect of the GTK client much easier.

There are also 2 elements - want_options, and use_options. The former is what the player wants to use, the latter is what is currently in use. There are many options that can not be switched between during actual play, but we want to record what the player has changed them to so that when we save them out, we save what the player wants, and not what is currently being used.

Note that all the GUI interfaces may not use all these values, but making them available here makes it easy for the GUI to present a nice interface.

0 is intentially skipped so the index into this doesn't get a default if a table has a blank value

CONFIG_NUMS is the number of configuration options; don't forget to add to some of:

common/init.c config_names, init_client_vars, x11/x11.c load_defaults save_defaults gtk/config.c load_defaults save_defaults

and probably other places, if you add a new option.

Macro Definition Documentation

#define CONFIG_APPLY_CONTAINER   28

Reapply container.

Definition at line 212 of file client.h.

Referenced by init_config().

#define CONFIG_CACHE   5
#define CONFIG_CWINDOW   4

Definition at line 188 of file client.h.

Referenced by init_config(), send_command(), and set_command_window().

#define CONFIG_DARKNESS   22

Definition at line 206 of file client.h.

Referenced by config_check(), init_config(), and read_config_dialog().

#define CONFIG_DISPLAYMODE   10
#define CONFIG_DOWNLOAD   1
#define CONFIG_ECHO   2
#define CONFIG_FASTTCP   3

Definition at line 187 of file client.h.

Referenced by client_connect(), init_config(), read_config_dialog(), and setup_config_dialog().

#define CONFIG_FOGWAR   6
#define CONFIG_FOODBEEP   21
#define CONFIG_GRAD_COLOR   24

Definition at line 208 of file client.h.

Referenced by init_config(), read_config_dialog(), setup_config_dialog(), and update_stat().

#define CONFIG_ICONSCALE   7

Definition at line 191 of file client.h.

Referenced by config_check(), create_and_rescale_image_from_data(), and init_config().

#define CONFIG_LIGHTING   17
#define CONFIG_MAPHEIGHT   20
#define CONFIG_MAPSCALE   8

Definition at line 192 of file client.h.

Referenced by config_check(), create_and_rescale_image_from_data(), and init_config().

#define CONFIG_MAPSCROLL   29

Use bitmap operations for map scrolling.

Definition at line 213 of file client.h.

Referenced by init_config(), and mapdata_scroll().

#define CONFIG_MAPWIDTH   19
#define CONFIG_NUMS   32

This should always be the last value in the CONFIG_xxx list.

Definition at line 218 of file client.h.

Referenced by config_load(), config_load_legacy(), init_config(), and save_defaults().

#define CONFIG_POPUPS   9

Definition at line 193 of file client.h.

Referenced by config_load_legacy(), init_config(), keyfunc(), and on_entry_commands_activate().

#define CONFIG_PORT   23

Is this useful any more?

Definition at line 207 of file client.h.

Referenced by client_connect(), and init_config().

#define CONFIG_RESISTS   25

Definition at line 209 of file client.h.

Referenced by config_check(), config_load_legacy(), and init_config().

#define CONFIG_SHOWGRID   16

Definition at line 200 of file client.h.

Referenced by init_config().

#define CONFIG_SHOWICON   11

Definition at line 195 of file client.h.

Referenced by init_config().

#define CONFIG_SIGNPOPUP   30

Definition at line 216 of file client.h.

Referenced by init_config().

#define CONFIG_SMOOTH   26
#define CONFIG_SOUND   13
#define CONFIG_SPLASH   27

Definition at line 211 of file client.h.

Referenced by config_load_legacy(), and init_config().

#define CONFIG_SPLITINFO   14

Definition at line 198 of file client.h.

Referenced by init_config().

#define CONFIG_SPLITWIN   15

Definition at line 199 of file client.h.

Referenced by init_config().

#define CONFIG_TIMESTAMP   31
#define CONFIG_TOOLTIPS   12

Definition at line 196 of file client.h.

Referenced by init_config().

#define CONFIG_TRIMINFO   18

Definition at line 202 of file client.h.

Referenced by init_config().