feat(lua): Add tab:is_selected function to check if the tab is the currently selected one in the GUI. (#1763)

This commit is contained in:
Quentin
2023-07-19 09:28:22 +02:00
committed by GitHub
parent 81bd1f9dc7
commit 69959df3ed
3 changed files with 28 additions and 6 deletions

View File

@ -35,6 +35,12 @@ namespace lua::gui
tab(const std::string& name, const rage::joaat_t parent_tab_hash, const sol::this_state& state);
// Lua API: Function
// Class: tab
// Name: is_selected
// Returns: boolean: Returns true if this tab is the one currently selected in the GUI.
bool is_selected(sol::this_state state);
// Lua API: Function
// Class: tab
// Name: clear
@ -123,7 +129,7 @@ namespace lua::gui
// -- call natives in there
// end)
// end
//
//
// ImGui.End()
// end
// end)