fixed the bug affecting today's political climate
This commit is contained in:
parent
2ed1969ba1
commit
6a581b960c
2 changed files with 6 additions and 112 deletions
|
@ -1,7 +1,6 @@
|
|||
extends Control
|
||||
|
||||
export var travel_time: float = 1.0
|
||||
export var can_menu: bool = true
|
||||
|
||||
var selected_level: int = 0
|
||||
var made_selection: bool = false
|
||||
|
@ -97,9 +96,8 @@ func _input(event: InputEvent) -> void:
|
|||
pass
|
||||
|
||||
func _gui_input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("ui_cancel") or event.is_action_pressed("pause") and $"%MenuPopup".visible == false:
|
||||
if can_menu:
|
||||
animation_player.play("show_menu")
|
||||
if event.is_action_pressed("ui_cancel") or event.is_action_pressed("pause") && $"%MenuPopup".visible == false:
|
||||
animation_player.play("show_menu")
|
||||
if not made_selection: # player is walking around
|
||||
if event.is_action_pressed("ui_accept"):
|
||||
_update_stats()
|
||||
|
@ -270,3 +268,6 @@ func _on_OptionsScreen_exit():
|
|||
func _on_OptionsButton_button_down():
|
||||
options_screen.visible = true
|
||||
options_screen.focus()
|
||||
|
||||
func _on_ResumeButton_button_down():
|
||||
$MenuSounds.can_play = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue