Add loading when load warcraft scene
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
extends Control
|
||||
|
||||
# Load scene warcraft
|
||||
func _on_WarCraft_pressed():
|
||||
get_tree().change_scene("res://scenes/levels/WarCraft.tscn")
|
||||
Global.goto_scene("res://scenes/levels/WarCraft.tscn")
|
||||
|
||||
@@ -6,13 +6,20 @@
|
||||
[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="."]
|
||||
[node name="games" type="Control" parent="."]
|
||||
margin_left = 200.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="games"]
|
||||
margin_left = 25.0
|
||||
margin_top = 26.2599
|
||||
margin_right = 824.0
|
||||
@@ -21,10 +28,10 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="WarCraft" type="TextureButton" parent="GridContainer"]
|
||||
[node name="WarCraft" type="TextureButton" parent="games/GridContainer"]
|
||||
margin_right = 150.0
|
||||
margin_bottom = 150.0
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource( 2 )
|
||||
|
||||
[connection signal="pressed" from="GridContainer/WarCraft" to="." method="_on_WarCraft_pressed"]
|
||||
[connection signal="pressed" from="games/GridContainer/WarCraft" to="." method="_on_WarCraft_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user