Skip to content

MCM_Float

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

Inherits: MCM_Number < MCM_Value < MCM_Type

Description

Allows the player to input a float value in MCM

Constructors

Return Value Name and Parameters
MCM_Float MCM_Float(id: String, name: String, tooltip: String, default: float)

Methods

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

Constructor Descriptions

MCM_Float MCM_Float(id: String, name: String, tooltip: String, default: float)

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

Method Descriptions

MCM_Float setMinRange(minRange: float)

 Set the minimum value this value can be set to


MCM_Float setMaxRange(maxRange: float)

 Set the maximum value this value can be set to


MCM_Float setStep(step: float)

 Set how much the UI SpinBox/Slider increments/decrements the value

Clone this wiki locally