-
Notifications
You must be signed in to change notification settings - Fork 4
Vector2 Value Type
github-actions[bot] edited this page May 29, 2026
·
5 revisions
_config.set_value("Vector2", "testVector2", {
"name": "Test Vector2",
"tooltip": "A test vector2",
"default": Vector2(10, 10)
"minRange": Vector2(0, 2),
"maxRange": Vector2(50, 40),
"step": 0.5,
"isInt": false
})| 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 |
Vector2 |
The default value that the player can revert back to in the configuration menu. |
| Name | Value Type | Description |
|---|---|---|
value |
Vector2 |
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 |
Vector2 |
The minimum value the player is able to set the value to in the configuration menu. |
maxRange |
Vector2 |
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 the SpinBox input. |
isInt |
Boolean |
This sets if the SpinBox inputs will allow float values to be entered. |
For both the minRange and maxRange properties it individually sets the x/y min/max range based on the given x/y values. So in this example the min range for y would be 2 and the max range would be 40