Refacto open scene UI

This commit is contained in:
VAILLANT Jeremy
2021-05-08 15:54:58 +02:00
parent ae75a91632
commit 9fcbe5a516
7 changed files with 44 additions and 40 deletions
+12 -14
View File
@@ -1,32 +1,30 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scenes/UI/ChooseScene.gd" type="Script" id=1]
[ext_resource path="res://assets/levels/warcraft.jpg" type="Texture" id=2]
[node name="ChooseScene" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 200.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GridContainer" type="GridContainer" parent="."]
margin_right = 1024.0
margin_bottom = 600.0
margin_left = 25.0
margin_top = 26.2599
margin_right = 824.0
margin_bottom = 601.26
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Return" type="LinkButton" parent="GridContainer"]
margin_right = 54.0
margin_bottom = 14.0
text = "back"
[node name="WarCraft" type="TextureButton" parent="GridContainer"]
margin_right = 150.0
margin_bottom = 150.0
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 2 )
[node name="WarCraft" type="LinkButton" parent="GridContainer"]
margin_top = 18.0
margin_right = 54.0
margin_bottom = 32.0
text = "WarCraft"
[connection signal="pressed" from="GridContainer/Return" to="." method="_on_Return_pressed"]
[connection signal="pressed" from="GridContainer/WarCraft" to="." method="_on_WarCraft_pressed"]