|
|
virtual void | menu_action (MenuItem &item)=0 |
| |
| virtual bool | on_back_action () |
| | Executed before the menu is exited. More...
|
| |
|
virtual void | refresh () |
| | Perform actions to bring the menu up to date with configuration changes.
|
| |
|
virtual void | on_window_resize () |
| |
|
ItemHorizontalLine & | add_hl () |
| |
|
ItemLabel & | add_label (const std::string &text) |
| |
|
ItemAction & | add_entry (int id, const std::string &text) |
| |
|
ItemAction & | add_entry (const std::string &text, std::function< void()> callback) |
| |
|
ItemToggle & | add_toggle (int id, const std::string &text, bool *toggled) |
| |
|
ItemToggle & | add_toggle (int id, const std::string &text, std::function< bool()> get_func, std::function< void(bool)> set_func) |
| |
|
ItemInactive & | add_inactive (const std::string &text) |
| |
|
ItemBack & | add_back (const std::string &text, int id=-1) |
| |
|
ItemGoTo & | add_submenu (const std::string &text, int submenu, int id=-1) |
| |
|
ItemControlField & | add_controlfield (int id, const std::string &text, const std::string &mapping="") |
| |
|
ItemStringSelect & | add_string_select (int id, const std::string &text, int *selected, const std::vector< std::string > &strings) |
| |
|
ItemTextField & | add_textfield (const std::string &text, std::string *input, int id=-1) |
| |
|
ItemScript & | add_script (const std::string &text, std::string *script, int id=-1) |
| |
|
ItemScriptLine & | add_script_line (std::string *input, int id=-1) |
| |
|
ItemIntField & | add_intfield (const std::string &text, int *input, int id=-1) |
| |
|
ItemFloatField & | add_floatfield (const std::string &text, float *input, int id=-1) |
| |
|
ItemBadguySelect & | add_badguy_select (const std::string &text, std::vector< std::string > *badguys, int id=-1) |
| |
|
ItemFile & | add_file (const std::string &text, std::string *input, const std::vector< std::string > &extensions, const std::string &basedir, int id=-1) |
| |
|
ItemColor & | add_color (const std::string &text, Color *color, int id=-1) |
| |
|
ItemColorDisplay & | add_color_display (Color *color, int id=-1) |
| |
|
ItemColorChannel & | add_color_channel (float *input, Color channel, int id=-1) |
| |
| void | process_input (const Controller &controller) |
| |
|
void | clear () |
| | Remove all entries from the menu.
|
| |
|
MenuItem & | get_item (int index) |
| |
|
MenuItem & | get_item_by_id (int id) |
| |
|
const MenuItem & | get_item_by_id (int id) const |
| |
|
int | get_active_item_id () const |
| |
|
void | set_active_item (int id) |
| |
|
void | draw (DrawingContext &context) |
| |
|
Vector | get_center_pos () const |
| |
|
void | set_center_pos (float x, float y) |
| |
|
void | event (const SDL_Event &event) |
| |
|
float | get_width () const |
| |
|
float | get_height () const |
| |