-
Notifications
You must be signed in to change notification settings - Fork 0
EmuTab
Michael edited this page Jul 3, 2021
·
2 revisions
A tab which can be added to an EmuTabGroup. Tabs act as containers for other UI elements, with exactly one tab open at any given time.
Inheritance: EmuCore
EmuTab(name)
Parameter | Type | Description |
---|---|---|
name | string | The text displayed on the tab |
Returns: boolean
Use this to check if a tab currently has focus.
Returns: self
Use this to activate the tab, making its contents visible and hiding the previously active tab. This method is simply a mirror for EmuTabGroup::RequestActivateTab, but object-oriented purists may wish to use this method instead.
var tab_stats = new EmuTab("Player Stats");
group.AddTabs(1, tab_stats);
tab_stats.RequestActivate();
This will create an EmuTab and add it to the second row (zero-indexed) of a previously defined EmuTabGroup. The tab will then be activated.