📏CMenuSliderFloat
Last updated
Last updated
number
, maxValue: number
, defaultValue: number
): nil
Name | Type | Description |
---|---|---|
Updates the slider values.
string
Returns widget's name.
Returns widget's parent.
Enum.WidgetType
Returns widget type.
nil
Opens parent tabs.
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.
string
): string
Gets or sets tooltip. Tooltip is displayed when mouse cursor is over the widget. Depends on the argument.
string
boolean
): nil
Gets or sets visible state. Depends on argument.
boolean
boolean
): nil
Gets or sets disabled state. Depends on argument.
boolean
boolean
): nil
Gets or sets unsafe state. Unsafe widgets have warning sign. Depends on argument.
boolean
number
Returns widget's value.
number
): nil
Sets widget's value.
Sets widget's image.
Sets widget's icon. Icons list
fun(this: CMenuSliderFloat):nil
, forceCall [?]
: boolean
): nil
Multiple callbacks could be set.
Sets widget's on change callback.
fun(this: CMenuSliderFloat):nil
): nil
Removes widget's on change callback.
Creates CMenuColorPickerAttachment
and attaches it to the widget.
Creates CMenuGearAttachment
and attaches it to the widget.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
minValue
number
maxValue
number
defaultValue
number
newText
string
newText
string
value
boolean
value
boolean
value
boolean
value
number
imagePath
string
Path to the image.
offset [?]
Optional image offset. (default: {0.0, 0.0})
icon
string
icon unicode.
offset [?]
Optional icon offset. (default: {0.0, 0.0})
callback
fun(this: CMenuSliderFloat):nil
function to be called on widget change.\
forceCall [?]
boolean
true if you want to call callback on widget creation. (default: false)
callback
fun(this: CMenuSliderFloat):nil
function to be removed from widget's callbacks.
name
string
Name of the attachment.
color
Default color.
name
string
Name of the attachment.
gearIcon [?]
string
Gear FontAwesome icon. (default: "\uf013")
useSmallFont [?]
boolean
Use small font for gear icon. (default: true)