Browse Source

修改改名字界面编码为UTF-8

leiyasi 1 year ago
parent
commit
a4e9371c80

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/CreateRole/CreateRoleView.cs

@@ -126,19 +126,19 @@ namespace GFGGame
             string roleName = _ui.m_envelopeModel.m_inputName.text;
             if (string.IsNullOrEmpty(roleName))
             {
-                PromptController.Instance.ShowFloatTextPrompt("角色名不能为空");
+                PromptController.Instance.ShowFloatTextPrompt("瑙掕壊鍚嶄笉鑳戒负绌�");
                 return;
             }
 
             if (roleName.Length > GFGGame.GlobalConst.MaxNameLen)
             {
-                PromptController.Instance.ShowFloatTextPrompt("角色名最多七个字");
+                PromptController.Instance.ShowFloatTextPrompt("瑙掕壊鍚嶆渶澶氫竷涓�瓧");
                 return;
             }
 
-            if (!Regex.IsMatch(roleName, @"^[\u4e00-\u9fa5_0-9]+$"))//角色起名仅允许汉字、数字、底划线
+            if (!Regex.IsMatch(roleName, @"^[\u4e00-\u9fa5_0-9]+$"))//瑙掕壊璧峰悕浠呭厑璁告眽瀛椼€佹暟瀛椼€佸簳鍒掔嚎
             {
-                PromptController.Instance.ShowFloatTextPrompt("角色名仅允许汉字、数字、下划线");
+                PromptController.Instance.ShowFloatTextPrompt("瑙掕壊鍚嶄粎鍏佽�姹夊瓧銆佹暟瀛椼€佷笅鍒掔嚎");
                 return;
             }
             bool result = await RoleInfoSProxy.ReqModifyRoleName(roleName);