|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Enumerations | |
| enum | { SPELLS_FILTER_SPELL, SPELLS_FILTER_PRAYER, SPELLS_FILTER_ALL } |
Functions | |
| static void | list_handle_enter (list_struct *list) |
| static const char * | list_text_color_hook (list_struct *list, const char *default_color, uint32 row, uint32 col) |
| static void | spell_list_reload () |
| static void | button_repeat_func (button_struct *button) |
| static void | button_filter_adjust (int adj) |
| void | widget_spells_render (widgetdata *widget) |
| void | widget_spells_mevent (widgetdata *widget, SDL_Event *event) |
| int | spell_find (const char *name, size_t *spell_path, size_t *spell_id) |
| int | spell_find_path_selected (const char *name, size_t *spell_id) |
| spell_entry_struct * | spell_get (size_t spell_path, size_t spell_id) |
| void | spells_init () |
| void | spells_reload () |
| void | SpelllistCmd (char *data) |
Variables | |
| static spell_entry_struct ** | spell_list [SPELL_PATH_NUM] |
| static size_t | spell_list_num [SPELL_PATH_NUM] |
| static size_t | spell_list_path = 0 |
| static uint8 | spell_list_filter_known |
| static uint8 | spell_list_filter_type |
| static const char *const | filter_names [SPELLS_FILTER_ALL+1] |
| static button_struct | button_path_left |
| static button_struct | button_path_right |
| static button_struct | button_close |
| static button_struct | button_filter_left |
| static button_struct | button_filter_right |
| static button_struct | button_filter_known |
| static button_struct | button_help |
Handles the spells widget code.
Definition in file spells.c.
| anonymous enum |
| static void button_filter_adjust | ( | int | adj | ) | [static] |
| static void button_repeat_func | ( | button_struct * | button | ) | [static] |
| static void list_handle_enter | ( | list_struct * | list | ) | [static] |
| static const char* list_text_color_hook | ( | list_struct * | list, |
| const char * | default_color, | ||
| uint32 | row, | ||
| uint32 | col | ||
| ) | [static] |
| int spell_find | ( | const char * | name, |
| size_t * | spell_path, | ||
| size_t * | spell_id | ||
| ) |
Find a spell in the spell_list based on its name.
Partial spell names will be matched.
| name | Spell name to find. | |
| [out] | spell_path | Will contain the spell's path. |
| [out] | spell_id | Will contain the spell's ID. |
| int spell_find_path_selected | ( | const char * | name, |
| size_t * | spell_id | ||
| ) |
Find a spell in the spell_list based on its name, but only look inside the currently selected spell path list.
Partial spell names will be matched.
| name | Spell name to find. | |
| [out] | spell_id | Will contain the spell's ID. |
| spell_entry_struct* spell_get | ( | size_t | spell_path, |
| size_t | spell_id | ||
| ) |
Get spell from the spell_list structure.
| spell_path | Spell path. |
| spell_id | Spell ID. |
| static void spell_list_reload | ( | ) | [static] |
| void SpelllistCmd | ( | char * | data | ) |
| void spells_reload | ( | ) |
| void widget_spells_mevent | ( | widgetdata * | widget, |
| SDL_Event * | event | ||
| ) |
| void widget_spells_render | ( | widgetdata * | widget | ) |
button_struct button_path_left [static] |
const char* const filter_names[SPELLS_FILTER_ALL+1] [static] |
{
"Spells", "Prayers", "All"
}
Names for filter types.
spell_entry_struct** spell_list[SPELL_PATH_NUM] [static] |
uint8 spell_list_filter_known [static] |
uint8 spell_list_filter_type [static] |
One of filter types.
size_t spell_list_num[SPELL_PATH_NUM] [static] |
Number of spells contained in each spell path array in spell_list.
size_t spell_list_path = 0 [static] |
1.7.4