Add settings screen and adult space with progress report and save export/restore (0.4.0)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis Defolie
2026-10-11 22:49:01 +02:00
parent 97a065879c
commit dbf513e686
45 changed files with 1390 additions and 14 deletions
+8
View File
@@ -19,6 +19,7 @@ var _viewed_level := "CE1"
@onready var _collection_button: Button = %CollectionButton
@onready var _profile_button: Button = %ProfileButton
@onready var _guide: Control = %Guide
@onready var _settings_button: Button = %SettingsButton
func _ready() -> void:
@@ -29,6 +30,8 @@ func _ready() -> void:
_collection_button.pressed.connect(_on_collection_pressed)
_profile_button.text = UIText.get_text("world_map.change_profile_button")
_profile_button.pressed.connect(_on_change_profile_pressed)
_settings_button.text = UIText.get_text("world_map.settings_button")
_settings_button.pressed.connect(_on_settings_pressed)
_map_area.resized.connect(_layout_markers)
_guide.say(UIText.get_text("world_map.guide_hint"))
_refresh()
@@ -129,3 +132,8 @@ func _on_level_toggle_pressed() -> void:
func _on_mission_pressed(mission_id: String) -> void:
GameManager.pending_mission_id = mission_id
GameManager.goto(GameManager.SCENE_MISSION_INTRO)
func _on_settings_pressed() -> void:
GameManager.settings_return_scene = GameManager.SCENE_WORLD_MAP
GameManager.goto(GameManager.SCENE_SETTINGS)
+9
View File
@@ -51,6 +51,8 @@ custom_minimum_size = Vector2(0, 52)
[node name="TitleLabel" type="Label" parent="Margin/VBox/TopBar"]
unique_name_in_owner = true
text_overrun_behavior = 3
clip_text = true
theme_type_variation = &"HeaderTitle"
layout_mode = 2
size_flags_horizontal = 3
@@ -100,3 +102,10 @@ theme_type_variation = &"SecondaryButton"
layout_mode = 2
size_flags_vertical = 4
custom_minimum_size = Vector2(0, 52)
[node name="SettingsButton" type="Button" parent="Margin/VBox/BottomBar"]
unique_name_in_owner = true
theme_type_variation = &"SecondaryButton"
layout_mode = 2
size_flags_vertical = 4
custom_minimum_size = Vector2(0, 52)