TCX_LongZhu
parent
66cfb96b03
commit
9ef6e83c88
|
|
@ -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)
|
||||
|
||||
-- 随机名称
|
||||
|
|
|
|||
Loading…
Reference in New Issue