diff options
Diffstat (limited to 'client/menu/character.gd')
-rw-r--r-- | client/menu/character.gd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/menu/character.gd b/client/menu/character.gd index a2526515..8f65311d 100644 --- a/client/menu/character.gd +++ b/client/menu/character.gd @@ -1,6 +1,7 @@ # Hurry Curry! - a game about cooking # Copyright 2024 metamuffin # Copyright 2024 tpart +# Copyright 2024 BigbrotherNii # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -73,3 +74,10 @@ 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 = "" + return |