Added volume bar and song list and refactored character select
This commit is contained in:
150
MainWindow.tscn
150
MainWindow.tscn
@@ -1,9 +1,17 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://xwq863o6uvsu"]
|
||||
[gd_scene load_steps=8 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"]
|
||||
[ext_resource type="PackedScene" uid="uid://w400rnew7453" path="res://volume_slider.tscn" id="3_rxhba"]
|
||||
[ext_resource type="AudioStream" uid="uid://n2g8jddr85h2" path="res://01. Opening.mp3" id="4_5kvsq"]
|
||||
[ext_resource type="Texture2D" uid="uid://o5go6smk7hm1" path="res://person_add_alt_1-black-36dp.svg" id="4_op458"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_qspbu"]
|
||||
font_size = 70
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_3m52w"]
|
||||
font_size = 50
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
@@ -11,10 +19,10 @@ script = ExtResource("1_eu0t5")
|
||||
|
||||
[node name="Open" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 106.0
|
||||
offset_top = 438.0
|
||||
offset_right = 156.0
|
||||
offset_bottom = 469.0
|
||||
offset_left = 65.0
|
||||
offset_top = 877.0
|
||||
offset_right = 115.0
|
||||
offset_bottom = 908.0
|
||||
text = "Open"
|
||||
|
||||
[node name="FileDialog" type="FileDialog" parent="."]
|
||||
@@ -28,10 +36,10 @@ show_hidden_files = true
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 690.0
|
||||
offset_top = 25.0
|
||||
offset_right = 1060.0
|
||||
offset_bottom = 314.0
|
||||
offset_left = 1204.0
|
||||
offset_top = 17.0
|
||||
offset_right = 1771.0
|
||||
offset_bottom = 465.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
|
||||
layout_mode = 2
|
||||
@@ -45,35 +53,36 @@ text = "Test
|
||||
layout_mode = 2
|
||||
text = "Test2"
|
||||
|
||||
[node name="GameLabel" type="Label" parent="."]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 143.0
|
||||
offset_top = 141.0
|
||||
offset_right = 557.0
|
||||
offset_bottom = 253.0
|
||||
offset_left = 52.0
|
||||
offset_top = 64.0
|
||||
offset_right = 977.0
|
||||
offset_bottom = 368.0
|
||||
|
||||
[node name="ScrollContainer2" type="ScrollContainer" parent="."]
|
||||
visible = false
|
||||
clip_contents = false
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 0
|
||||
offset_left = 194.0
|
||||
offset_top = 152.0
|
||||
offset_right = 670.0
|
||||
offset_bottom = 375.0
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="ScrollContainer2"]
|
||||
[node name="GameLabel" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
columns = 3
|
||||
text = "????????"
|
||||
label_settings = SubResource("LabelSettings_qspbu")
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="SongLabel" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "??????"
|
||||
label_settings = SubResource("LabelSettings_3m52w")
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="CharacterSelect" parent="." instance=ExtResource("2_76kf4")]
|
||||
visible = false
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 110.0
|
||||
offset_top = 485.0
|
||||
offset_right = 758.0
|
||||
offset_bottom = 525.0
|
||||
offset_left = 69.0
|
||||
offset_top = 924.0
|
||||
offset_right = 955.0
|
||||
offset_bottom = 964.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
@@ -101,15 +110,23 @@ scrollable = false
|
||||
layout_mode = 2
|
||||
text = "1:00 / 3:00"
|
||||
|
||||
[node name="VolumeSlider" parent="." instance=ExtResource("3_rxhba")]
|
||||
layout_mode = 0
|
||||
offset_left = 983.0
|
||||
offset_top = 916.0
|
||||
offset_right = 1214.0
|
||||
offset_bottom = 955.0
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("4_5kvsq")
|
||||
bus = &"music"
|
||||
|
||||
[node name="Players" type="PanelContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 837.0
|
||||
offset_top = 264.0
|
||||
offset_right = 1102.0
|
||||
offset_bottom = 453.0
|
||||
offset_left = 1283.0
|
||||
offset_top = 642.0
|
||||
offset_right = 1820.0
|
||||
offset_bottom = 1003.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Players"]
|
||||
layout_mode = 2
|
||||
@@ -128,4 +145,65 @@ layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
texture_normal = ExtResource("4_op458")
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 125.0
|
||||
offset_top = 1017.0
|
||||
offset_right = 236.0
|
||||
offset_bottom = 1048.0
|
||||
text = "Reset playlist"
|
||||
|
||||
[node name="Button2" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 247.0
|
||||
offset_top = 1018.0
|
||||
offset_right = 358.0
|
||||
offset_bottom = 1049.0
|
||||
text = "Reset points"
|
||||
|
||||
[node name="Button3" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 370.0
|
||||
offset_top = 1016.0
|
||||
offset_right = 481.0
|
||||
offset_bottom = 1047.0
|
||||
text = "Sync games"
|
||||
|
||||
[node name="Button4" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 491.0
|
||||
offset_top = 1016.0
|
||||
offset_right = 602.0
|
||||
offset_bottom = 1047.0
|
||||
text = "Sound test"
|
||||
|
||||
[node name="Button5" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 611.0
|
||||
offset_top = 1016.0
|
||||
offset_right = 722.0
|
||||
offset_bottom = 1047.0
|
||||
text = "Show answer"
|
||||
|
||||
[node name="Button6" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 729.0
|
||||
offset_top = 1017.0
|
||||
offset_right = 904.0
|
||||
offset_bottom = 1048.0
|
||||
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
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="MusicListPanel"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MusicList" type="VBoxContainer" parent="MusicListPanel/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="dir_selected" from="FileDialog" to="." method="_on_file_dialog_dir_selected"]
|
||||
|
||||
Reference in New Issue
Block a user