-
Notifications
You must be signed in to change notification settings - Fork 4
Integer Value Type
github-actions[bot] edited this page May 29, 2026
·
9 revisions
_config.set_value("Int", "testInt", {
"name" = "Test Int",
"tooltip" = "A test int",
"default" = 5
"minRange" = 0,
"maxRange" = 20,
"step" = 1
})| 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 |
Int |
The default value that the player can revert back to in the configuration menu. |
| Name | Value Type | Description |
|---|---|---|
value |
Int |
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 |
Int |
The minimum value the player is able to set the value to in the configuration menu. |
maxRange |
Int |
The maximum value the player is able to set the value to in the configuration menu. |
step |
Int |
How much is added per step in both the Slider and SpinBox input. |