TCX_LongZhu
DESKTOP-RH64908\Administrator 2025-12-30 18:20:58 +08:00
parent 66cfb96b03
commit 9ef6e83c88
1 changed files with 18 additions and 12 deletions

View File

@ -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)
-- 随机名称