diff options
-rw-r--r-- | client/menu/character.gd | 9 | ||||
-rw-r--r-- | client/menu/character.tscn | 1 | ||||
-rw-r--r-- | client/menu/setup.gd | 1 |
3 files changed, 1 insertions, 10 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 diff --git a/client/menu/character.tscn b/client/menu/character.tscn index 6652982c..463fd4fe 100644 --- a/client/menu/character.tscn +++ b/client/menu/character.tscn @@ -150,7 +150,6 @@ text = "c.menu.back" visible = false layout_mode = 1 -[connection signal="text_changed" from="VBoxContainer/top_panel/a/username" to="." method="_on_username_text_changed"] [connection signal="focus_entered" from="VBoxContainer/Spacer/VBoxContainer/HBoxContainer/Back" to="." method="_on_back_focus_entered"] [connection signal="focus_exited" from="VBoxContainer/Spacer/VBoxContainer/HBoxContainer/Back" to="." method="_on_back_focus_exited"] [connection signal="pressed" from="VBoxContainer/Spacer/VBoxContainer/HBoxContainer/Back" to="." method="_on_character_back_pressed"] diff --git a/client/menu/setup.gd b/client/menu/setup.gd index 89445ac6..78082e38 100644 --- a/client/menu/setup.gd +++ b/client/menu/setup.gd @@ -55,7 +55,6 @@ func _process(delta): func check(): if username.text == "": return tr("c.error.empty_username") var n = username.text.to_lower() - if n.begins_with("f") and n.ends_with("miller"): return tr("You cannot choose that name.\n(It's too close to your boss')") if character == -1: return tr("You must select a hairstyle") return null |