diff options
Diffstat (limited to 'client/menu/character.gd')
| -rw-r--r-- | client/menu/character.gd | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/client/menu/character.gd b/client/menu/character.gd index f487e59a..6af30250 100644 --- a/client/menu/character.gd +++ b/client/menu/character.gd @@ -60,7 +60,7 @@ func _input(_event): func _on_back_pressed(): if username_edit.text == "": - await submenu("res://menu/warning_popup.tscn", tr("c.error.empty_username")) + await submenu("res://menu/warning_popup.tscn", tr("c.error.username_empty")) return Global.set_profile("username", username_edit.text) @@ -74,10 +74,3 @@ func _on_character_back_pressed(): func _on_character_forward_pressed(): Global.set_profile("character", (Global.get_profile("character") + 1) % num_hairstyles) character.select_hairstyle(Global.get_profile("character")) - -func _on_username_text_changed(new_text): - var n = new_text.to_lower() - if n.begins_with("f") and n.ends_with("miller"): - await submenu("res://menu/warning_popup.tscn", tr("You cannot choose that name.\n(It's too close to your boss')")) - username_edit.text.clear() - return |