🔑CMenuBind
CMenuBind metatable.
:Name(): string
string
Returns widget's name.
Returns widget's parent.
:Type(): Enum.WidgetType
Enum.WidgetType
Returns widget's 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
Returns widget's value. To get both of the buttons use Buttons
method.
Sets widget's value.
:Buttons(): Enum.ButtonCode
, Enum.ButtonCode
Enum.ButtonCode
, Enum.ButtonCode
Returns widget's buttons value.
:IsDown(): boolean
boolean
Returns true
when the key or both keys is down.
:IsPressed(): boolean
boolean
Returns true
when the key or both keys is pressed for the first time.
:IsToggled(): boolean
boolean
Bind stores it's toggle state and switches it when the key is pressed. This method returns this state.
:SetToggled(value: boolean
): nil
boolean
): nil
Sets the toggle state manually.
Sets widget's image.
Sets widget's icon. Icons list
Example
:SetCallback(callback: fun(this: CMenuBind):nil
, forceCall [?]
: boolean
): nil
fun(this: CMenuBind):nil
, forceCall [?]
: boolean
): nil
Multiple callbacks could be set.
Sets widget's on change callback.
:UnsetCallback(callback: fun(this: CMenuBind):nil
): nil
fun(this: CMenuBind):nil
): nil
Removes widget's on change callback.
Creates CMenuColorPickerAttachment
and attaches it to the widget.
Creates CMenuGearAttachment
and attaches it to the widget.
:Properties(name [?]
: string
, value [?]
: string
, markAsToggle [?]
: boolean
): nil
[?]
: string
, value [?]
: string
, markAsToggle [?]
: boolean
): nil
Updates the properties of a widget for display in the bind list.
:ShowInBindIsland(newStatus: boolean
): boolean
boolean
): boolean
Gets or sets the visibility of the bind in the bind island.
:ShowInBindIsland(): boolean
boolean
:MouseBinding(newStatus: boolean
): boolean
boolean
): boolean
Gets or sets the ability to bind the mouse button.
:MouseBinding(): boolean
boolean
Last updated