[gd_scene load_steps=3 format=3 uid="uid://cnytyqfx2oecx"] [ext_resource type="Script" path="res://Scripts/settings_menu.gd" id="1_5guik"] [sub_resource type="LabelSettings" id="LabelSettings_68hly"] font_size = 20 [node name="SettingsMenu" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_5guik") [node name="FileDialog" type="FileDialog" parent="."] title = "Open a File" initial_position = 2 size = Vector2i(392, 250) ok_button_text = "Open" dialog_hide_on_ok = true file_mode = 0 access = 2 [node name="MarginContainer" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 12 theme_override_constants/margin_top = 12 theme_override_constants/margin_right = 12 theme_override_constants/margin_bottom = 12 [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] layout_mode = 2 theme_override_constants/separation = -48 [node name="Label" type="Label" parent="MarginContainer/VBoxContainer"] layout_mode = 2 text = "Options" horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 6 [node name="BacgroundMusicLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "Background music: " label_settings = SubResource("LabelSettings_68hly") [node name="BacgroundMusicLineEdit" type="LineEdit" parent="MarginContainer/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 [node name="SelectMusicButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"] layout_mode = 2 text = "Open file" [node name="BackButton" type="Button" parent="MarginContainer/VBoxContainer"] custom_minimum_size = Vector2(80, 40) layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 8 text = "Back" [connection signal="file_selected" from="FileDialog" to="." method="_on_file_dialog_file_selected"] [connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/SelectMusicButton" to="." method="_on_select_music_button_pressed"] [connection signal="pressed" from="MarginContainer/VBoxContainer/BackButton" to="." method="_on_back_button_pressed"]