The Battle for Wesnoth  1.15.2+dev
lua_gui2.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2018 by Chris Beck <render787@gmail.com>
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 struct lua_State;
18 class lua_kernel_base;
19 class vconfig;
20 class game_data;
21 class game_state;
22 
23 namespace lua_gui2 {
24 
36 int show_dialog(lua_State *L);
39 int show_menu(lua_State* L);
40 int show_story(lua_State* L);
43 int show_gamestate_inspector(const vconfig& cfg, const game_data& data, const game_state& state);
45 
46 } // end namespace lua_gui2
int intf_set_dialog_active(lua_State *L)
Sets a widget&#39;s state to active or inactive.
Definition: lua_gui2.cpp:847
int show_lua_console(lua_State *, lua_kernel_base *lk)
Definition: lua_gui2.cpp:912
int intf_add_dialog_tree_node(lua_State *L)
Sets a widget&#39;s state to active or inactive.
Definition: lua_gui2.cpp:931
int show_story(lua_State *L)
Displays a story screen.
Definition: lua_gui2.cpp:367
int show_dialog(lua_State *L)
Displays a window.
Definition: lua_gui2.cpp:233
int show_message_dialog(lua_State *L)
Displays a message window.
Definition: lua_gui2.cpp:264
int intf_remove_dialog_item(lua_State *L)
Removes an entry from a list.
Definition: lua_gui2.cpp:681
int intf_set_dialog_markup(lua_State *L)
Enables/disables Pango markup on the label of a widget of the current dialog.
Definition: lua_gui2.cpp:792
int intf_add_widget_definition(lua_State *L)
Definition: lua_gui2.cpp:956
int intf_set_dialog_focus(lua_State *L)
Sets a widget to have the focus.
Definition: lua_gui2.cpp:835
int show_gamestate_inspector(const vconfig &cfg, const game_data &data, const game_state &state)
Definition: lua_gui2.cpp:918
int intf_set_dialog_tooltip(lua_State *L)
Sets the value of a widget on the current dialog.
Definition: lua_gui2.cpp:572
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.
Definition: lua_gui2.cpp:380
int intf_set_dialog_canvas(lua_State *L)
Sets a canvas on a widget of the current dialog.
Definition: lua_gui2.cpp:811
int show_popup_dialog(lua_State *L)
Displays a popup message.
Definition: lua_gui2.cpp:353
int intf_set_dialog_value(lua_State *L)
Sets the value of a widget on the current dialog.
Definition: lua_gui2.cpp:443
int intf_set_dialog_callback(lua_State *L)
Sets a callback on a widget of the current dialog.
Definition: lua_gui2.cpp:741
A variable-expanding proxy for the config class.
Definition: variable.hpp:44
int intf_get_dialog_value(lua_State *L)
Gets the value of a widget on the current dialog.
Definition: lua_gui2.cpp:590
int show_message_box(lua_State *L)
Displays a simple message box.
Definition: lua_gui2.cpp:406
int intf_set_dialog_visible(lua_State *L)
Sets the visiblity of a widget in the current dialog.
Definition: lua_gui2.cpp:865