mirror of
https://github.com/deunix-educ/aventuriers-des-mots.git
synced 2026-10-13 02:11:58 +02:00
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:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user