-
Notifications
You must be signed in to change notification settings - Fork 4
MCM_Value
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
An editable value within MCM
| Type | Name |
|---|---|
| String | Tooltip |
| Variant | Default |
| String | Category |
| String | OnValueChanged |
| Return Value | Name and Parameters |
|---|---|
| MCM_Value | MCM_Value(section: String, id: String, name: String, tooltip: String, default: Variant) |
| Return Value | Name and Parameters |
|---|---|
| MCM_Type | setCategory(category: String) |
| MCM_Type | setOnValueChanged(onValueChanged: String) |
| Dictionary | createConfigObject() const |
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
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
Set what category the value belongs to.
Set the callback function to be called when the value is changed