TabPanel
Usage​
Client/Index.lua
local tabPanel = EGUI.TabPanel(10, 10, 100, 100)
Constructor Parameters​
Type | Name | Default |
---|---|---|
number | posX | |
number | posY | |
number | width | |
number | height | |
table | parent | nil |
Functions​
Inherited Element Functions
Returns | Name | Description |
---|---|---|
Base Element | SetVisible | Sets element visibility |
boolean | IsVisible | Returns if element is visible |
Base Element | SetAlpha | Sets element alpha |
number | GetAlpha | Returns element alpha |
Base Element | SetPosition | Sets element position |
number , number | GetPosition | Returns element position |
Base Element | SetSize | Sets element size |
number , number | GetSize | Returns element size |
Base Element | SetAlignment | Sets element alignment |
string | GetAlignment | Gets element alignment |
Subscribe | Subscribes to an event | |
Unsubscribe | Unsubscribes from a event |
Returns | Name | Description |
---|---|---|
table | AddTab | Adds new tab to tab panel |
AddTab​
Adds new tab to tab panel
Returns a
table
tabPanel:AddTab("Tab")
Type | Parameter | Default Value | Description |
---|---|---|---|
string | text | The title of the tab |