#include <world_button.hxx>
Inheritance diagram for WorldButton:
Public Types | |
enum | Mode { LOAD_BUTTON, SAVE_BUTTON } |
Public Member Functions | |
WorldButton (const std::string &arg_filename, Mode m) | |
~WorldButton () | |
void | draw (GraphicContext *gc) |
void | on_click () |
void | load_world () |
Definition at line 28 of file world_button.hxx.
|
Definition at line 36 of file world_button.hxx. |
|
Definition at line 26 of file world_button.cxx. |
|
Definition at line 34 of file world_button.cxx. |
|
|
Load the given world, if not called it will be loaded on demand Definition at line 40 of file world_button.cxx. References GUIFileButton::filename, SystemContext::get_mtime(), and system_context. Referenced by draw(). |
|
Implements GUIFileButton. Definition at line 104 of file world_button.cxx. References GUIFileButton::filename, ScreenManager::instance(), Controller::instance(), Controller::load_world(), SAVE_BUTTON, Controller::save_world(), and ScreenManager::set_gui(). |