Link back button to quit code main menu
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
extends "res://scenes/levels/levels.gd"
|
||||
|
||||
func _ready():
|
||||
pass
|
||||
# Back to main scene
|
||||
func _on_TextureButton_pressed():
|
||||
print("[levels#_on_TextureButton_pressed] quit to menu")
|
||||
Global.goto_scene("res://scenes/main.tscn")
|
||||
|
||||
@@ -544,23 +544,6 @@ use_in_baked_light = true
|
||||
mesh = ExtResource( 9 )
|
||||
material/0 = null
|
||||
|
||||
[node name="Dialog" type="Control" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ConfirmEscape" type="ConfirmationDialog" parent="Dialog"]
|
||||
visible = true
|
||||
margin_right = 200.0
|
||||
margin_bottom = 70.0
|
||||
rect_min_size = Vector2( 400, 140 )
|
||||
window_title = "Veuillez confirmer…"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="sm_gabarit_male" type="MeshInstance" parent="."]
|
||||
transform = Transform( 0.534795, 0, 0.844982, 0, 1, 0, -0.844982, 0, 0.534795, -4.02751, 0.0561329, -0.889434 )
|
||||
mesh = ExtResource( 20 )
|
||||
@@ -754,8 +737,10 @@ collision_mask = 2
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0358186, 0, 0.0109152 )
|
||||
shape = SubResource( 18 )
|
||||
|
||||
[node name="Control" parent="." instance=ExtResource( 44 )]
|
||||
[node name="ListObjects" parent="." instance=ExtResource( 44 )]
|
||||
|
||||
[node name="Control2" parent="." instance=ExtResource( 45 )]
|
||||
[node name="Quit" parent="." instance=ExtResource( 45 )]
|
||||
|
||||
[connection signal="confirmed" from="Dialog/ConfirmEscape" to="." method="_on_ConfirmEscape_confirmed"]
|
||||
[connection signal="pressed" from="Quit/TextureButton" to="." method="_on_TextureButton_pressed"]
|
||||
|
||||
[editable path="Quit"]
|
||||
|
||||
Reference in New Issue
Block a user