The Battle for Wesnoth  1.19.0-dev
lua_gui2.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2024
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 struct lua_State;
19 class lua_kernel_base;
20 class vconfig;
21 class game_data;
22 class game_state;
23 
24 namespace lua_gui2 {
25 
26 int intf_add_widget_definition(lua_State *L);
27 int show_message_dialog(lua_State *L);
28 int show_popup_dialog(lua_State *L);
29 int show_menu(lua_State* L);
30 int show_story(lua_State* L);
31 int show_message_box(lua_State* L);
32 int show_lua_console(lua_State*L, lua_kernel_base * lk);
33 int show_gamestate_inspector(const vconfig& cfg, const game_data& data, const game_state& state);
34 int luaW_open(lua_State *L);
35 
36 } // 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:150
int luaW_open(lua_State *L)
Definition: lua_gui2.cpp:273
int show_lua_console(lua_State *, lua_kernel_base *lk)
Definition: lua_gui2.cpp:235
int show_gamestate_inspector(const vconfig &cfg, const game_data &data, const game_state &state)
Definition: lua_gui2.cpp:241
int show_story(lua_State *L)
Displays a story screen.
Definition: lua_gui2.cpp:164
int show_message_box(lua_State *L)
Displays a simple message box.
Definition: lua_gui2.cpp:203
int intf_add_widget_definition(lua_State *L)
Definition: lua_gui2.cpp:259
int show_message_dialog(lua_State *L)
Displays a message window.
Definition: lua_gui2.cpp:61
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:177
std::string_view data
Definition: picture.cpp:194