lua: sub folders support, check for .lua file extension, refactor and simplify internals. (#1775)
This commit is contained in:
@ -59,7 +59,7 @@ namespace lua::gui
|
||||
// Param: name: string: Text written inside the button.
|
||||
// Param: callback: function: function that will be called when the button is clicked.
|
||||
// Add a button to the gui tab.
|
||||
std::shared_ptr<lua::gui::button> add_button(const std::string& name, sol::protected_function callback, sol::this_state state);
|
||||
lua::gui::button* add_button(const std::string& name, sol::protected_function callback, sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
@ -67,7 +67,7 @@ namespace lua::gui
|
||||
// Param: name: string: Text that will be written.
|
||||
// Returns: text: The text object instance.
|
||||
// Add text to the gui tab.
|
||||
std::shared_ptr<lua::gui::text> add_text(const std::string& name, sol::this_state state);
|
||||
lua::gui::text* add_text(const std::string& name, sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
@ -75,21 +75,21 @@ namespace lua::gui
|
||||
// Param: name: string: Text that will be written next to the checkbox.
|
||||
// Returns: checkbox: The checkbox object instance.
|
||||
// Add a checkbox widget to the gui tab.
|
||||
std::shared_ptr<lua::gui::checkbox> add_checkbox(const std::string& name, sol::this_state state);
|
||||
lua::gui::checkbox* add_checkbox(const std::string& name, sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
// Name: add_sameline
|
||||
// Returns: sameline: The sameline object instance.
|
||||
// Add a ImGui::SameLine.
|
||||
std::shared_ptr<lua::gui::sameline> add_sameline(sol::this_state state);
|
||||
lua::gui::sameline* add_sameline(sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
// Name: add_separator
|
||||
// Returns: separator: The separator object instance.
|
||||
// Add a ImGui::Separator.
|
||||
std::shared_ptr<lua::gui::separator> add_separator(sol::this_state state);
|
||||
lua::gui::separator* add_separator(sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
@ -97,7 +97,7 @@ namespace lua::gui
|
||||
// Param: name: string: Text that will be written next to the input field.
|
||||
// Returns: input_int: The input_int object instance.
|
||||
// Add a ImGui::InputInt.
|
||||
std::shared_ptr<lua::gui::input_int> add_input_int(const std::string& name, sol::this_state state);
|
||||
lua::gui::input_int* add_input_int(const std::string& name, sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
@ -105,7 +105,7 @@ namespace lua::gui
|
||||
// Param: name: string: Text that will be written next to the input field.
|
||||
// Returns: input_float: The input_float object instance.
|
||||
// Add a ImGui::InputFloat.
|
||||
std::shared_ptr<lua::gui::input_float> add_input_float(const std::string& name, sol::this_state state);
|
||||
lua::gui::input_float* add_input_float(const std::string& name, sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
@ -113,7 +113,7 @@ namespace lua::gui
|
||||
// Param: name: string: Text that will be written next to the input field.
|
||||
// Returns: input_string: The input_string object instance.
|
||||
// Add a ImGui::InputText.
|
||||
std::shared_ptr<lua::gui::input_string> add_input_string(const std::string& name, sol::this_state state);
|
||||
lua::gui::input_string* add_input_string(const std::string& name, sol::this_state state);
|
||||
|
||||
// Lua API: Function
|
||||
// Class: tab
|
||||
@ -134,7 +134,7 @@ namespace lua::gui
|
||||
// end
|
||||
// end)
|
||||
// ```
|
||||
std::shared_ptr<lua::gui::raw_imgui_callback> add_imgui(sol::protected_function imgui_rendering, sol::this_state state);
|
||||
lua::gui::raw_imgui_callback* add_imgui(sol::protected_function imgui_rendering, sol::this_state state);
|
||||
};
|
||||
|
||||
void bind(sol::state& state);
|
||||
|
Reference in New Issue
Block a user