summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-20 01:01:14 +0200
committertpart <tpart120@proton.me>2024-09-20 01:01:14 +0200
commit817beb2ae60a2f3ec99cd1e44b0d5f19ae5e9b93 (patch)
treeccb3fadbaa3683349c2f4a0b1b32f2284e57c491
parente7a18d518772fbe14f2fbd6e0254a0daf326c210 (diff)
downloadhurrycurry-817beb2ae60a2f3ec99cd1e44b0d5f19ae5e9b93.tar
hurrycurry-817beb2ae60a2f3ec99cd1e44b0d5f19ae5e9b93.tar.bz2
hurrycurry-817beb2ae60a2f3ec99cd1e44b0d5f19ae5e9b93.tar.zst
Remove Frank Miller name block because of too much complexity and missing translations
-rw-r--r--client/menu/character.gd9
-rw-r--r--client/menu/character.tscn1
-rw-r--r--client/menu/setup.gd1
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