This commit is contained in:
2026-04-07 10:10:52 +08:00
parent b6b7237dc1
commit 7e22f48c57
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -125,8 +125,8 @@ func update_display_name(new_name: String) -> bool:
emit_signal("profile_update_failed", "Display name cannot be empty")
return false
if new_name.length() > 14:
emit_signal("profile_update_failed", "Display name too long (max 14 characters)")
if new_name.length() > 6:
emit_signal("profile_update_failed", "Display name too long (max 6 characters)")
return false
var regex = RegEx.new()
+1 -1
View File
@@ -80,7 +80,7 @@ func _load_profile_data() -> void:
var stats := UserProfileManager.stats
display_name_input.text = profile.get("display_name", "Guest")
display_name_input.max_length = 14
display_name_input.max_length = 6
var avatar_url: String = UserProfileManager.get_avatar_url()
if ResourceLoader.exists(avatar_url):