FCMCtrlUpDown

Summary of Modifications

  • Methods that returned a boolean to indicate success/failure now throw an error instead.
  • GetConnectedEdit returns the original control object.
  • Added methods to allow handlers for the UpDownPressed event to be set directly on the control.

Functions

Init

fcmctrlupdown.Init(self)

View source

[Internal]

Input Type Description
self FCMCtrlUpDown

GetConnectedEdit

fcmctrlupdown.GetConnectedEdit(self)

View source

[Override]

Override Changes:

  • Ensures that original edit control is returned.
Input Type Description
self FCMCtrlUpDown
Return type Description
FCMCtrlEdit | nil nil if there is no edit connected.

ConnectIntegerEdit

fcmctrlupdown.ConnectIntegerEdit(self, control, minvalue, maxvalue)

View source

[Breaking Change] [Fluid] [Override]

Override Changes:

  • Stores original control object.
  • Throws an error instead of returning a boolean for success/failure.
Input Type Description
self FCMCtrlUpDown
control FCCtrlEdit
minvalue number
maxvalue number

ConnectMeasurementEdit

fcmctrlupdown.ConnectMeasurementEdit(self, control, minvalue, maxvalue)

View source

[Breaking Change] [Fluid] [Override]

Override Changes:

  • Stores original control object.
  • Throws an error instead of returning a boolean for success/failure.
Input Type Description
self FCMCtrlUpDown
control FCCtrlEdit
minvalue number
maxvalue number

AddHandlePress

fcmctrlupdown.AddHandlePress(self, callback)

View source

[Fluid] Adds a handler for UpDownPressed events.

Input Type Description
self FCMCtrlUpDown
callback function See FCCustomLuaWindow.HandleUpDownPressed in the PDK for callback signature.

RemoveHandlePress

fcmctrlupdown.RemoveHandlePress(self, callback)

View source

[Fluid] Removes a handler added with AddHandlePress.

Input Type Description
self FCMCtrlUpDown
callback function