🖲️CMenuButton
CMenuButton 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.
:ToolTip(newText: string
): string
string
): string
Gets or sets tooltip. Tooltip is displayed when mouse cursor is over the widget. Depends on the argument.
:ToolTip(): string
string
: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
:Unsafe(value: boolean
): nil
boolean
): nil
Gets or sets unsafe state. Unsafe widgets have warning sign. Depends on argument.
:Unsafe(): boolean
boolean
Sets widget's image.
Sets widget's icon. Icons list
Example
:SetCallback(callback: fun(this: CMenuButton):nil
, forceCall [?]
: boolean
): nil
fun(this: CMenuButton):nil
, forceCall [?]
: boolean
): nil
Multiple callbacks could be set.
Sets widget's on change callback.
:UnsetCallback(callback: fun(this: CMenuButton):nil
): nil
fun(this: CMenuButton):nil
): nil
Removes widget's on change callback.
Last updated