-
Notifications
You must be signed in to change notification settings - Fork 4
MCM_Number
Inherits: MCM_Value < MCM_Type
Inherited By: MCM_Float, MCM_Int, MCM_Vector2, MCM_Vector3
The base type for all editable values that store numbers
| Type | Name |
|---|---|
| Variant | MinRange |
| Variant | MaxRange |
| Variant | Step |
| Return Value | Name and Parameters |
|---|---|
| MCM_Number | MCM_Number(section: String, id: String, name: String, tooltip: String, default: Variant) |
| Return Value | Name and Parameters |
|---|---|
| MCM_Number | setMinRange(minRange: Variant) |
| MCM_Number | setMaxRange(maxRange: Variant) |
| MCM_Number | setStep(step: Variant) |
| Dictionary | createConfigObject() const |
Variant MinRange
The minimum value the player is able to set the value to in the configuration menu.
Variant MaxRange
The maximum value the player is able to set the value to in the configuration menu.
Variant Step
How much is added per step in both the Slider and SpinBox input. Also controls how many decimal places are allowed if it accepts floating point numbers
Constructs an MCM_Number. And then sends section, id, name, tooltip, and default parameters to the inherited MCM_Value constructor
MCM_Number setMinRange(minRange: Variant)
Set the minimum value this value can be set to
MCM_Number setMaxRange(maxRange: Variant)
Set the maximum value this value can be set to
MCM_Number setStep(step: Variant)
Set how much the UI SpinBox/Slider increments/decrements the value.