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:
@ -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)
|
||||
|
Reference in New Issue
Block a user