aboutsummaryrefslogtreecommitdiff
path: root/client/menu/character_menu.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-26 16:34:55 +0200
committernokoe <nokoe@mailbox.org>2024-06-26 16:34:55 +0200
commit5654b69e4c7e0aafe258ad0ab73105722a389def (patch)
tree7e51e306380cd08219a96d4e21db32869e9b9eab /client/menu/character_menu.gd
parent974d5151b28faf94dfa73e33a484eecaa2f69e40 (diff)
downloadhurrycurry-5654b69e4c7e0aafe258ad0ab73105722a389def.tar
hurrycurry-5654b69e4c7e0aafe258ad0ab73105722a389def.tar.bz2
hurrycurry-5654b69e4c7e0aafe258ad0ab73105722a389def.tar.zst
add settings row
Diffstat (limited to 'client/menu/character_menu.gd')
-rw-r--r--client/menu/character_menu.gd14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/menu/character_menu.gd b/client/menu/character_menu.gd
index f4b878be..fd4e3707 100644
--- a/client/menu/character_menu.gd
+++ b/client/menu/character_menu.gd
@@ -19,21 +19,21 @@ extends Control
@onready var num_hairstyles := character.hairstyles.keys().size()
func _ready():
- $VBoxContainer/top_panel/a/username.text = Global.settings["username"]
- character.select_hairstyle(Global.settings["character"])
+ $VBoxContainer/top_panel/a/username.text = Global.profile["username"]
+ character.select_hairstyle(Global.profile["character"])
func _on_back_pressed():
$SceneTransition.transition_to("res://menu/main_menu.tscn")
func _on_username_text_changed(new_text):
- Global.settings["username"] = new_text
+ Global.profile["username"] = new_text
func _on_character_back_pressed():
- Global.settings["character"] = (Global.settings["character"] - 1) % num_hairstyles
- character.select_hairstyle(Global.settings["character"])
+ Global.profile["character"] = (Global.profile["character"] - 1) % num_hairstyles
+ character.select_hairstyle(Global.profile["character"])
Global.save_profile()
func _on_character_forward_pressed():
- Global.settings["character"] = (Global.settings["character"] + 1) % num_hairstyles
- character.select_hairstyle(Global.settings["character"])
+ Global.profile["character"] = (Global.profile["character"] + 1) % num_hairstyles
+ character.select_hairstyle(Global.profile["character"])
Global.save_profile()