🗂️CMenuGroup
CMenuGroup metatable
:Name(): string
string
Returns group's name.
:Parent(): CThirdTab
CThirdTab
Returns group's parent.
:Type(): Enum.WidgetType
Enum.WidgetType
Returns widget type.
:Open(): nil
nil
Opens parent tabs.
:Find(widgetName: string
): CMenuSwitch
|
CMenuBind
|
CMenuSliderFloat
|
CMenuSliderInt
|
CMenuColorPicker
|
CMenuComboBox
|
CMenuButton
|
CMenuMultiComboBox
|
CMenuMultiSelect
|
CMenuInputBox
|
CMenuLabel
|nil
string
): CMenuSwitch
|
CMenuBind
|
CMenuSliderFloat
|
CMenuSliderInt
|
CMenuColorPicker
|
CMenuComboBox
|
CMenuButton
|
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
defaultValue [?]
(default: Enum.ButtonCode.BUTTON_CODE_INVALID)
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
color
imageIcon [?]
string
Path to image or FontAwesome icon unicode. (default: "")
Creates new CMenuColorPicker
.
buttonName
string
callback
function
func(this: CMenuButton):nil
function to call on button click.
altStyle [?]
boolean
Use alternative button style. (default: false)
Creates new CMenuButton
.
Example
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
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
.
:Disabled(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets group's disabled state. Depends on argument.
Example
:Disabled(): boolean
boolean
Example
:Visible(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets group's visible state. Depends on argument.
Example
:Visible(): boolean
boolean
Example
:SearchHidden(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets group's search state. Depends on argument.
Example
:SearchHidden(): boolean
boolean
Example
Last updated