Implement production vertical slice foundation
This commit is contained in:
1 parent
9d4a89f355
commit
a18e82eb44
104 files changed
+10595
-268
No files matched your search
@@ -0,0 +1,24 @@
|
||||
class_name MainMenuScreen
|
||||
extends Control
|
||||
|
||||
signal new_game_requested
|
||||
signal quit_requested
|
||||
|
||||
@onready var _continue_button: Button = %ContinueButton
|
||||
@onready var _new_game_button: Button = %NewGameButton
|
||||
@onready var _quit_button: Button = %QuitButton
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
_continue_button.disabled = true
|
||||
_continue_button.tooltip_text = "Aucune sauvegarde disponible"
|
||||
_new_game_button.pressed.connect(_on_new_game_pressed)
|
||||
_quit_button.pressed.connect(_on_quit_pressed)
|
||||
|
||||
|
||||
func _on_new_game_pressed() -> void:
|
||||
new_game_requested.emit()
|
||||
|
||||
|
||||
func _on_quit_pressed() -> void:
|
||||
quit_requested.emit()
|
||||
@@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://game/presentation/main_menu/main_menu_screen.gd" id="1_menu"]
|
||||
|
||||
[node name="MainMenuScreen" type="Control"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_menu")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.0078, 0.0353, 0.051, 1)
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Center" type="CenterContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Menu" type="VBoxContainer" parent="Center"]
|
||||
custom_minimum_size = Vector2(460, 0)
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 14
|
||||
|
||||
[node name="Title" type="Label" parent="Center/Menu"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.4549, 0.8902, 0.898, 1)
|
||||
theme_override_font_sizes/font_size = 46
|
||||
text = "RANSOM'S WAKE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Subtitle" type="Label" parent="Center/Menu"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.6588, 0.7333, 0.749, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "FONDATION DE LA VERTICALE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Spacer" type="Control" parent="Center/Menu"]
|
||||
custom_minimum_size = Vector2(0, 24)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="Center/Menu"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 52)
|
||||
layout_mode = 2
|
||||
text = "CONTINUER · AUCUNE SAUVEGARDE"
|
||||
|
||||
[node name="NewGameButton" type="Button" parent="Center/Menu"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 52)
|
||||
layout_mode = 2
|
||||
text = "NOUVELLE PARTIE"
|
||||
|
||||
[node name="SettingsButton" type="Button" parent="Center/Menu"]
|
||||
custom_minimum_size = Vector2(0, 52)
|
||||
layout_mode = 2
|
||||
disabled = true
|
||||
tooltip_text = "Écran de réglages prévu dans une tranche ultérieure"
|
||||
text = "RÉGLAGES · À VENIR"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="Center/Menu"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 52)
|
||||
layout_mode = 2
|
||||
text = "QUITTER"
|
||||
|
||||
[node name="TechnicalNote" type="Label" parent="Center/Menu"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.3882, 0.4824, 0.5059, 1)
|
||||
text = "Build technique · Forward+ · simulation 60 Hz"
|
||||
horizontal_alignment = 1
|
||||
Reference in new issue
Block a user