|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Enumerations | |
| enum | { BUTTON_SPELLS, BUTTON_SKILLS, BUTTON_PARTY, BUTTON_MPLAYER, BUTTON_MAP, BUTTON_QUEST, BUTTON_HELP, BUTTON_SETTINGS, NUM_BUTTONS } |
Functions | |
| void | widget_menubuttons (widgetdata *widget) |
| void | widget_menubuttons_event (widgetdata *widget, SDL_Event *event) |
Variables | |
| static button_struct | buttons [NUM_BUTTONS] |
| static int | button_images [NUM_BUTTONS] |
| static const char *const | button_tooltips [NUM_BUTTONS] |
| static uint8 | did_init = 0 |
Implements menu buttons code.
Definition in file menu_buttons.c.
| anonymous enum |
The different buttons inside the widget.
Definition at line 33 of file menu_buttons.c.
| void widget_menubuttons | ( | widgetdata * | widget | ) |
Show menu buttons widget.
| widget | The widget. |
Definition at line 74 of file menu_buttons.c.
| void widget_menubuttons_event | ( | widgetdata * | widget, |
| SDL_Event * | event | ||
| ) |
Handle mouse events over the menu buttons widget.
Basically calls the right functions depending on which button was clicked.
| widget | The widget object. |
| event | The event to handle. |
Definition at line 155 of file menu_buttons.c.
int button_images[NUM_BUTTONS] [static] |
{
BITMAP_ICON_MAGIC, BITMAP_ICON_SKILL, BITMAP_ICON_PARTY, BITMAP_ICON_MUSIC, BITMAP_ICON_MAP, BITMAP_ICON_QUEST, -1, BITMAP_ICON_COGS
}
Images to render on top of the buttons, -1 for none.
Definition at line 59 of file menu_buttons.c.
const char* const button_tooltips[NUM_BUTTONS] [static] |
{
"Spells", "Skills", "Party", "Music player", "Region map", "Quest list", "Help", "Settings"
}
Tooltip texts for the buttons.
Definition at line 64 of file menu_buttons.c.
button_struct buttons[NUM_BUTTONS] [static] |
Button buffers.
Definition at line 57 of file menu_buttons.c.
Whether the buttons have been initialized.
Definition at line 69 of file menu_buttons.c.
1.7.4