yipeegit statusgit status

This commit is contained in:
Haze Weathers 2024-07-13 00:16:08 -04:00
parent 0cfe581493
commit 28fb9adf28
2 changed files with 119 additions and 9 deletions

View file

@ -1,6 +1,7 @@
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
@ -96,8 +97,9 @@ 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") && $"%MenuPopup".visible == false:
animation_player.play("show_menu")
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 not made_selection: # player is walking around
if event.is_action_pressed("ui_accept"):
_update_stats()