⚙️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
newText
string
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
widgetName
string
Finds the widget by name.
switchName
string
defaultValue [?]
boolean
(default: false)
imageIcon [?]
string
Path to image or FontAwesome icon unicode. (default: "")
Creates new CMenuSwitch
.
bindName
string
imageIcon [?]
string
Path to image or FontAwesome icon unicode. (default: "")
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
sliderName
string
minValue
integer
maxValue
integer
defaultValue
integer
format [?]
string|fun(value: integer):string
Format string or function to format value. See example. (default: "%d")
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
sliderName
string
minValue
number
maxValue
number
defaultValue
number
format [?]
string|fun(value: number):string
Format string or function to format value. See example. (default: "%f")
Creates new CMenuSliderFloat
.
Example
colorPickerName
string
imageIcon [?]
string
Path to image or FontAwesome icon unicode. (default: "")
Creates new CMenuColorPicker
.
comboName
string
items
string[]
defaultValue [?]
integer
Index of default item. (starts from 0) (default: 0)
Creates new CMenuComboBox
.
multiComboName
string
items
string[]
enabledItems
string[]
table of enabled items
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
multiSelectName
string
items
{nameId: string, imagePath: string, isEnabled: boolean}[]
See example.
expanded [?]
boolean
false if you want to create MultiSelect in collapsed state. (default: false)
Creates new CMenuMultiSelect
.
Example
inputName
string
defaultValue [?]
string
(default: "")
imageIcon [?]
string
Path to image or FontAwesome icon unicode. (default: "")
Creates new CMenuInputBox
.
labelText
string
imageIcon [?]
string
Path to image or FontAwesome icon unicode. (default: "")
Creates new CMenuLabel
.
:Visible(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets visible state. Depends on argument.
Example
:Visible(): boolean
boolean
Example
:Disabled(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets disabled state. Depends on argument.
Example
:Disabled(): boolean
boolean
Example
Last updated