Added media player and character select and started some other stuff

This commit is contained in:
2023-08-27 21:34:02 +02:00
parent aad5f3d421
commit a48fc04e3b
88 changed files with 1029 additions and 2798 deletions

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://db7eqdsumxmo1"]
[gd_scene load_steps=4 format=3 uid="uid://xwq863o6uvsu"]
[ext_resource type="PackedScene" uid="uid://cvixk5bkj7lgb" path="res://Player.tscn" id="1_dm1l5"]
[ext_resource type="Script" path="res://MainWindow.gd" id="1_eu0t5"]
[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"]
[node name="Control" type="Control"]
layout_mode = 3
@@ -17,34 +18,20 @@ offset_bottom = 469.0
text = "Open"
[node name="FileDialog" type="FileDialog" parent="."]
initial_position = 2
title = "Open a Directory"
initial_position = 2
size = Vector2i(616, 400)
ok_button_text = "Select Current Folder"
file_mode = 2
access = 2
show_hidden_files = true
[node name="Player" parent="." instance=ExtResource("1_dm1l5")]
layout_mode = 0
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 98.0
offset_top = 550.0
offset_right = 748.0
offset_bottom = 581.0
grow_horizontal = 1
grow_vertical = 1
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 0
offset_left = 703.0
offset_top = 42.0
offset_right = 1073.0
offset_bottom = 331.0
offset_left = 690.0
offset_top = 25.0
offset_right = 1060.0
offset_bottom = 314.0
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
layout_mode = 2
@@ -65,4 +52,80 @@ offset_top = 141.0
offset_right = 557.0
offset_bottom = 253.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"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
columns = 3
[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
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer"]
layout_mode = 2
size_flags_vertical = 4
[node name="PlayButton" type="Button" parent="PanelContainer/HBoxContainer"]
layout_mode = 2
text = "Play"
[node name="PauseButton" type="Button" parent="PanelContainer/HBoxContainer"]
layout_mode = 2
text = "Pause"
[node name="StopButton" type="Button" parent="PanelContainer/HBoxContainer"]
layout_mode = 2
text = "Stop"
[node name="HSlider" type="HSlider" parent="PanelContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
scrollable = false
[node name="Label" type="Label" parent="PanelContainer/HBoxContainer"]
layout_mode = 2
text = "1:00 / 3:00"
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_5kvsq")
[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
[node name="VBoxContainer" type="VBoxContainer" parent="Players"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Players/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="Players/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "Players"
horizontal_alignment = 1
[node name="AddPlayer" type="TextureButton" parent="Players/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 8
texture_normal = ExtResource("4_op458")
[connection signal="dir_selected" from="FileDialog" to="." method="_on_file_dialog_dir_selected"]