Atrinik Client  4.0
Data Structures | Macros | Typedefs | Enumerations
settings.h File Reference

Go to the source code of this file.

Data Structures

struct  setting_range
 
struct  setting_select
 
struct  setting_struct
 
struct  setting_category
 

Macros

#define SETTING_SELECT(_setting)   ((setting_select *) (_setting)->custom_attrset)
 
#define SETTING_RANGE(_setting)   ((setting_range *) (_setting)->custom_attrset)
 

Typedefs

typedef struct setting_range setting_range
 
typedef struct setting_select setting_select
 
typedef struct setting_struct setting_struct
 
typedef struct setting_category setting_category
 

Enumerations

enum  {
  OPT_CAT_GENERAL, OPT_CAT_CLIENT, OPT_CAT_MAP, OPT_CAT_SOUND,
  OPT_CAT_DEVEL
}
 
enum  {
  OPT_TARGET_SELF, OPT_COLLECT_MODE, OPT_EXP_DISPLAY, OPT_CHAT_TIMESTAMPS,
  OPT_MAX_CHAT_LINES, OPT_MAX_INPUT_HISTORY_LINES, OPT_SNAP_RADIUS
}
 
enum  {
  OPT_RESOLUTION, OPT_FULLSCREEN, OPT_ZOOM_SMOOTH, OPT_KEY_REPEAT_SPEED,
  OPT_FPS_LIMIT, OPT_DISABLE_FILE_UPDATES, OPT_MINIMIZE_LATENCY, OPT_SHOW_NETWORK_GRAPH,
  OPT_OFFSCREEN_WIDGETS, OPT_TEXT_WINDOW_BG_COLOR, OPT_TEXT_WINDOW_TRANSPARENCY, OPT_SYSTEM_CURSOR,
  OPT_RESOLUTION_X, OPT_RESOLUTION_Y
}
 
enum  {
  OPT_PLAYER_NAMES, OPT_MAP_ZOOM, OPT_HEALTH_WARNING, OPT_FOOD_WARNING,
  OPT_MAP_WIDTH, OPT_MAP_HEIGHT
}
 
enum  { OPT_VOLUME_MUSIC, OPT_VOLUME_SOUND, OPT_3D_SOUNDS }
 
enum  { OPT_SHOW_FPS, OPT_RELOAD_GFX, OPT_DISABLE_RM_CACHE, OPT_OPERATOR }
 
enum  {
  OPT_TYPE_BOOL, OPT_TYPE_INPUT_NUM, OPT_TYPE_INPUT_TEXT, OPT_TYPE_RANGE,
  OPT_TYPE_SELECT, OPT_TYPE_INT, OPT_TYPE_COLOR, OPT_TYPE_NUM
}
 
enum  { KEYBIND_STEP_COMMAND, KEYBIND_STEP_KEY, KEYBIND_STEP_DONE }
 

Detailed Description

Client settings header files.

Definition in file settings.h.

Macro Definition Documentation

#define SETTING_RANGE (   _setting)    ((setting_range *) (_setting)->custom_attrset)

Macro to get setting_range structure from setting_struct.

Definition at line 250 of file settings.h.

#define SETTING_SELECT (   _setting)    ((setting_select *) (_setting)->custom_attrset)

Macro to get setting_select structure from setting_struct.

Definition at line 248 of file settings.h.

Typedef Documentation

One setting category.

typedef struct setting_range setting_range

Range setting data.

Select setting - contains a list of text options the user may choose from.

A single setting.

Enumeration Type Documentation

anonymous enum

The different option categories. .

Enumerator
OPT_CAT_GENERAL 

General.

OPT_CAT_CLIENT 

Client-related.

OPT_CAT_MAP 

Map-related.

OPT_CAT_SOUND 

Sound/music.

OPT_CAT_DEVEL 

Development.

Definition at line 37 of file settings.h.

anonymous enum

Various setting types.

Enumerator
OPT_TYPE_BOOL 

Bool (checkbox).

OPT_TYPE_INPUT_NUM 

Number input.

OPT_TYPE_INPUT_TEXT 

Text input.

OPT_TYPE_RANGE 

Range.

OPT_TYPE_SELECT 

Select - text options.

OPT_TYPE_INT 

Integer - internal type.

OPT_TYPE_COLOR 

Color picker.

OPT_TYPE_NUM 

Number of the different options.

Definition at line 160 of file settings.h.

anonymous enum

Step in the keybinding settings.

Enumerator
KEYBIND_STEP_COMMAND 

Entering a command.

KEYBIND_STEP_KEY 

Entering a shortcut.

KEYBIND_STEP_DONE 

Done, waiting for the user to press Apply button.

Definition at line 255 of file settings.h.