|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Enumerations | |
| enum | { BUTTON_SETTINGS, BUTTON_KEY_SETTINGS, BUTTON_LOGOUT, BUTTON_BACK, BUTTON_NUM } |
Functions | |
| static void | settings_list_reload (list_struct *list) |
| static void | list_handle_mouse_row (list_struct *list, uint32 row, SDL_Event *event) |
| static void | list_handle_esc (list_struct *list) |
| static void | setting_change_value (int cat, int set, sint64 val) |
| static void | list_post_column (list_struct *list, uint32 row, uint32 col) |
| static void | setting_keybind_apply (list_struct *list) |
| static int | setting_keybind_action (SDLKey key, list_struct *list) |
| static void | setting_category_change (int advance) |
| static void | settings_popup_draw_func_post (popup_struct *popup) |
| static void | settings_popup_draw_func (popup_struct *popup) |
| static int | settings_popup_destroy_callback (popup_struct *popup) |
| static void | list_handle_enter (list_struct *list) |
| static int | list_key_event (list_struct *list, SDLKey key) |
| static void | settings_button_handle (size_t button) |
| static int | settings_popup_event_func (popup_struct *popup, SDL_Event *event) |
| void | settings_open () |
Variables | |
| static button_struct | button_password |
| static const char *const | button_names [BUTTON_NUM] |
| static uint8 | setting_type = SETTING_TYPE_NONE |
| static size_t | button_selected |
| static size_t | setting_category_selected |
| static uint32 | list_row_clicked |
| static uint32 | list_clicked = 0 |
| static uint8 | setting_keybind_step |
| static SDLKey | setting_keybind_key |
| static SDLMod | setting_keybind_mod |
| static sint32 | setting_keybind_id |
| static uint8 | setting_password_confirmed |
Settings GUI.
Definition in file settings.c.
| anonymous enum |
The different buttons of the settings popup.
Definition at line 36 of file settings.c.
| static void list_handle_enter | ( | list_struct * | list | ) | [static] |
Handle using enter in the settings list.
| list | The list. |
Definition at line 655 of file settings.c.
| static void list_handle_esc | ( | list_struct * | list | ) | [static] |
Handle ESC in a list.
In this case, just destroys the visible popup.
| list | The list. |
Definition at line 142 of file settings.c.
| static void list_handle_mouse_row | ( | list_struct * | list, |
| uint32 | row, | ||
| SDL_Event * | event | ||
| ) | [static] |
Handle mouse event in a list.
| list | The list. |
| row | Row the mouse is over. |
| event | The mouse event. |
Definition at line 124 of file settings.c.
| static int list_key_event | ( | list_struct * | list, |
| SDLKey | key | ||
| ) | [static] |
Handle list key events.
| list | List. |
| key | Key that was pressed. |
Definition at line 681 of file settings.c.
| static void list_post_column | ( | list_struct * | list, |
| uint32 | row, | ||
| uint32 | col | ||
| ) | [static] |
Do custom drawing after the list has finished drawing a column.
| list | The list. |
| row | The row. |
| col | Column being drawn. |
Definition at line 212 of file settings.c.
| static void setting_category_change | ( | int | advance | ) | [static] |
Change the currently selected setting category.
| advance | If -1, change to the previous category; if 1, change to the next one. |
Definition at line 385 of file settings.c.
| static void setting_change_value | ( | int | cat, |
| int | set, | ||
| sint64 | val | ||
| ) | [static] |
Change setting value.
| cat | Category. |
| set | Setting. |
| val | Modifier. |
Definition at line 153 of file settings.c.
| static int setting_keybind_action | ( | SDLKey | key, |
| list_struct * | list | ||
| ) | [static] |
Do an action related to the keybind settings list.
| key | Key used. |
| list | The keybinding list. |
Definition at line 351 of file settings.c.
| static void setting_keybind_apply | ( | list_struct * | list | ) | [static] |
Apply keybinding changes - adds or edits a keybinding.
| list | The keybinding list. |
Definition at line 320 of file settings.c.
| static void settings_button_handle | ( | size_t | button | ) | [static] |
Handle pressing a button in the settings popup.
| button | The button ID. |
Definition at line 719 of file settings.c.
| static void settings_list_reload | ( | list_struct * | list | ) | [static] |
| void settings_open | ( | ) |
Open the settings popup.
Definition at line 983 of file settings.c.
| static int settings_popup_destroy_callback | ( | popup_struct * | popup | ) | [static] |
Exit the settings popup.
| popup | The popup. |
Definition at line 635 of file settings.c.
| static void settings_popup_draw_func | ( | popup_struct * | popup | ) | [static] |
| static void settings_popup_draw_func_post | ( | popup_struct * | popup | ) | [static] |
Do drawing immediately after finishing drawing the settings popup.
| popup | The settings popup. |
Definition at line 422 of file settings.c.
| static int settings_popup_event_func | ( | popup_struct * | popup, |
| SDL_Event * | event | ||
| ) | [static] |
Handle events for the settings popup.
Definition at line 780 of file settings.c.
const char* const button_names[BUTTON_NUM] [static] |
{
"Client Settings", "Key Settings", "Logout", "Back to Play"
}
Names of the buttons.
Definition at line 47 of file settings.c.
button_struct button_password [static] |
Password button.
Definition at line 33 of file settings.c.
size_t button_selected [static] |
Currently selected button.
Definition at line 55 of file settings.c.
uint32 list_clicked = 0 [static] |
1 if there is a clicked to handle.
Definition at line 61 of file settings.c.
uint32 list_row_clicked [static] |
Which row was clicked.
Definition at line 59 of file settings.c.
size_t setting_category_selected [static] |
Selected setting category.
Definition at line 57 of file settings.c.
sint32 setting_keybind_id [static] |
If not -1, we're editing this keybinding ID.
Definition at line 69 of file settings.c.
SDLKey setting_keybind_key [static] |
Key of the shortcut being added/edited.
Definition at line 65 of file settings.c.
SDLMod setting_keybind_mod [static] |
Modifier for the shortcut.
Definition at line 67 of file settings.c.
uint8 setting_keybind_step [static] |
Step in the keybinding GUI.
Definition at line 63 of file settings.c.
uint8 setting_password_confirmed [static] |
Whether player has entered their current password in the password changing GUI.
Definition at line 73 of file settings.c.
uint8 setting_type = SETTING_TYPE_NONE [static] |
Currently selected setting type.
Definition at line 53 of file settings.c.
1.7.4