load scene by state
This commit is contained in:
parent
810a3aa9b5
commit
d1992c62d9
5 changed files with 35 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://y5v0kmse8n10"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://y5v0kmse8n10"]
|
||||
|
||||
[ext_resource type="Script" path="res://main.gd" id="1_2tuu3"]
|
||||
[ext_resource type="PackedScene" uid="uid://b71wpb1vts86r" path="res://unloaded.tscn" id="2_diny5"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
|
|
@ -24,15 +25,9 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"]
|
||||
[node name="Unloaded" parent="MarginContainer" instance=ExtResource("2_diny5")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Button" type="Button" parent="MarginContainer/CenterContainer"]
|
||||
custom_minimum_size = Vector2(200, 200)
|
||||
layout_mode = 2
|
||||
text = "Load database"
|
||||
|
||||
[node name="FileDialog" type="FileDialog" parent="."]
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/CenterContainer/Button" to="." method="_on_button_pressed"]
|
||||
[connection signal="file_selected" from="FileDialog" to="." method="_on_file_dialog_file_selected"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue