diff options
Diffstat (limited to 'client/menu/character_menu.gd')
-rw-r--r-- | client/menu/character_menu.gd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/menu/character_menu.gd b/client/menu/character_menu.gd index 3e535e71..347a0db1 100644 --- a/client/menu/character_menu.gd +++ b/client/menu/character_menu.gd @@ -17,12 +17,17 @@ extends Control @onready var character: Character = $Character @onready var num_hairstyles := character.hairstyles.keys().size() +@onready var back_button := $VBoxContainer/bottom_panel/back func _ready(): $VBoxContainer/top_panel/a/username.text = Global.profile["username"] character.select_hairstyle(Global.profile["character"]) Global.focus_first_button(self) +func _input(event): + if Input.is_action_just_pressed("ui_cancel"): + _on_back_pressed() + func _on_back_pressed(): $SceneTransition.transition_to("res://menu/menu_manager.tscn") |