Skip to content

MCM_Value

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

Inherits: MCM_Type

Inherited By: MCM_String, MCM_Int, MCM_FLoat, MCM_Bool, MCM_Keycode, MCM_Color, MCM_Dropdown, MCM_Vector2, MCM_Vector3, MCM_Array, MCM_Dictionary, MCM_, MCM_Collections, MCM_Numbers, MCM_Vectors

Description

An editable value within MCM

Properties

Type Name
String Tooltip
Variant Default
String Category
String OnValueChanged

Constructors

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

Methods

Return Value Name and Parameters
MCM_Type setCategory(category: String)
MCM_Type setOnValueChanged(onValueChanged: String)
Dictionary createConfigObject() const

Property Descriptions

String Tooltip

 A short description of the value that will be displayed when hovering over the name in the configuration menu.


Variant Default

 The default value that the player can revert back to in the configuration menu.


String Category

 The categories name/id to place the value in.


String OnValueChanged

 The callback function to call when this value is changed by the player in MCM

Constructor Descriptions

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

 Constructs an MCM_Value and sets the Tooltip and Default properties. And then sends section, id, and name parameters to the inherited MCM_Type constructor

Method Descriptions

MCM_Type setCategory(category: String)

 Set what category the value belongs to.


MCM_Type setOnValueChanged(onValueChanged: String)

 Set the callback function to be called when the value is changed

Clone this wiki locally