Added scene changer back
This commit is contained in:
parent
a07de70d2f
commit
0cf127acec
5 changed files with 7 additions and 6 deletions
|
@ -110,7 +110,7 @@ custom_features=""
|
|||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="export/teddy.x86_64"
|
||||
export_path="export/linux/teddy.x86_64"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
|
@ -151,7 +151,7 @@ custom_features=""
|
|||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="export/Project Teddy.exe"
|
||||
export_path="export/windows/Project Teddy.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
|
|
|
@ -85,6 +85,7 @@ offset_bottom = 454.0
|
|||
text = "Blender"
|
||||
|
||||
[node name="Label9" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 554.0
|
||||
offset_top = 457.0
|
||||
offset_right = 617.0
|
||||
|
|
|
@ -133,7 +133,6 @@ texture = ExtResource("10_oafyi")
|
|||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("11_6irkm")
|
||||
autoplay = true
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
|
||||
[connection signal="mouse_entered" from="playButton" to="." method="_on_play_button_mouse_entered"]
|
||||
|
|
|
@ -34,8 +34,10 @@ func _on_button_2_pressed():
|
|||
|
||||
func _on_button_3_pressed():
|
||||
if Global.playingGame == true:
|
||||
get_tree().change_scene_to_file("res://scenes/mainmenu-background.tscn")
|
||||
Global.playingGame = false
|
||||
Global.goScene = "res://scenes/mainmenu-background.tscn"
|
||||
var scene_trs =load("res://scenes/sceneChangerConfirm.tscn")
|
||||
var scene=scene_trs.instantiate()
|
||||
add_child(scene)
|
||||
elif Global.playingGame == false:
|
||||
get_tree().quit()
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ func _process(delta):
|
|||
|
||||
func _on_yes_button_pressed():
|
||||
Global.playingGame = false
|
||||
Global.menuOpen = false
|
||||
get_tree().change_scene_to_file(Global.goScene)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue