The Battle for Wesnoth  1.15.12+dev
Namespaces | Functions
lua_widget_methods.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.




int intf_show_dialog (lua_State *L)
 Displays a window. More...
int lua_widget::luaW_open (lua_State *L)

Function Documentation

◆ intf_show_dialog()

int intf_show_dialog ( lua_State L)

Displays a window.

  • Arg 1: WML table describing the window.
  • Arg 2: function called at pre-show.
  • Arg 3: function called at post-show.
  • Ret 1: integer.

Definition at line 65 of file lua_widget_methods.cpp.

References gui2::build(), lua_call, lua_isnoneornil, lua_pushinteger(), lua_pushvalue(), luaW_checkconfig(), luaW_clearwindowtable(), luaW_pushwidget(), gui2::open_window_stack, gui2::remove_from_window_stack(), and gui2::window::show().

Referenced by lua_gui2::luaW_open().