Update MainMenu controls
This commit is contained in:
parent
ef78920014
commit
968d03053b
|
|
@ -24,9 +24,7 @@ func _ready() -> void:
|
|||
play_menu_music()
|
||||
fade_in_game_infos()
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if !is_transitioning:
|
||||
Start.grab_focus()
|
||||
Start.grab_focus()
|
||||
|
||||
func update_background() -> void:
|
||||
if progression_backgrounds.is_empty():
|
||||
|
|
|
|||
|
|
@ -9,22 +9,13 @@ font_size = 64
|
|||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bqqt6"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ekxnf"]
|
||||
|
||||
[sub_resource type="Texture2D" id="Texture2D_wu84c"]
|
||||
[sub_resource type="Texture2D" id="Texture2D_mkp5f"]
|
||||
resource_local_to_scene = false
|
||||
resource_name = ""
|
||||
script = ExtResource("2_bqqt6")
|
||||
path = "ui_accept"
|
||||
metadata/_custom_type_script = "uid://7hglx6nfu063"
|
||||
|
||||
[sub_resource type="Texture2D" id="Texture2D_bqqt6"]
|
||||
resource_local_to_scene = false
|
||||
resource_name = ""
|
||||
script = ExtResource("2_bqqt6")
|
||||
path = "ui_cancel"
|
||||
metadata/_custom_type_script = "uid://7hglx6nfu063"
|
||||
|
||||
[node name="MainMenu" type="Control" unique_id=1471802333]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
|
@ -105,6 +96,7 @@ theme_override_constants/margin_bottom = 150
|
|||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="GameInfos/Buttons" unique_id=212717997]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 12
|
||||
|
||||
[node name="StartContainer" type="PanelContainer" parent="GameInfos/Buttons/VBoxContainer" unique_id=455366583]
|
||||
layout_mode = 2
|
||||
|
|
@ -116,19 +108,13 @@ layout_mode = 2
|
|||
[node name="Start" type="Button" parent="GameInfos/Buttons/VBoxContainer/StartContainer/HBoxContainer" unique_id=1823965781]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
focus_neighbor_bottom = NodePath("../../../QuitContainer/HBoxContainer/Quit")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_ekxnf")
|
||||
focus_next = NodePath("../../../QuitContainer/HBoxContainer/Quit")
|
||||
theme_override_constants/icon_max_width = 38
|
||||
text = "Appuyer sur"
|
||||
icon = SubResource("Texture2D_mkp5f")
|
||||
flat = true
|
||||
icon_alignment = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="GameInfos/Buttons/VBoxContainer/StartContainer/HBoxContainer" unique_id=544893863]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
texture = SubResource("Texture2D_wu84c")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="QuitContainer" type="PanelContainer" parent="GameInfos/Buttons/VBoxContainer" unique_id=24421836]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_bqqt6")
|
||||
|
|
@ -140,20 +126,11 @@ size_flags_horizontal = 4
|
|||
[node name="Quit" type="Button" parent="GameInfos/Buttons/VBoxContainer/QuitContainer/HBoxContainer" unique_id=247251645]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
focus_neighbor_top = NodePath("../../../StartContainer/HBoxContainer/Start")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_ekxnf")
|
||||
focus_previous = NodePath("../../../StartContainer/HBoxContainer/Start")
|
||||
text = "Quitter le jeu"
|
||||
flat = true
|
||||
icon_alignment = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="GameInfos/Buttons/VBoxContainer/QuitContainer/HBoxContainer" unique_id=1821014740]
|
||||
visible = false
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
texture = SubResource("Texture2D_bqqt6")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="VersionLabel" type="Label" parent="." unique_id=673582892]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue