Fixed settings and updated player view. Fixed many other smaler things

This commit is contained in:
2024-05-19 13:39:18 +02:00
parent 0d0b5280f8
commit d43a1c7df6
15 changed files with 364 additions and 216 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=26 format=3 uid="uid://xwq863o6uvsu"]
[gd_scene load_steps=28 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"]
@@ -39,6 +39,12 @@ unicode = 63743
[sub_resource type="Shortcut" id="Shortcut_jafqj"]
events = [SubResource("InputEventKey_03bm3")]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qk7sj"]
bg_color = Color(0.180392, 0.180392, 0.180392, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_k1ygi"]
bg_color = Color(0.180392, 0.180392, 0.180392, 1)
[sub_resource type="InputEventKey" id="InputEventKey_06rl4"]
device = -1
alt_pressed = true
@@ -80,20 +86,20 @@ offset_bottom = 56.0
[node name="Title" type="Label" parent="."]
layout_mode = 2
offset_left = 32.0
offset_top = 8.0
offset_right = 337.0
offset_bottom = 46.0
offset_left = 64.0
offset_top = 12.0
offset_right = 369.0
offset_bottom = 50.0
size_flags_horizontal = 0
text = "Music Player Randomizer"
label_settings = SubResource("LabelSettings_ychxr")
[node name="Open" type="Button" parent="."]
layout_mode = 2
offset_left = 65.0
offset_top = 877.0
offset_right = 115.0
offset_bottom = 908.0
offset_left = 1296.0
offset_top = 66.0
offset_right = 1346.0
offset_bottom = 97.0
text = "Open"
[node name="FileDialog" type="FileDialog" parent="."]
@@ -107,10 +113,10 @@ show_hidden_files = true
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 0
offset_left = 1204.0
offset_top = 95.0
offset_right = 1845.0
offset_bottom = 465.0
offset_left = 1216.0
offset_top = 128.0
offset_right = 1857.0
offset_bottom = 512.0
horizontal_scroll_mode = 0
vertical_scroll_mode = 3
script = ExtResource("2_gxtxm")
@@ -122,18 +128,20 @@ size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 0
offset_left = 52.0
offset_top = 81.0
offset_right = 977.0
offset_bottom = 368.0
offset_left = 64.0
offset_top = 64.0
offset_right = 1152.0
offset_bottom = 384.0
[node name="GameLabel" type="Label" parent="VBoxContainer"]
custom_minimum_size = Vector2(1, 1)
layout_mode = 2
label_settings = SubResource("LabelSettings_qspbu")
horizontal_alignment = 1
autowrap_mode = 2
[node name="SongLabel" type="Label" parent="VBoxContainer"]
custom_minimum_size = Vector2(1, 1)
layout_mode = 2
label_settings = SubResource("LabelSettings_3m52w")
horizontal_alignment = 1
@@ -144,10 +152,10 @@ visible = false
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 0
offset_left = 69.0
offset_top = 924.0
offset_right = 1057.0
offset_bottom = 964.0
offset_left = 65.0
offset_top = 1003.0
offset_right = 1856.0
offset_bottom = 1043.0
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer"]
layout_mode = 2
@@ -183,24 +191,29 @@ bus = &"music"
[node name="Players" type="PanelContainer" parent="."]
layout_mode = 0
offset_left = 1283.0
offset_top = 642.0
offset_right = 1820.0
offset_bottom = 1003.0
offset_left = 1216.0
offset_top = 576.0
offset_right = 1857.0
offset_bottom = 977.0
[node name="VBoxContainer" type="VBoxContainer" parent="Players"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Players/VBoxContainer"]
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
[node name="Label" type="Label" parent="Players/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Players"
horizontal_alignment = 1
vertical_alignment = 1
[node name="AddPlayersButton" type="TextureButton" parent="Players/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
size_flags_horizontal = 8
shortcut = SubResource("Shortcut_jafqj")
@@ -208,84 +221,88 @@ texture_normal = ExtResource("4_op458")
[node name="AddPlayerContainer" type="HBoxContainer" parent="Players/VBoxContainer"]
visible = false
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
[node name="Panel" type="Panel" parent="Players/VBoxContainer/AddPlayerContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
theme_override_styles/panel = SubResource("StyleBoxFlat_qk7sj")
[node name="PlayerNameField" type="TextEdit" parent="Players/VBoxContainer/AddPlayerContainer"]
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Player name"
script = ExtResource("7_qsdfy")
[node name="AddPlayerButton" type="Button" parent="Players/VBoxContainer/AddPlayerContainer"]
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
text = "Add"
[node name="Panel2" type="Panel" parent="Players/VBoxContainer/AddPlayerContainer"]
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
theme_override_styles/panel = SubResource("StyleBoxFlat_k1ygi")
[node name="ResetPlaylistButton" type="Button" parent="."]
layout_mode = 0
offset_left = 125.0
offset_top = 1017.0
offset_right = 236.0
offset_bottom = 1048.0
offset_left = 1359.0
offset_top = 66.0
offset_right = 1470.0
offset_bottom = 97.0
text = "Reset playlist"
[node name="ResetPointsButton" type="Button" parent="."]
layout_mode = 0
offset_left = 247.0
offset_top = 1018.0
offset_right = 358.0
offset_bottom = 1049.0
offset_left = 1487.0
offset_top = 66.0
offset_right = 1598.0
offset_bottom = 97.0
text = "Reset points"
[node name="SyncButton" type="Button" parent="."]
layout_mode = 0
offset_left = 370.0
offset_top = 1016.0
offset_right = 481.0
offset_bottom = 1047.0
offset_left = 1615.0
offset_top = 66.0
offset_right = 1726.0
offset_bottom = 97.0
text = "Sync games"
[node name="SoundTestButton" type="Button" parent="."]
layout_mode = 0
offset_left = 491.0
offset_top = 1016.0
offset_right = 602.0
offset_bottom = 1047.0
offset_left = 1743.0
offset_top = 66.0
offset_right = 1854.0
offset_bottom = 97.0
text = "Sound test"
[node name="ShowAnswerButton" type="Button" parent="."]
layout_mode = 0
offset_left = 611.0
offset_top = 1016.0
offset_right = 722.0
offset_bottom = 1047.0
offset_left = 65.0
offset_top = 944.0
offset_right = 176.0
offset_bottom = 975.0
shortcut = SubResource("Shortcut_a7fvb")
text = "Show answer"
[node name="NextButton" type="Button" parent="."]
layout_mode = 0
offset_left = 729.0
offset_top = 1017.0
offset_right = 904.0
offset_bottom = 1048.0
offset_left = 193.0
offset_top = 944.0
offset_right = 368.0
offset_bottom = 975.0
shortcut = SubResource("Shortcut_d6fml")
text = "Randomize new track"
[node name="MusicListPanel" type="PanelContainer" parent="."]
layout_mode = 0
offset_left = 136.0
offset_top = 388.0
offset_right = 1009.0
offset_bottom = 845.0
offset_left = 64.0
offset_top = 384.0
offset_right = 1152.0
offset_bottom = 896.0
theme = ExtResource("7_wxbv6")
[node name="ScrollContainer" type="ScrollContainer" parent="MusicListPanel"]
@@ -298,34 +315,34 @@ layout_mode = 2
[node name="SearchButton" type="Button" parent="."]
layout_mode = 0
offset_left = 1528.0
offset_left = 1488.0
offset_top = 8.0
offset_right = 1598.0
offset_right = 1558.0
offset_bottom = 48.0
shortcut = SubResource("Shortcut_fbju4")
text = "Search"
[node name="SettingsButton" type="Button" parent="."]
layout_mode = 0
offset_left = 1624.0
offset_left = 1584.0
offset_top = 8.0
offset_right = 1694.0
offset_right = 1654.0
offset_bottom = 48.0
text = "Settings"
[node name="StatisticsButton" type="Button" parent="."]
layout_mode = 0
offset_left = 1720.0
offset_left = 1680.0
offset_top = 8.0
offset_right = 1798.0
offset_right = 1758.0
offset_bottom = 48.0
text = "Statistics"
[node name="AboutButton" type="Button" parent="."]
layout_mode = 0
offset_left = 1824.0
offset_left = 1784.0
offset_top = 8.0
offset_right = 1894.0
offset_right = 1854.0
offset_bottom = 48.0
text = "About"
@@ -379,7 +396,7 @@ size = Vector2i(848, 272)
offset_left = 4.0
offset_top = 4.0
offset_right = 844.0
offset_bottom = 273.0
offset_bottom = 706.0
[node name="Label" type="Label" parent="AboutPopupPanel/VBoxContainer"]
layout_mode = 2
@@ -400,6 +417,7 @@ layout_mode = 2
size_flags_vertical = 3
[node name="NewLabel" type="Label" parent="AboutPopupPanel/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(1, 1)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
@@ -407,9 +425,11 @@ text = "0.7-Beta: Can now hop between songs"
autowrap_mode = 2
[node name="ShortcutsLabel" type="Label" parent="AboutPopupPanel/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(1, 1)
layout_mode = 2
[node name="CommingLabel" type="Label" parent="AboutPopupPanel/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(1, 1)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
@@ -431,7 +451,7 @@ size = Vector2i(268, 233)
offset_left = 4.0
offset_top = 4.0
offset_right = 264.0
offset_bottom = 252.0
offset_bottom = 284.0
[node name="WinnerPopupPanel" type="PopupPanel" parent="."]
initial_position = 2