Crossfire Client, Trunk
main.h File Reference
#include "info.h"
+ Include dependency graph for main.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_IMAGE_SIZE   32
 
#define DEFAULT_UI   CF_DATADIR "/ui/gtk-v2.ui"
 
#define DIALOG_FILENAME   CF_DATADIR "/ui/dialogs.ui"
 
#define MAGIC_MAP_PAGE   1
 
#define NUM_COLORS   13
 

Functions

void hide_main_client (void)
 

Variables

char account_password [256]
 
GtkWidget * connect_window
 
GtkBuilder * dialog_xml
 
int image_size
 
GtkWidget * magic_map
 
GtkNotebook * main_notebook
 
int map_image_size
 
GtkWidget * map_notebook
 
GdkColor root_color [NUM_COLORS]
 
GtkWidget * spinbutton_count
 
GtkWidget * window_root
 
GtkBuilder * window_xml
 
char window_xml_file [MAX_BUF]
 

Detailed Description

Contains various global definitions and XML file name and path defaults.

Definition in file main.h.

Macro Definition Documentation

◆ DEFAULT_IMAGE_SIZE

#define DEFAULT_IMAGE_SIZE   32

Definition at line 33 of file main.h.

◆ DEFAULT_UI

#define DEFAULT_UI   CF_DATADIR "/ui/gtk-v2.ui"

Definition at line 36 of file main.h.

◆ DIALOG_FILENAME

#define DIALOG_FILENAME   CF_DATADIR "/ui/dialogs.ui"

Definition at line 37 of file main.h.

◆ MAGIC_MAP_PAGE

#define MAGIC_MAP_PAGE   1

Notebook page of the magic map

Definition at line 42 of file main.h.

◆ NUM_COLORS

#define NUM_COLORS   13

Definition at line 22 of file main.h.

Function Documentation

◆ hide_main_client()

void hide_main_client ( )

Called if event_loop() exits, or whenever the character selection window comes up (before logging in, or after having applied a bed).

Definition at line 477 of file main.c.

References cf_play_music(), connect_window, cpl, locate_item(), Player_Struct::ob, remove_item_inventory(), and window_root.

Referenced by choose_character_init(), create_new_character_failure(), and main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ account_password

char account_password[256]

◆ connect_window

GtkWidget* connect_window

◆ dialog_xml

◆ image_size

int image_size

Definition at line 34 of file main.h.

◆ magic_map

GtkWidget* magic_map

Definition at line 103 of file main.c.

Referenced by draw_magic_map(), init_ui(), and magic_map_flash_pos().

◆ main_notebook

◆ map_image_size

◆ map_notebook

GtkWidget* map_notebook

Definition at line 37 of file map.c.

Referenced by client_tick(), draw_magic_map(), and map_init().

◆ root_color

GdkColor root_color[NUM_COLORS]

Definition at line 100 of file main.c.

Referenced by draw_magic_map(), init_ui(), and magic_map_flash_pos().

◆ spinbutton_count

GtkWidget * spinbutton_count

Definition at line 24 of file main.h.

◆ window_root

GtkWidget* window_root

In main.c

Definition at line 103 of file main.c.

Referenced by auto_afk(), hide_main_client(), init_ui(), and show_main_client().

◆ window_xml

GtkBuilder * window_xml

Definition at line 25 of file main.h.

◆ window_xml_file

char window_xml_file[MAX_BUF]

Path to the current UI file.

Definition at line 98 of file main.c.

Referenced by config_load(), config_load_legacy(), init_ui(), init_ui_layout(), main(), read_config_dialog(), save_defaults(), setup_config_dialog(), and ui_name().