< Previous | Contents | Next >
Name | Type : Description |
RNGCS_LowName | string : The label to use on the left (low) side of the control. Overrides the name set by the first argument in the AddInput() function. |
Type : Description | |
RNGCS_MidName | string : The label to use in the center of the control. Defaults to blank. |
RNGCS_HighName | string : The label to use on the right (high) side of the control. Overrides the name set by the first argument in the AddInput() function. |
RNGCD_ LowOuterLength | number : This attribute can be used to specify the displayed Low limit for the range control. Normally this will be equal to the INP_Default value, or to 0. Lower values can still be entered into the control, this only sets the initial display. Using this attribute will also color the range control yellow. |
RNGCD_ HighOuterLength | number : This attribute can be used to specify the displayed High limit for the range control. Normally this will be equal to the INP_Default value, or to 1. Higher values can still be entered into the control, this only sets the initial display. Using this attribute will also color the range control yellow. |
The following is an example AddInput function that displays a range control.
InGLow = self:AddInput("Green Low", "GreenLow", { LINKID_DataType = "Number", INPID_InputControl = "RangeControl", INP_Default = 0.0,
IC_ControlGroup = 2,
IC_ControlID = 0,
})
InGHigh = self:AddInput("Green High", "GreenHigh", { LINKID_DataType = "Number", INPID_InputControl = "RangeControl", INP_Default = 1.0,
IC_ControlGroup = 2,
IC_ControlID = 1,
})