mirror of
https://github.com/Dariasteam/Cows-Revenge.git
synced 2026-01-23 02:15:17 +00:00
Fix back button
This commit is contained in:
parent
5b0f037404
commit
39aa79b862
2 changed files with 5 additions and 5 deletions
|
|
@ -7,9 +7,9 @@ func _ready():
|
|||
|
||||
func _on_Button_pressed():
|
||||
global.save_game()
|
||||
get_tree().set_pause(false)
|
||||
get_tree().quit()
|
||||
get_tree().set_pause(false)
|
||||
get_tree().change_scene_to(scene)
|
||||
|
||||
func _input(ev):
|
||||
if (ev.is_action_pressed("ui_cancel")):
|
||||
if (ev.is_action_pressed("ui_cancel")):
|
||||
_on_Button_pressed()
|
||||
|
|
@ -48,12 +48,12 @@ button/align = 1065353216
|
|||
|
||||
[node name="Button" type="Button" parent="VButtonArray"]
|
||||
|
||||
rect/scale = Vector2( 0.08, 0.12 )
|
||||
rect/scale = Vector2( 0.06, 0.1 )
|
||||
focus/ignore_mouse = false
|
||||
focus/stop_mouse = true
|
||||
size_flags/horizontal = 2
|
||||
size_flags/vertical = 2
|
||||
margin/left = -3.09944e-06
|
||||
margin/left = 0.0
|
||||
margin/top = 0.0
|
||||
margin/right = 42.0
|
||||
margin/bottom = 37.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue