The Battle for Wesnoth  1.15.1+dev
Namespaces | Macros | Functions | Variables
lua_gui2.cpp File Reference
#include "scripting/lua_gui2.hpp"
#include "gui/auxiliary/old_markup.hpp"
#include "gui/core/canvas.hpp"
#include "gui/core/gui_definition.hpp"
#include "gui/core/window_builder.hpp"
#include "gui/dialogs/drop_down_menu.hpp"
#include "gui/dialogs/gamestate_inspector.hpp"
#include "gui/dialogs/lua_interpreter.hpp"
#include "gui/dialogs/wml_message.hpp"
#include "gui/dialogs/story_viewer.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/widgets/clickable_item.hpp"
#include "gui/widgets/styled_widget.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/multi_page.hpp"
#include "gui/widgets/multimenu_button.hpp"
#include "gui/widgets/progress_bar.hpp"
#include "gui/widgets/selectable_item.hpp"
#include "gui/widgets/slider.hpp"
#include "gui/widgets/stacked_widget.hpp"
#include "gui/widgets/text_box.hpp"
#include "gui/widgets/tree_view.hpp"
#include "gui/widgets/tree_view_node.hpp"
#include "gui/widgets/unit_preview_pane.hpp"
#include "gui/widgets/widget.hpp"
#include "gui/widgets/window.hpp"
#include "config.hpp"
#include "log.hpp"
#include "scripting/lua_common.hpp"
#include "scripting/lua_kernel_base.hpp"
#include "scripting/lua_unit.hpp"
#include "scripting/lua_unit_type.hpp"
#include "scripting/push_check.hpp"
#include "serialization/string_utils.hpp"
#include "tstring.hpp"
#include "game_data.hpp"
#include "game_state.hpp"
#include "utils/functional.hpp"
#include <map>
#include <utility>
#include <vector>
#include <boost/optional.hpp>
#include "lua/lauxlib.h"
#include "lua/lua.h"
Include dependency graph for lua_gui2.cpp:

Go to the source code of this file.

Namespaces

 lua_gui2
 

Macros

#define ERR_LUA   LOG_STREAM(err, log_scripting_lua)
 

Functions

static gui2::widgetfind_widget (lua_State *L, int i, bool readonly)
 
int lua_gui2::show_dialog (lua_State *L)
 Displays a window. More...
 
int lua_gui2::show_message_dialog (lua_State *L)
 Displays a message window. More...
 
int lua_gui2::show_popup_dialog (lua_State *L)
 Displays a popup message. More...
 
int lua_gui2::show_story (lua_State *L)
 Displays a story screen. More...
 
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. More...
 
int lua_gui2::show_message_box (lua_State *L)
 Displays a simple message box. More...
 
int lua_gui2::intf_set_dialog_value (lua_State *L)
 Sets the value of a widget on the current dialog. More...
 
int lua_gui2::intf_set_dialog_tooltip (lua_State *L)
 Sets the value of a widget on the current dialog. More...
 
int lua_gui2::intf_get_dialog_value (lua_State *L)
 Gets the value of a widget on the current dialog. More...
 
int lua_gui2::intf_remove_dialog_item (lua_State *L)
 Removes an entry from a list. More...
 
int lua_gui2::intf_set_dialog_callback (lua_State *L)
 Sets a callback on a widget of the current dialog. More...
 
int lua_gui2::intf_set_dialog_markup (lua_State *L)
 Enables/disables Pango markup on the label of a widget of the current dialog. More...
 
int lua_gui2::intf_set_dialog_canvas (lua_State *L)
 Sets a canvas on a widget of the current dialog. More...
 
int lua_gui2::intf_set_dialog_focus (lua_State *L)
 Sets a widget to have the focus. More...
 
int lua_gui2::intf_set_dialog_active (lua_State *L)
 Sets a widget's state to active or inactive. More...
 
int lua_gui2::intf_set_dialog_visible (lua_State *L)
 Sets the visiblity of a widget in the current dialog. More...
 
int lua_gui2::show_lua_console (lua_State *, lua_kernel_base *lk)
 
int lua_gui2::show_gamestate_inspector (const vconfig &cfg, const game_data &data, const game_state &state)
 
int lua_gui2::intf_add_dialog_tree_node (lua_State *L)
 Sets a widget's state to active or inactive. More...
 
int lua_gui2::intf_add_widget_definition (lua_State *L)
 

Variables

static lg::log_domain log_scripting_lua ("scripting/lua")
 
static const char dlgclbkKey [] = "dialog callback"
 

Macro Definition Documentation

◆ ERR_LUA

#define ERR_LUA   LOG_STREAM(err, log_scripting_lua)

Definition at line 67 of file lua_gui2.cpp.

Function Documentation

◆ find_widget()

static gui2::widget* find_widget ( lua_State L,
int  i,
bool  readonly 
)
static

Variable Documentation

◆ dlgclbkKey

const char dlgclbkKey[] = "dialog callback"
static

◆ log_scripting_lua

lg::log_domain log_scripting_lua("scripting/lua")
static