The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
lua_gui2.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2014 - 2025
3 by Chris Beck <render787@gmail.com>
4 Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY.
12
13 See the COPYING file for more details.
14*/
15
16#pragma once
17
18#include <string>
19
20struct lua_State;
21class lua_kernel_base;
22class vconfig;
23class game_data;
24class game_state;
25
26namespace lua_gui2 {
27
28int intf_add_widget_definition(lua_State *L);
29int show_message_dialog(lua_State *L);
30int show_popup_dialog(lua_State *L);
31int switch_theme(lua_State* L);
32int show_menu(lua_State* L);
33int show_story(lua_State* L);
34int show_message_box(lua_State* L);
35int show_lua_console(lua_State*L, lua_kernel_base * lk);
36int show_gamestate_inspector(const std::string& name, const game_data& data, const game_state& state);
37int intf_show_recruit_dialog(lua_State* L);
38int intf_show_recall_dialog(lua_State* L);
39int luaW_open(lua_State *L);
40
41} // end namespace lua_gui2
A variable-expanding proxy for the config class.
Definition variable.hpp:45
int show_popup_dialog(lua_State *L)
Displays a popup message.
Definition lua_gui2.cpp:156
int intf_show_recall_dialog(lua_State *L)
Definition lua_gui2.cpp:318
int intf_show_recruit_dialog(lua_State *L)
Definition lua_gui2.cpp:262
int luaW_open(lua_State *L)
Definition lua_gui2.cpp:398
int show_lua_console(lua_State *, lua_kernel_base *lk)
Definition lua_gui2.cpp:250
int show_story(lua_State *L)
Displays a story screen.
Definition lua_gui2.cpp:170
int switch_theme(lua_State *L)
Changes the current ui(gui2) theme.
Definition lua_gui2.cpp:181
int show_message_box(lua_State *L)
Displays a simple message box.
Definition lua_gui2.cpp:218
int show_gamestate_inspector(const std::string &name, const game_data &data, const game_state &state)
Definition lua_gui2.cpp:256
int intf_add_widget_definition(lua_State *L)
Definition lua_gui2.cpp:384
int show_message_dialog(lua_State *L)
Displays a message window.
Definition lua_gui2.cpp:67
int show_menu(lua_State *L)
Displays a popup menu at the current mouse position Best used from a [set_menu_item],...
Definition lua_gui2.cpp:193
std::string_view data
Definition picture.cpp:188