37 virtual const char*
what() const noexcept {
38 return buffer.c_str();
46 static int call_func(lua_State*
L,
int nargs,
int nret);
51 static int ui_new_button(lua_State*
L);
52 static int ui_new_image(lua_State*
L);
53 static int ui_new_group(lua_State*
L);
54 static int ui_new_div(lua_State*
L);
55 static int ui_new_window(lua_State*
L);
56 static int ui_new_checkbox(lua_State*
L);
57 static int ui_set_checkbox_value(lua_State*
L);
58 static int ui_get_checkbox_value(lua_State*
L);
59 static int ui_new_slider(lua_State*
L);
60 static int ui_get_slider_value(lua_State*
L);
61 static int ui_set_slider_value(lua_State*
L);
62 static int ui_new_label(lua_State*
L);
63 static int ui_set_text(lua_State*
L);
64 static int ui_get_image(lua_State*
L);
65 static int ui_set_image(lua_State*
L);
66 static int ui_set_scroll(lua_State*
L);
67 static int ui_set_on_click(lua_State*
L);
68 static int ui_set_window_on_click_close_btn(lua_State*
L);
69 static int ui_get_widget(lua_State*
L);
70 static int ui_widget_kill(lua_State*
L);
71 static int ui_widget_set_tooltip(lua_State*
L);
72 static int ui_register_callback(lua_State*
L);
73 static int ui_widget_set_flex(lua_State*
L);
virtual const char * what() const noexcept
LuaException(const std::string &message)
void invoke_registered_callback(const std::string &name)
Some UI functions are hardcoded, for example the main menu is hardcoded to appear when the game start...
static int call_func(lua_State *L, int nargs, int nret)