aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Autoload/Argument/ArgumentOption.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-01-15 01:24:17 +0100
committer GitHub <noreply@github.com>2024-01-15 01:24:17 +0100
commit92267a046506077418823a16ac8748579cf7905c (patch)
treeac4893e2a7cc33a5f60d910717da51962a9ceef7 /game/src/Game/Autoload/Argument/ArgumentOption.gd
parentdd008b3c0aa27be0cbe9a0ed5a9811c76f9cb13a (diff)
parent03ecd41a38acff5588f01568bdf5d61067a266ce (diff)
Merge pull request #192 from OpenVicProject/mod-paths
Added mod command line option
Diffstat (limited to 'game/src/Game/Autoload/Argument/ArgumentOption.gd')
-rw-r--r--game/src/Game/Autoload/Argument/ArgumentOption.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/src/Game/Autoload/Argument/ArgumentOption.gd b/game/src/Game/Autoload/Argument/ArgumentOption.gd
index a9b7000..9c0e731 100644
--- a/game/src/Game/Autoload/Argument/ArgumentOption.gd
+++ b/game/src/Game/Autoload/Argument/ArgumentOption.gd
@@ -14,6 +14,7 @@ extends Resource
TYPE_FLOAT: default_value = 0.0
TYPE_STRING: default_value = ""
TYPE_STRING_NAME: default_value = &""
+ TYPE_PACKED_STRING_ARRAY: default_value = PackedStringArray()
TYPE_COLOR: default_value = Color()
_: default_value = null
notify_property_list_changed()
@@ -38,6 +39,7 @@ func get_type_string() -> StringName:
TYPE_INT: return "integer"
TYPE_FLOAT: return "float"
TYPE_STRING, TYPE_STRING_NAME: return "string"
+ TYPE_PACKED_STRING_ARRAY: return "string array"
TYPE_COLOR: return "color"
return "<invalid type>"
@@ -52,7 +54,7 @@ func _set(property : StringName, value : Variant) -> bool:
return false
func _get_property_list() -> Array[Dictionary]:
- var properties := []
+ var properties := [] as Array[Dictionary]
properties.append({
"name": "default_value",