Skip to content

MCM_Number

github-actions[bot] edited this page Jul 19, 2026 · 1 revision

Inherits: MCM_Value < MCM_Type

Inherited By: MCM_Float, MCM_Int, MCM_Vector2, MCM_Vector3

Description

The base type for all editable values that store numbers

Properties

Type Name
Variant MinRange
Variant MaxRange
Variant Step

Constructors

Return Value Name and Parameters
MCM_Number MCM_Number(section: String, id: String, name: String, tooltip: String, default: Variant)

Methods

Return Value Name and Parameters
MCM_Number setMinRange(minRange: Variant)
MCM_Number setMaxRange(maxRange: Variant)
MCM_Number setStep(step: Variant)
Dictionary createConfigObject() const

Property Descriptions

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

Constructor Descriptions

MCM_Number MCM_Number(section: String, id: String, name: String, tooltip: String, default: Variant)

 Constructs an MCM_Number. And then sends section, id, name, tooltip, and default parameters to the inherited MCM_Value constructor

Method Descriptions

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.

Clone this wiki locally