EmuTab - DragoniteSpam/Emu GitHub Wiki
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.
Constructor
Inheritance: EmuCore
EmuTab(name)
| Parameter | Type | Description |
|---|---|---|
| name | string | The text displayed on the tab |
Relevant Methods
EmuTabGroup::IsActiveTab()
Returns: boolean
Use this to check if a tab currently has focus.
EmuTab::RequestActivate()
Returns: N/A
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.
Example
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.