From 865e7aeca7c3090fee914b9ebde9490ef23d3559 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Sat, 29 Apr 2023 02:49:48 -0400 Subject: Add ArgumentParser Streamlines parsing of commandline arguments Arguments reside in ProjectSettings as `openvic2/data/arguments` as a dictionary The dictionary's key is the option name The dictionary is set with default values This enables project setting overrides for arguments (user specified arguments take priority) Add help commandline option Prepare for removal of GameDebug.gd Add game project description --- game/src/GameStart.tscn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'game/src/GameStart.tscn') diff --git a/game/src/GameStart.tscn b/game/src/GameStart.tscn index 2046bb5..d5f9d45 100644 --- a/game/src/GameStart.tscn +++ b/game/src/GameStart.tscn @@ -1,5 +1,6 @@ -[gd_scene load_steps=6 format=3 uid="uid://1udsn4mggep2"] +[gd_scene load_steps=7 format=3 uid="uid://1udsn4mggep2"] +[ext_resource type="PackedScene" uid="uid://dayjmgc34tqo6" path="res://src/ArgumentParser.tscn" id="1_oe61r"] [ext_resource type="PackedScene" uid="uid://o4u142w4qkln" path="res://src/GameMenu.tscn" id="1_wlojq"] [ext_resource type="Script" path="res://src/SplashContainer.gd" id="2_xmcgv"] [ext_resource type="Texture2D" uid="uid://deef5hufq0j61" path="res://splash_assets/splash_end.png" id="3_qfv12"] @@ -14,6 +15,8 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +[node name="ArgumentParser" parent="." instance=ExtResource("1_oe61r")] + [node name="GameMenu" parent="." instance=ExtResource("1_wlojq")] visible = false layout_mode = 1 -- cgit v1.2.3-56-ga3b1