The Battle for Wesnoth  1.19.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 54 of file lua_widget_methods.cpp.

References luaW_checkconfig(), luaW_clearwindowtable(), luaW_pushwidget(), ON_SCOPE_EXIT, gui2::open_window_stack, and gui2::remove_from_window_stack().

Referenced by lua_gui2::luaW_open().