From 9ef6e83c8882e5d4a24f1db8a36cec03fb3f17b5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RH64908\\Administrator" Date: Tue, 30 Dec 2025 18:20:58 +0800 Subject: [PATCH] 1 --- .../~Lua/Modules/Popup/CreateNamePopup.lua | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua index f516fe08d6..32c3bf125f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/CreateNamePopup.lua @@ -178,20 +178,26 @@ function CreateNamePopup:BindEvent() this.curName = this.textNameNew.text - local callBack = function() - if this.options then - self:ClosePanel() - StoryManager.StoryJumpType(this.options[1], nil, this.callBackFunc) - --UIManager.OpenPanel(UIName.GMEspecially) - -- 发送创建角色事件 - CustomEventManager.SendCustomEvents(FBSDKCustomEventType.CreateCharacter) - CustomEventManager.SendCustomEvents(FBSDKCustomEventType.RoleLv, 1) +local data = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig, 161) + if data.IsOpen == 1 then + local callBack = function() + if this.options then + self:ClosePanel() + StoryManager.StoryJumpType(this.options[1], nil, this.callBackFunc) + --UIManager.OpenPanel(UIName.GMEspecially) + -- 发送创建角色事件 + CustomEventManager.SendCustomEvents(FBSDKCustomEventType.CreateCharacter) + CustomEventManager.SendCustomEvents(FBSDKCustomEventType.RoleLv, 1) + end end + -- 类型3 为修改名称 类型1 为创建角色 + local type = this.showType == nil and 3 or 1 + NameManager.ChangeUserName(type, this.curName, nil, curSex, callBack) + else + -- 类型3 为修改名称 类型1 为创建角色 + local type = this.showType == nil and 3 or 1 + NameManager.ChangeUserName(type, this.curName, nil, curSex, this.callBackFunc) end - - -- 类型3 为修改名称 类型1 为创建角色 - local type = this.showType == nil and 3 or 1 - NameManager.ChangeUserName(type, this.curName, nil, curSex, callBack) end) -- 随机名称