Add CM1 and CM2 boards, six backdrops and a quit button (0.8.0)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis Defolie
2026-10-12 11:28:19 +02:00
parent 06a5e816be
commit 42dd170a5d
489 changed files with 13016 additions and 12 deletions
+4
View File
@@ -7,6 +7,8 @@ extends Control
@onready var _empty_state_label: Label = %EmptyStateLabel
@onready var _new_profile_button: Button = %NewProfileButton
@onready var _settings_button: Button = %SettingsButton
@onready var _quit_button: Button = %QuitButton
@onready var _quit_dialog: ConfirmationDialog = %QuitDialog
func _ready() -> void:
@@ -15,6 +17,8 @@ func _ready() -> void:
_empty_state_label.text = UIText.get_text("profile_select.empty_state")
_settings_button.text = UIText.get_text("profile_select.settings_button")
_settings_button.pressed.connect(_on_settings_pressed)
_quit_button.text = UIText.get_text("quit.button")
_quit_button.pressed.connect(_quit_dialog.request)
_new_profile_button.pressed.connect(_on_new_profile_pressed)
AudioManager.play_region_music("forest")
+18 -2
View File
@@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3]
[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://scenes/profiles/profile_select.gd" id="1"]
[ext_resource type="PackedScene" path="res://scenes/ui/backdrop.tscn" id="backdrop"]
[ext_resource type="PackedScene" path="res://scenes/ui/quit_dialog.tscn" id="quit"]
[node name="ProfileSelect" type="Control"]
layout_mode = 3
@@ -70,8 +71,23 @@ unique_name_in_owner = true
layout_mode = 2
custom_minimum_size = Vector2(0, 56)
[node name="SettingsButton" type="Button" parent="Margin/Center/Card/VBox"]
[node name="Footer" type="HBoxContainer" parent="Margin/Center/Card/VBox"]
layout_mode = 2
theme_override_constants/separation = 10
[node name="SettingsButton" type="Button" parent="Margin/Center/Card/VBox/Footer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SecondaryButton"
custom_minimum_size = Vector2(0, 52)
[node name="QuitButton" type="Button" parent="Margin/Center/Card/VBox/Footer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SecondaryButton"
custom_minimum_size = Vector2(0, 52)
[node name="QuitDialog" parent="." instance=ExtResource("quit")]
unique_name_in_owner = true
+19
View File
@@ -0,0 +1,19 @@
extends ConfirmationDialog
## Confirmation avant de quitter le jeu. La progression est sauvegardee avant
## la sortie (GameManager.quit_game). Les textes viennent de fr.json.
func _ready() -> void:
title = UIText.get_text("quit.confirm_title")
dialog_text = UIText.get_text("quit.confirm_message")
ok_button_text = UIText.get_text("quit.confirm_yes")
cancel_button_text = UIText.get_text("quit.confirm_no")
confirmed.connect(_on_confirmed)
func request() -> void:
popup_centered()
func _on_confirmed() -> void:
GameManager.quit_game()
+1
View File
@@ -0,0 +1 @@
uid://dli2adhoni2j
+6
View File
@@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scenes/ui/quit_dialog.gd" id="1"]
[node name="QuitDialog" type="ConfirmationDialog"]
script = ExtResource("1")
+4
View File
@@ -19,6 +19,8 @@ extends Control
@onready var _animations_box: HBoxContainer = %AnimationsBox
@onready var _adult_button: Button = %AdultButton
@onready var _back_button: Button = %BackButton
@onready var _quit_button: Button = %QuitButton
@onready var _quit_dialog: ConfirmationDialog = %QuitDialog
func _ready() -> void:
@@ -28,6 +30,7 @@ func _ready() -> void:
_animations_label.text = UIText.get_text("settings.animations_label")
_adult_button.text = UIText.get_text("settings.adult_button")
_back_button.text = UIText.get_text("settings.back_button")
_quit_button.text = UIText.get_text("quit.button")
_music_label.text = UIText.get_text("settings.music_label")
_effects_label.text = UIText.get_text("settings.effects_label")
@@ -45,6 +48,7 @@ func _ready() -> void:
_adult_button.pressed.connect(_on_adult_pressed)
_back_button.pressed.connect(_on_back_pressed)
_quit_button.pressed.connect(_quit_dialog.request)
func _build_text_size_buttons() -> void:
+18 -2
View File
@@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3]
[gd_scene load_steps=4 format=3]
[ext_resource type="Script" path="res://scenes/ui/settings.gd" id="1"]
[ext_resource type="PackedScene" path="res://scenes/ui/backdrop.tscn" id="backdrop"]
[ext_resource type="PackedScene" path="res://scenes/ui/quit_dialog.tscn" id="quit"]
[node name="Settings" type="Control"]
layout_mode = 3
@@ -142,7 +143,22 @@ layout_mode = 2
theme_type_variation = &"SecondaryButton"
custom_minimum_size = Vector2(0, 52)
[node name="BackButton" type="Button" parent="Margin/Center/Card/VBox"]
[node name="Footer" type="HBoxContainer" parent="Margin/Center/Card/VBox"]
layout_mode = 2
theme_override_constants/separation = 10
[node name="BackButton" type="Button" parent="Margin/Center/Card/VBox/Footer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
custom_minimum_size = Vector2(0, 56)
[node name="QuitButton" type="Button" parent="Margin/Center/Card/VBox/Footer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SecondaryButton"
custom_minimum_size = Vector2(0, 56)
[node name="QuitDialog" parent="." instance=ExtResource("quit")]
unique_name_in_owner = true