Functions | |
int | show_message_dialog (lua_State *L) |
Displays a message window. More... | |
int | show_popup_dialog (lua_State *L) |
Displays a popup message. More... | |
int | show_story (lua_State *L) |
Displays a story screen. More... | |
int | switch_theme (lua_State *L) |
Changes the current ui(gui2) theme. More... | |
int | show_menu (lua_State *L) |
Displays a popup menu at the current mouse position Best used from a [set_menu_item], to show a submenu. More... | |
int | show_message_box (lua_State *L) |
Displays a simple message box. More... | |
int | show_lua_console (lua_State *, lua_kernel_base *lk) |
int | show_gamestate_inspector (const std::string &name, const game_data &data, const game_state &state) |
static int | show_help (lua_State *L) |
int | intf_add_widget_definition (lua_State *L) |
int | luaW_open (lua_State *L) |
int lua_gui2::intf_add_widget_definition | ( | lua_State * | L | ) |
Definition at line 269 of file lua_gui2.cpp.
References gui2::add_single_widget_definition(), e, and luaW_checkconfig().
Referenced by luaW_open().
int lua_gui2::luaW_open | ( | lua_State * | L | ) |
Definition at line 283 of file lua_gui2.cpp.
References intf_add_widget_definition(), intf_show_dialog(), lua_kernel_base::intf_show_lua_console(), lua_widget::luaW_open(), lua_cpp::set_functions(), show_help(), show_menu(), show_message_box(), show_message_dialog(), show_popup_dialog(), show_story(), and switch_theme().
Referenced by lua_kernel_base::lua_kernel_base().
int lua_gui2::show_gamestate_inspector | ( | const std::string & | name, |
const game_data & | data, | ||
const game_state & | state | ||
) |
Definition at line 251 of file lua_gui2.cpp.
References game_state::board_, data, and game_state::events_manager_.
Referenced by game_lua_kernel::intf_gamestate_inspector().
|
static |
Definition at line 257 of file lua_gui2.cpp.
References help::show_help().
Referenced by luaW_open().
int lua_gui2::show_lua_console | ( | lua_State * | , |
lua_kernel_base * | lk | ||
) |
Definition at line 245 of file lua_gui2.cpp.
References gui2::dialogs::lua_interpreter::display().
Referenced by lua_kernel_base::intf_show_lua_console().
int lua_gui2::show_menu | ( | lua_State * | L | ) |
Displays a popup menu at the current mouse position Best used from a [set_menu_item], to show a submenu.
Definition at line 188 of file lua_gui2.cpp.
References sdl::get_mouse_location(), luaW_toboolean(), gui2::dialogs::drop_down_menu::selected_item(), and gui2::dialogs::modal_dialog::show().
Referenced by luaW_open(), and play_controller::hotkey_handler::show_menu().
int lua_gui2::show_message_box | ( | lua_State * | L | ) |
Displays a simple message box.
Definition at line 213 of file lua_gui2.cpp.
References c, luaW_checktstring(), luaW_toboolean(), gui2::OK, and gui2::show_message().
Referenced by luaW_open().
int lua_gui2::show_message_dialog | ( | lua_State * | L | ) |
Displays a message window.
Definition at line 62 of file lua_gui2.cpp.
References gui2::dialogs::wml_message_input::caption, config::empty(), config::has_attribute(), i, luaW_checkconfig(), luaW_toconfig(), luaW_totstring(), gui2::dialogs::wml_message_input::maximum_length, n, gui2::dialogs::show_wml_message(), gui2::dialogs::wml_message_input::text, and gui2::dialogs::wml_message_input::text_input_was_specified.
Referenced by luaW_open().
int lua_gui2::show_popup_dialog | ( | lua_State * | L | ) |
Displays a popup message.
Definition at line 151 of file lua_gui2.cpp.
References luaW_checktstring(), wfl::msg(), and gui2::show_transient_message().
Referenced by luaW_open().
int lua_gui2::show_story | ( | lua_State * | L | ) |
Displays a story screen.
Definition at line 165 of file lua_gui2.cpp.
References gui2::dialogs::story_viewer::display(), luaW_checkconfig(), and luaW_checktstring().
Referenced by luaW_open().
int lua_gui2::switch_theme | ( | lua_State * | L | ) |
Changes the current ui(gui2) theme.
Definition at line 176 of file lua_gui2.cpp.
References gui2::switch_theme().
Referenced by luaW_open().