Added shortcuts. Added dialog for winner. Started cleaning code.

This commit is contained in:
2023-09-11 21:20:48 +02:00
parent 724455b232
commit c5e6366760
5 changed files with 136 additions and 78 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=19 format=3 uid="uid://xwq863o6uvsu"]
[gd_scene load_steps=26 format=3 uid="uid://xwq863o6uvsu"]
[ext_resource type="Script" path="res://MainWindow.gd" id="1_eu0t5"]
[ext_resource type="PackedScene" uid="uid://b16on0oscg1bv" path="res://CharacterSelect.tscn" id="2_76kf4"]
@@ -21,6 +21,15 @@ font_size = 50
[sub_resource type="LabelSettings" id="LabelSettings_3m52w"]
font_size = 35
[sub_resource type="InputEventKey" id="InputEventKey_n2hsq"]
device = -1
alt_pressed = true
keycode = 88
unicode = 8776
[sub_resource type="Shortcut" id="Shortcut_6mgjo"]
events = [SubResource("InputEventKey_n2hsq")]
[sub_resource type="InputEventKey" id="InputEventKey_03bm3"]
device = -1
alt_pressed = true
@@ -30,6 +39,24 @@ unicode = 63743
[sub_resource type="Shortcut" id="Shortcut_jafqj"]
events = [SubResource("InputEventKey_03bm3")]
[sub_resource type="InputEventKey" id="InputEventKey_06rl4"]
device = -1
alt_pressed = true
keycode = 86
unicode = 8249
[sub_resource type="Shortcut" id="Shortcut_a7fvb"]
events = [SubResource("InputEventKey_06rl4")]
[sub_resource type="InputEventKey" id="InputEventKey_7dnqw"]
device = -1
alt_pressed = true
keycode = 67
unicode = 231
[sub_resource type="Shortcut" id="Shortcut_d6fml"]
events = [SubResource("InputEventKey_7dnqw")]
[sub_resource type="InputEventKey" id="InputEventKey_ujjlu"]
device = -1
alt_pressed = true
@@ -38,6 +65,9 @@ keycode = 83
[sub_resource type="Shortcut" id="Shortcut_fbju4"]
events = [SubResource("InputEventKey_ujjlu")]
[sub_resource type="LabelSettings" id="LabelSettings_hr75l"]
font_size = 35
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 0
@@ -125,6 +155,7 @@ size_flags_vertical = 4
[node name="PlayButton" type="Button" parent="PanelContainer/HBoxContainer"]
layout_mode = 2
shortcut = SubResource("Shortcut_6mgjo")
text = "Play"
[node name="RestartButton" type="Button" parent="PanelContainer/HBoxContainer"]
@@ -237,6 +268,7 @@ offset_left = 611.0
offset_top = 1016.0
offset_right = 722.0
offset_bottom = 1047.0
shortcut = SubResource("Shortcut_a7fvb")
text = "Show answer"
[node name="NextButton" type="Button" parent="."]
@@ -245,6 +277,7 @@ offset_left = 729.0
offset_top = 1017.0
offset_right = 904.0
offset_bottom = 1048.0
shortcut = SubResource("Shortcut_d6fml")
text = "Randomize new track"
[node name="MusicListPanel" type="PanelContainer" parent="."]
@@ -346,7 +379,7 @@ size = Vector2i(848, 272)
offset_left = 4.0
offset_top = 4.0
offset_right = 844.0
offset_bottom = 268.0
offset_bottom = 273.0
[node name="Label" type="Label" parent="AboutPopupPanel/VBoxContainer"]
layout_mode = 2
@@ -373,6 +406,9 @@ size_flags_vertical = 0
text = "0.7-Beta: Can now hop between songs"
autowrap_mode = 2
[node name="ShortcutsLabel" type="Label" parent="AboutPopupPanel/VBoxContainer/HBoxContainer"]
layout_mode = 2
[node name="CommingLabel" type="Label" parent="AboutPopupPanel/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
@@ -391,10 +427,23 @@ autowrap_mode = 2
initial_position = 2
size = Vector2i(268, 233)
[node name="VBoxContainer" parent="SettingsPopupPanel" instance=ExtResource("11_k62u5")]
[node name="SettingsWindow" parent="SettingsPopupPanel" instance=ExtResource("11_k62u5")]
offset_left = 4.0
offset_top = 4.0
offset_right = -4.0
offset_bottom = 19.0
offset_right = 264.0
offset_bottom = 252.0
[node name="WinnerPopupPanel" type="PopupPanel" parent="."]
initial_position = 2
size = Vector2i(350, 100)
[node name="WinnerLabel" type="Label" parent="WinnerPopupPanel"]
offset_left = 4.0
offset_top = 4.0
offset_right = 346.0
offset_bottom = 96.0
text = "Sansan won!!"
label_settings = SubResource("LabelSettings_hr75l")
horizontal_alignment = 1
[connection signal="dir_selected" from="FileDialog" to="." method="_on_file_dialog_dir_selected"]