aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-05-16 20:27:12 +0200
committer GitHub <noreply@github.com>2023-05-16 20:27:12 +0200
commit7d97e2ba57d96783cc9489ffbf9c876c43a4a8b1 (patch)
treecb5d8653351150b0882b529680c9c6de5e4dae2b
parent5b207ea57ec278daf5b8b44fdf72757fda1a7bd0 (diff)
parent16025d1aca46e19330acb7e6dcf76bf20ec97e03 (diff)
Merge pull request #112 from Spartan322/update/save-load-req-documentation
Fix incomplete #110 requirement documentation
-rw-r--r--game/src/LobbyMenu/LobbyMenu.gd3
-rw-r--r--game/src/LobbyMenu/LobbyMenu.tscn1
-rw-r--r--game/src/LobbyMenu/LobbyPanelButton.tscn1
-rw-r--r--game/src/SaveLoadMenu/SaveLoadMenu.gd6
-rw-r--r--game/src/SaveLoadMenu/SavePanelButton.tscn2
5 files changed, 11 insertions, 2 deletions
diff --git a/game/src/LobbyMenu/LobbyMenu.gd b/game/src/LobbyMenu/LobbyMenu.gd
index 3cd3b40..db4f2ce 100644
--- a/game/src/LobbyMenu/LobbyMenu.gd
+++ b/game/src/LobbyMenu/LobbyMenu.gd
@@ -41,6 +41,9 @@ func _build_date_list() -> void:
game_select_start_date.add_child(start_date)
var _id_to_tag : Array[StringName] = []
+
+# Requirements
+# * FS-8
func _build_save_list() -> void:
game_select_save_tab.add_tab("GAMELOBBY_SELECT_ALL")
for save_name in SaveManager._save_dictionary:
diff --git a/game/src/LobbyMenu/LobbyMenu.tscn b/game/src/LobbyMenu/LobbyMenu.tscn
index 63a66d8..3b5796e 100644
--- a/game/src/LobbyMenu/LobbyMenu.tscn
+++ b/game/src/LobbyMenu/LobbyMenu.tscn
@@ -30,6 +30,7 @@ size_flags_horizontal = 3
layout_mode = 2
[node name="GameSelectScroll" type="ScrollContainer" parent="GameSelectPanel/VBoxContainer"]
+editor_description = "UI-39"
layout_mode = 2
size_flags_vertical = 3
horizontal_scroll_mode = 0
diff --git a/game/src/LobbyMenu/LobbyPanelButton.tscn b/game/src/LobbyMenu/LobbyPanelButton.tscn
index 2ba6c99..f409a2e 100644
--- a/game/src/LobbyMenu/LobbyPanelButton.tscn
+++ b/game/src/LobbyMenu/LobbyPanelButton.tscn
@@ -3,6 +3,7 @@
[ext_resource type="Script" path="res://src/LobbyMenu/LobbyPanelButton.gd" id="1_327u2"]
[node name="LobbyPanelButton" type="Container" node_paths=PackedStringArray("background_button", "name_label")]
+editor_description = "UI-41"
offset_right = 113.0
offset_bottom = 48.0
script = ExtResource("1_327u2")
diff --git a/game/src/SaveLoadMenu/SaveLoadMenu.gd b/game/src/SaveLoadMenu/SaveLoadMenu.gd
index abf1f8c..bff0bb5 100644
--- a/game/src/SaveLoadMenu/SaveLoadMenu.gd
+++ b/game/src/SaveLoadMenu/SaveLoadMenu.gd
@@ -24,6 +24,8 @@ func filter_for_tag(tag : StringName) -> void:
else:
child.hide()
+# Requirements
+# * UIFUN-78
func show_for_load() -> void:
_label.text = "SAVELOADMENU_LOAD_TITLE"
_save_load_button.text = "SAVELOADMENU_LOAD_BUTTON"
@@ -31,6 +33,8 @@ func show_for_load() -> void:
is_save_menu = false
show()
+# Requirements
+# * UIFUN-77
func show_for_save() -> void:
_label.text = "SAVELOADMENU_SAVE_TITLE"
_save_load_button.text = "SAVELOADMENU_SAVE_BUTTON"
@@ -72,7 +76,7 @@ func _on_delete_dialog_confirmed() -> void:
_requested_node_to_delete.queue_free()
# REQUIREMENTS:
-# * UIFUNC-83
+# * UIFUN-83
func _on_overwrite_dialog_confirmed() -> void:
SaveManager.add_or_replace_save(SaveManager.make_new_save(_submitted_text))
_on_close_button_pressed()
diff --git a/game/src/SaveLoadMenu/SavePanelButton.tscn b/game/src/SaveLoadMenu/SavePanelButton.tscn
index 3a71a57..d2d0a41 100644
--- a/game/src/SaveLoadMenu/SavePanelButton.tscn
+++ b/game/src/SaveLoadMenu/SavePanelButton.tscn
@@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://src/SaveLoadMenu/SavePanelButton.gd" id="1_rtuo6"]
[node name="SavePanelButton" type="Container" node_paths=PackedStringArray("country_flag", "date_label", "delete_button", "background_button", "name_label")]
-editor_description = "UI-84, UI-91"
+editor_description = "SS-18, UI-40, UI-84, UI-86, UI-91, UI-93"
offset_right = 276.0
offset_bottom = 48.0
script = ExtResource("1_rtuo6")