Crossfire Client, Trunk  R18666
Defines
CONFIG_xxx want_config array indices.

Defines

#define CONFIG_DOWNLOAD   1
#define CONFIG_ECHO   2
#define CONFIG_FASTTCP   3
#define CONFIG_CWINDOW   4
#define CONFIG_CACHE   5
#define CONFIG_FOGWAR   6
#define CONFIG_ICONSCALE   7
#define CONFIG_MAPSCALE   8
#define CONFIG_POPUPS   9
#define CONFIG_DISPLAYMODE   10
#define CONFIG_SHOWICON   11
#define CONFIG_TOOLTIPS   12
#define CONFIG_SOUND   13
#define CONFIG_SPLITINFO   14
#define CONFIG_SPLITWIN   15
#define CONFIG_SHOWGRID   16
#define CONFIG_LIGHTING   17
#define CONFIG_TRIMINFO   18
#define CONFIG_MAPWIDTH   19
#define CONFIG_MAPHEIGHT   20
#define CONFIG_FOODBEEP   21
#define CONFIG_DARKNESS   22
#define CONFIG_PORT   23
#define CONFIG_GRAD_COLOR   24
#define CONFIG_RESISTS   25
#define CONFIG_SMOOTH   26
#define CONFIG_SPLASH   27
#define CONFIG_APPLY_CONTAINER   28
#define CONFIG_MAPSCROLL   29
#define CONFIG_SIGNPOPUP   30
#define CONFIG_TIMESTAMP   31
#define CONFIG_NUMS   32

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.


Define Documentation

#define CONFIG_APPLY_CONTAINER   28

Reapply container

Definition at line 197 of file client.h.

#define CONFIG_CACHE   5

Definition at line 174 of file client.h.

#define CONFIG_CWINDOW   4

Definition at line 173 of file client.h.

#define CONFIG_DARKNESS   22

Definition at line 191 of file client.h.

#define CONFIG_DISPLAYMODE   10
See also:
CONFIG_DISPLAYMODE values.

Definition at line 179 of file client.h.

#define CONFIG_DOWNLOAD   1

Definition at line 170 of file client.h.

#define CONFIG_ECHO   2

Definition at line 171 of file client.h.

#define CONFIG_FASTTCP   3

Definition at line 172 of file client.h.

#define CONFIG_FOGWAR   6

Definition at line 175 of file client.h.

#define CONFIG_FOODBEEP   21

Definition at line 190 of file client.h.

#define CONFIG_GRAD_COLOR   24

Definition at line 193 of file client.h.

#define CONFIG_ICONSCALE   7

Definition at line 176 of file client.h.

#define CONFIG_LIGHTING   17
See also:
CONFIG_LIGHTING values.

Definition at line 186 of file client.h.

#define CONFIG_MAPHEIGHT   20

Definition at line 189 of file client.h.

#define CONFIG_MAPSCALE   8

Definition at line 177 of file client.h.

#define CONFIG_MAPSCROLL   29

Use bitmap operations for map scrolling

Definition at line 198 of file client.h.

#define CONFIG_MAPWIDTH   19

Definition at line 188 of file client.h.

#define CONFIG_NUMS   32

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

Definition at line 202 of file client.h.

#define CONFIG_POPUPS   9

Definition at line 178 of file client.h.

#define CONFIG_PORT   23

Is this useful any more?

Definition at line 192 of file client.h.

#define CONFIG_RESISTS   25

Definition at line 194 of file client.h.

#define CONFIG_SHOWGRID   16

Definition at line 185 of file client.h.

#define CONFIG_SHOWICON   11

Definition at line 180 of file client.h.

#define CONFIG_SIGNPOPUP   30

Definition at line 200 of file client.h.

#define CONFIG_SMOOTH   26

Definition at line 195 of file client.h.

#define CONFIG_SOUND   13

Definition at line 182 of file client.h.

#define CONFIG_SPLASH   27

Definition at line 196 of file client.h.

#define CONFIG_SPLITINFO   14

Definition at line 183 of file client.h.

#define CONFIG_SPLITWIN   15

Definition at line 184 of file client.h.

#define CONFIG_TIMESTAMP   31

Definition at line 201 of file client.h.

#define CONFIG_TOOLTIPS   12

Definition at line 181 of file client.h.

#define CONFIG_TRIMINFO   18

Definition at line 187 of file client.h.