-
Notifications
You must be signed in to change notification settings - Fork 4
Float Value Type
github-actions[bot] edited this page May 27, 2026
·
9 revisions
_config.set_value("Float", "testFloat", {
"name" = "Test Float",
"tooltip" = "A test float",
"default" = 10.3,
"value" = 10.3,
"minRange" = 0,
"maxRange" = 50.5,
"step" = 0.001
})| Name | Value Type | Description |
|---|---|---|
name |
String |
The friendly name of the value that will be displayed in the configuration menu. |
toolitp |
String |
A short description of the value that will be displayed when hovering over the name in the configuration menu. |
default |
Float |
The default value that the player can revert back to in the configuration menu. |
| Name | Value Type | Description |
|---|---|---|
value |
Float |
The current value that is set. If this property is not present on creation it will automatically be set to the default value. |
category |
String |
The categories name to place the value in. Learn more about this property here. |
menu_pos |
Int |
Overrides the default alhpabetical sorting and places it in the given position in relation to other values with a menu_pos property. Learn more about this property here.
|
minRange |
Float |
The minimum value the player is able to set the value to in the configuration menu. |
maxRange |
Float |
The maximum value the player is able to set the value to in the configuration menu. |
step |
Float |
This property effectively sets two settings. 1. How many decimal places are allowed in the input 2. How much is added per step in both the Slider and SpinBox input. |