⚙️CMenuGearAttachment
CMenuGearAttachment metatable.
:Name(): string
string
Returns widget's name.
Returns widget's parent.
:Type(): Enum.WidgetType
Enum.WidgetType
Returns widget type.
:Open(): nil
nil
Opens parent tabs.
:ForceLocalization(newText: string
): nil
string
): nil
Not recommended for use due to its complexity
Changes text in the widget. The path to the widget is not affected. May be used for dynamic text customization or recolor.
:Find(widgetName: string
): CMenuSwitch
|
CMenuBind
|
CMenuSliderFloat
|
CMenuSliderInt
|
CMenuColorPicker
|
CMenuComboBox
|
CMenuMultiComboBox
|
CMenuMultiSelect
|
CMenuInputBox
|
CMenuLabel
|nil
string
): CMenuSwitch
|
CMenuBind
|
CMenuSliderFloat
|
CMenuSliderInt
|
CMenuColorPicker
|
CMenuComboBox
|
CMenuMultiComboBox
|
CMenuMultiSelect
|
CMenuInputBox
|
CMenuLabel
|nil
Finds the widget by name.
Creates new CMenuSwitch
.
Creates new CMenuBind
.
:Slider(sliderName: string
, minValue: integer
, maxValue: integer
, defaultValue: integer
, format [?]
: string|fun(value: integer):string
): CMenuSliderInt
string
, minValue: integer
, maxValue: integer
, defaultValue: integer
, format [?]
: string|fun(value: integer):string
): CMenuSliderInt
Creates new CMenuSliderInt
or CMenuSliderFloat
depents on arg types.
minValue
, maxValue
and defaultValue
should be integer to create CMenuSliderInt
.
Example
:Slider(sliderName: string
, minValue: number
, maxValue: number
, defaultValue: number
, format [?]
: string|fun(value: number):string
): CMenuSliderFloat
string
, minValue: number
, maxValue: number
, defaultValue: number
, format [?]
: string|fun(value: number):string
): CMenuSliderFloat
Creates new CMenuSliderFloat
.
Example
Creates new CMenuColorPicker
.
Creates new CMenuComboBox
.
Creates new CMenuMultiComboBox
.
Example
:MultiSelect(multiSelectName: string
, items: {nameId: string, imagePath: string, isEnabled: boolean}[]
, expanded [?]
: boolean
): CMenuMultiSelect
string
, items: {nameId: string, imagePath: string, isEnabled: boolean}[]
, expanded [?]
: boolean
): CMenuMultiSelect
Creates new CMenuMultiSelect
.
Example
Creates new CMenuInputBox
.
Creates new CMenuLabel
.
:Visible(value: boolean
): nil
boolean
): nil
Gets or sets visible state. Depends on argument.
Example
:Visible(): boolean
boolean
Example
:Disabled(value: boolean
): nil
boolean
): nil
Gets or sets disabled state. Depends on argument.
Example
:Disabled(): boolean
boolean
Example
Last updated