The Battle for Wesnoth  1.15.5+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.

Namespaces

 lua_widget
 

Functions

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(), and gui2::window::show().

Referenced by lua_kernel_base::lua_kernel_base().