📑CSecondTab

CSecondTab metatable

:Name(): string

Returns tab's name.


:Parent(): CTabSection

Returns tab's parent.


Returns widget type.


:Open(): nil

Opens parent tabs.


:Create(tabName: string): CThirdTab

Name
Type
Description

tabName

string

Creates new CThirdTab.


:Find(tabName: string): CThirdTab|nil

Name
Type
Description

tabName

string

Finds the CThirdTab by name.


:Image(imagePath: string, offset [?]: Vec2): nil

Name
Type
Description

imagePath

string

Path to the image.

offset [?]

Optional image offset. (default: {0.0, 0.0})

Sets tab's image.


:Icon(icon: string, offset [?]: Vec2): nil

Name
Type
Description

icon

string

icon unicode.

offset [?]

Optional icon offset. (default: {0.0, 0.0})

Sets tab's icon. Icons list

Example

-- https://fontawesome.com/icons/user?f=classic&s=solid
tab:Icon( "\f{007}" )

:LinkHero(heroId: integer, attribute: Enum.Attributes): nil

Name
Type
Description

heroId

integer

See Engine.GetHeroIDByName

Links tab to hero and attribute.

Last updated