file select and file creation, menus glued together

This commit is contained in:
Haze Weathers 2023-07-20 18:19:20 -04:00
parent 13708b4046
commit f7496c5e6f
18 changed files with 754 additions and 47 deletions

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=9 format=2]
[ext_resource path="res://menus/file_select_panel.tscn" type="PackedScene" id=1]
[ext_resource path="res://menus/level_select_scholar.tscn" type="PackedScene" id=2]
[ext_resource path="res://graphics/borders/skaborder.png" type="Texture" id=8]
[ext_resource path="res://graphics/hud/file_select_arrow.png" type="Texture" id=9]
[ext_resource path="res://menus/file_select.gd" type="Script" id=10]
@ -28,9 +29,9 @@ shader_param/uv_transform = Transform2D( 1, 1.582, 1, 2, 0, 0 )
[node name="FileSelect" type="Node"]
script = ExtResource( 10 )
next_scene = ExtResource( 2 )
[node name="TextureRect2" type="TextureRect" parent="."]
visible = false
modulate = Color( 0, 0.109804, 1, 1 )
anchor_right = 1.0
anchor_bottom = 1.0
@ -53,48 +54,58 @@ margin_bottom = 192.0
margin_left = 12.0
margin_top = 64.0
margin_right = 84.0
margin_bottom = 128.0
margin_bottom = 136.0
[node name="Panel2" parent="." instance=ExtResource( 1 )]
margin_left = 92.0
margin_top = 64.0
margin_right = 164.0
margin_bottom = 128.0
margin_bottom = 136.0
number = 2
[node name="Panel3" parent="." instance=ExtResource( 1 )]
margin_left = 172.0
margin_top = 64.0
margin_right = 244.0
margin_bottom = 128.0
margin_bottom = 136.0
number = 3
[node name="SelectFile1" type="TextureButton" parent="."]
margin_left = 12.0
margin_top = 130.0
margin_top = 138.0
margin_right = 84.0
margin_bottom = 138.0
texture_normal = ExtResource( 9 )
margin_bottom = 146.0
focus_neighbour_left = NodePath("../SelectFile3")
focus_neighbour_right = NodePath("../SelectFile2")
texture_focused = ExtResource( 9 )
expand = true
stretch_mode = 3
[node name="SelectFile2" type="TextureButton" parent="."]
margin_left = 92.0
margin_top = 130.0
margin_top = 138.0
margin_right = 164.0
margin_bottom = 138.0
texture_normal = ExtResource( 9 )
margin_bottom = 146.0
focus_neighbour_left = NodePath("../SelectFile1")
focus_neighbour_right = NodePath("../SelectFile3")
texture_focused = ExtResource( 9 )
expand = true
stretch_mode = 3
[node name="SelectFile3" type="TextureButton" parent="."]
margin_left = 172.0
margin_top = 130.0
margin_top = 138.0
margin_right = 244.0
margin_bottom = 138.0
texture_normal = ExtResource( 9 )
margin_bottom = 146.0
focus_neighbour_left = NodePath("../SelectFile2")
focus_neighbour_right = NodePath("../SelectFile1")
texture_focused = ExtResource( 9 )
expand = true
stretch_mode = 3
[connection signal="file_loaded" from="Panel" to="." method="_on_file_loaded"]
[connection signal="file_loaded" from="Panel2" to="." method="_on_file_loaded"]
[connection signal="file_loaded" from="Panel3" to="." method="_on_file_loaded"]
[connection signal="pressed" from="SelectFile1" to="Panel" method="select"]
[connection signal="pressed" from="SelectFile2" to="Panel2" method="select"]
[connection signal="pressed" from="SelectFile3" to="Panel3" method="select"]