顶部图标功能
This commit is contained in:
parent
ea0d79b3eb
commit
01165f1a0c
@ -1221,7 +1221,7 @@ Fun26,宠物羁绊
|
||||
Fun27,城镇
|
||||
Fun28,试炼之塔
|
||||
Fun29,恶魔协会
|
||||
Fun30,冒险日记
|
||||
Fun30,日常任务
|
||||
Fun31,队伍
|
||||
Fun32,宝箱
|
||||
Fun33,卡片重铸
|
||||
@ -1259,6 +1259,12 @@ Fun102,英灵殿
|
||||
Fun103,主城
|
||||
Fun200,女神直播间
|
||||
Fun201,MOMO约会
|
||||
Fun301,签到
|
||||
Fun302,任务
|
||||
Fun303,商店
|
||||
Fun401,限时礼包
|
||||
Fun402,超值月卡
|
||||
Fun403,超值首充
|
||||
BtnCards,卡片
|
||||
BtnItems,道具
|
||||
TitleBag,背包
|
||||
|
||||
|
Can't render this file because it is too large.
|
@ -788,7 +788,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Color: {r: 1, g: 0.76375884, b: 0, a: 1}
|
||||
m_RaycastTarget: 0
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
@ -1869,7 +1869,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0.8627451}
|
||||
m_Color: {r: 1, g: 0, b: 0.56688833, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1202,7 +1202,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.2752885, g: 0.8509804, b: 0.19607843, a: 1}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
@ -1277,7 +1277,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9622642, b: 0.21617669, a: 1}
|
||||
m_Color: {r: 0.46226418, g: 0.11120505, b: 0.11120505, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
@ -1625,7 +1625,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.43467426, g: 0.8301887, b: 0.4533698, a: 1}
|
||||
m_Color: {r: 0.5849056, g: 0.2862169, b: 0.1738163, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
|
||||
@ -485,31 +485,31 @@ local UIFuncUnLockCfg = {
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
[30]={
|
||||
['Id']=30,
|
||||
['UIId']=140,
|
||||
['FuncEnterPath']='btnSign',
|
||||
['UnlockCond']={{11,60040}},
|
||||
['LockNotice']='FunUnLock',
|
||||
['FunIcon']='UIFunOpen/ic_open_relation',
|
||||
['FunName']='Fun26',
|
||||
['FunDsc']='宠物羁绊功能开启',
|
||||
['LockDsc']='',
|
||||
['NeedLock']=true,
|
||||
['NeedMask']=true,
|
||||
['NeedNotify']=true,
|
||||
['NeedGuide']=false,
|
||||
['NeedDisplay']=false,
|
||||
['IsOperations']=false,
|
||||
['PrePose']=0,
|
||||
['PostPose']=0,
|
||||
['ForceGuideGroup']=21,
|
||||
['Special']=true,
|
||||
['DscPos']={373,55},
|
||||
['ArrowDir']=3,
|
||||
['DscLayout']=1,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
-- [30]={
|
||||
-- ['Id']=30,
|
||||
-- ['UIId']=140,
|
||||
-- ['FuncEnterPath']='btnSign',
|
||||
-- ['UnlockCond']={{11,60040}},
|
||||
-- ['LockNotice']='FunUnLock',
|
||||
-- ['FunIcon']='UIFunOpen/ic_open_relation',
|
||||
-- ['FunName']='Fun26',
|
||||
-- ['FunDsc']='宠物羁绊功能开启',
|
||||
-- ['LockDsc']='',
|
||||
-- ['NeedLock']=true,
|
||||
-- ['NeedMask']=true,
|
||||
-- ['NeedNotify']=true,
|
||||
-- ['NeedGuide']=false,
|
||||
-- ['NeedDisplay']=false,
|
||||
-- ['IsOperations']=false,
|
||||
-- ['PrePose']=0,
|
||||
-- ['PostPose']=0,
|
||||
-- ['ForceGuideGroup']=21,
|
||||
-- ['Special']=true,
|
||||
-- ['DscPos']={373,55},
|
||||
-- ['ArrowDir']=3,
|
||||
-- ['DscLayout']=1,
|
||||
-- ['LuaCondition']='',
|
||||
-- },
|
||||
[32]={
|
||||
['Id']=32,
|
||||
['UIId']=140,
|
||||
@ -563,12 +563,12 @@ local UIFuncUnLockCfg = {
|
||||
[34]={
|
||||
['Id']=34,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnTask',
|
||||
['FuncEnterPath']='topView.topRoot.btnDailyTask',
|
||||
['UnlockCond']={{11,10020}},
|
||||
['LockNotice']='FunUnLock',
|
||||
['FunIcon']='',
|
||||
['FunName']='Fun30',
|
||||
['FunDsc']='任务',
|
||||
['FunDsc']='日常任务',
|
||||
['LockDsc']='可以获得海量奖励',
|
||||
['NeedLock']=false,
|
||||
['NeedMask']=false,
|
||||
@ -1000,7 +1000,7 @@ local UIFuncUnLockCfg = {
|
||||
[52]={
|
||||
['Id']=52,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnNotifyActivity',
|
||||
['FuncEnterPath']='topView.topRoot.btnSignIn',
|
||||
['UnlockCond']={{11,10013}},
|
||||
['LockNotice']='',
|
||||
['FunIcon']='UIFunOpen/ic_open_activity',
|
||||
@ -1048,7 +1048,7 @@ local UIFuncUnLockCfg = {
|
||||
[54]={
|
||||
['Id']=54,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnClub',
|
||||
['FuncEnterPath']='topView.topRoot.btnMysteryShop',
|
||||
['UnlockCond']={{1001,0},{11,10013}},
|
||||
['LockNotice']='',
|
||||
['FunIcon']='UIFunOpen/ic_open_club',
|
||||
@ -1117,30 +1117,30 @@ local UIFuncUnLockCfg = {
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
[57]={
|
||||
['Id']=57,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnFirstRecharge',
|
||||
['UnlockCond']={{1001,0},{11,10013}},
|
||||
['LockNotice']='FunUnLock',
|
||||
['FunIcon']='UIFunOpen/ic_open_first',
|
||||
['FunName']='Fun46',
|
||||
['FunDsc']='超值首充',
|
||||
['LockDsc']='超值首充',
|
||||
['NeedLock']=true,
|
||||
['NeedMask']=false,
|
||||
['NeedNotify']=true,
|
||||
['NeedGuide']=false,
|
||||
['NeedDisplay']=false,
|
||||
['IsOperations']=false,
|
||||
['PrePose']=0,
|
||||
['PostPose']=0,
|
||||
['ForceGuideGroup']=0,
|
||||
['Special']=false,
|
||||
['ArrowDir']=0,
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
-- [57]={
|
||||
-- ['Id']=57,
|
||||
-- ['UIId']=2,
|
||||
-- ['FuncEnterPath']='topView.topRoot.btnFirstRecharge',
|
||||
-- ['UnlockCond']={{1001,0},{11,10013}},
|
||||
-- ['LockNotice']='FunUnLock',
|
||||
-- ['FunIcon']='UIFunOpen/ic_open_first',
|
||||
-- ['FunName']='Fun46',
|
||||
-- ['FunDsc']='超值首充',
|
||||
-- ['LockDsc']='超值首充',
|
||||
-- ['NeedLock']=true,
|
||||
-- ['NeedMask']=false,
|
||||
-- ['NeedNotify']=true,
|
||||
-- ['NeedGuide']=false,
|
||||
-- ['NeedDisplay']=false,
|
||||
-- ['IsOperations']=false,
|
||||
-- ['PrePose']=0,
|
||||
-- ['PostPose']=0,
|
||||
-- ['ForceGuideGroup']=0,
|
||||
-- ['Special']=false,
|
||||
-- ['ArrowDir']=0,
|
||||
-- ['DscLayout']=0,
|
||||
-- ['LuaCondition']='',
|
||||
-- },
|
||||
[58]={
|
||||
['Id']=58,
|
||||
['UIId']=140,
|
||||
@ -1169,8 +1169,8 @@ local UIFuncUnLockCfg = {
|
||||
[59]={
|
||||
['Id']=59,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnQuestionnaire',
|
||||
['UnlockCond']={{11,9990015}},
|
||||
['FuncEnterPath']='topView.topRoot.btnLimitTimeGift',
|
||||
['UnlockCond']={{11,10013}},
|
||||
['LockNotice']='FunUnLock',
|
||||
['FunIcon']='',
|
||||
['FunName']='',
|
||||
@ -1193,7 +1193,7 @@ local UIFuncUnLockCfg = {
|
||||
[60]={
|
||||
['Id']=60,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnActivityTower',
|
||||
['FuncEnterPath']='topView.topRoot.btnMonthCard',
|
||||
['UnlockCond']={{1001,0},{11,10013}},
|
||||
['LockNotice']='',
|
||||
['FunIcon']='UIFunOpen/ic_open_tower',
|
||||
@ -1217,7 +1217,7 @@ local UIFuncUnLockCfg = {
|
||||
[61]={
|
||||
['Id']=61,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnActivityDojo',
|
||||
['FuncEnterPath']='topView.topRoot.btnFirstChargeGift',
|
||||
['UnlockCond']={{1001,0},{11,10013}},
|
||||
['LockNotice']='',
|
||||
['FunIcon']='UIFunOpen/ic_open_yld',
|
||||
@ -1287,30 +1287,30 @@ local UIFuncUnLockCfg = {
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
[64]={
|
||||
['Id']=64,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnActivityMap',
|
||||
['UnlockCond']={{1001,0},{11,10013}},
|
||||
['LockNotice']='',
|
||||
['FunIcon']='UIFunOpen/ic_open_yld',
|
||||
['FunName']='Fun64',
|
||||
['FunDsc']='冒险盛典',
|
||||
['LockDsc']='冒险盛典',
|
||||
['NeedLock']=true,
|
||||
['NeedMask']=false,
|
||||
['NeedNotify']=false,
|
||||
['NeedGuide']=false,
|
||||
['NeedDisplay']=false,
|
||||
['IsOperations']=true,
|
||||
['PrePose']=0,
|
||||
['PostPose']=0,
|
||||
['ForceGuideGroup']=0,
|
||||
['Special']=false,
|
||||
['ArrowDir']=0,
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
-- [64]={
|
||||
-- ['Id']=64,
|
||||
-- ['UIId']=2,
|
||||
-- ['FuncEnterPath']='topView.topRoot.btnActivityMap',
|
||||
-- ['UnlockCond']={{1001,0},{11,10013}},
|
||||
-- ['LockNotice']='',
|
||||
-- ['FunIcon']='UIFunOpen/ic_open_yld',
|
||||
-- ['FunName']='Fun64',
|
||||
-- ['FunDsc']='冒险盛典',
|
||||
-- ['LockDsc']='冒险盛典',
|
||||
-- ['NeedLock']=true,
|
||||
-- ['NeedMask']=false,
|
||||
-- ['NeedNotify']=false,
|
||||
-- ['NeedGuide']=false,
|
||||
-- ['NeedDisplay']=false,
|
||||
-- ['IsOperations']=true,
|
||||
-- ['PrePose']=0,
|
||||
-- ['PostPose']=0,
|
||||
-- ['ForceGuideGroup']=0,
|
||||
-- ['Special']=false,
|
||||
-- ['ArrowDir']=0,
|
||||
-- ['DscLayout']=0,
|
||||
-- ['LuaCondition']='',
|
||||
-- },
|
||||
[65]={
|
||||
['Id']=65,
|
||||
['UIId']=173,
|
||||
@ -1335,30 +1335,30 @@ local UIFuncUnLockCfg = {
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
[66]={
|
||||
['Id']=66,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnGuildWar',
|
||||
['UnlockCond']={{11,10013}},
|
||||
['LockNotice']='FunUnLock',
|
||||
['FunIcon']='UIFunOpen/ic_open_first',
|
||||
['FunName']='Fun46',
|
||||
['FunDsc']='公会战',
|
||||
['LockDsc']='公会战',
|
||||
['NeedLock']=true,
|
||||
['NeedMask']=false,
|
||||
['NeedNotify']=false,
|
||||
['NeedGuide']=false,
|
||||
['NeedDisplay']=false,
|
||||
['IsOperations']=true,
|
||||
['PrePose']=0,
|
||||
['PostPose']=0,
|
||||
['ForceGuideGroup']=0,
|
||||
['Special']=false,
|
||||
['ArrowDir']=0,
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
-- [66]={
|
||||
-- ['Id']=66,
|
||||
-- ['UIId']=2,
|
||||
-- ['FuncEnterPath']='topView.topRoot.btnGuildWar',
|
||||
-- ['UnlockCond']={{11,10013}},
|
||||
-- ['LockNotice']='FunUnLock',
|
||||
-- ['FunIcon']='UIFunOpen/ic_open_first',
|
||||
-- ['FunName']='Fun46',
|
||||
-- ['FunDsc']='公会战',
|
||||
-- ['LockDsc']='公会战',
|
||||
-- ['NeedLock']=true,
|
||||
-- ['NeedMask']=false,
|
||||
-- ['NeedNotify']=false,
|
||||
-- ['NeedGuide']=false,
|
||||
-- ['NeedDisplay']=false,
|
||||
-- ['IsOperations']=true,
|
||||
-- ['PrePose']=0,
|
||||
-- ['PostPose']=0,
|
||||
-- ['ForceGuideGroup']=0,
|
||||
-- ['Special']=false,
|
||||
-- ['ArrowDir']=0,
|
||||
-- ['DscLayout']=0,
|
||||
-- ['LuaCondition']='',
|
||||
-- },
|
||||
[68]={
|
||||
['Id']=68,
|
||||
['UIId']=91,
|
||||
@ -1431,30 +1431,30 @@ local UIFuncUnLockCfg = {
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
[71]={
|
||||
['Id']=71,
|
||||
['UIId']=2,
|
||||
['FuncEnterPath']='topView.topRoot.btnActivityPet',
|
||||
['UnlockCond']={{1001,0},{11,10013}},
|
||||
['LockNotice']='',
|
||||
['FunIcon']='UIFunOpen/ic_open_yld',
|
||||
['FunName']='Fun71',
|
||||
['FunDsc']='宠物盛典',
|
||||
['LockDsc']='宠物盛典',
|
||||
['NeedLock']=true,
|
||||
['NeedMask']=false,
|
||||
['NeedNotify']=false,
|
||||
['NeedGuide']=false,
|
||||
['NeedDisplay']=false,
|
||||
['IsOperations']=true,
|
||||
['PrePose']=0,
|
||||
['PostPose']=0,
|
||||
['ForceGuideGroup']=0,
|
||||
['Special']=false,
|
||||
['ArrowDir']=0,
|
||||
['DscLayout']=0,
|
||||
['LuaCondition']='',
|
||||
},
|
||||
-- [71]={
|
||||
-- ['Id']=71,
|
||||
-- ['UIId']=2,
|
||||
-- ['FuncEnterPath']='topView.topRoot.btnActivityPet',
|
||||
-- ['UnlockCond']={{1001,0},{11,10013}},
|
||||
-- ['LockNotice']='',
|
||||
-- ['FunIcon']='UIFunOpen/ic_open_yld',
|
||||
-- ['FunName']='Fun71',
|
||||
-- ['FunDsc']='宠物盛典',
|
||||
-- ['LockDsc']='宠物盛典',
|
||||
-- ['NeedLock']=true,
|
||||
-- ['NeedMask']=false,
|
||||
-- ['NeedNotify']=false,
|
||||
-- ['NeedGuide']=false,
|
||||
-- ['NeedDisplay']=false,
|
||||
-- ['IsOperations']=true,
|
||||
-- ['PrePose']=0,
|
||||
-- ['PostPose']=0,
|
||||
-- ['ForceGuideGroup']=0,
|
||||
-- ['Special']=false,
|
||||
-- ['ArrowDir']=0,
|
||||
-- ['DscLayout']=0,
|
||||
-- ['LuaCondition']='',
|
||||
-- },
|
||||
[72]={
|
||||
['Id']=72,
|
||||
['UIId']=140,
|
||||
|
||||
@ -164,8 +164,7 @@ end
|
||||
function LuaUIMgr:POPGotAnimNotice(data)
|
||||
local uiData = ManagerContainer.CfgMgr:GetUIData(Enum.UIPageName.UIPOPGotAnims)
|
||||
if not ManagerContainer.LuaUIMgr:GetPage(uiData.id) then
|
||||
--ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIPOPGotAnims, data)
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIVipExpTips)
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIPOPGotAnims, data)
|
||||
else
|
||||
ManagerContainer.LuaEventMgr:Dispatch(UIEventNames.GOT_ITEM_ANIM, data)
|
||||
end
|
||||
|
||||
@ -22,6 +22,7 @@ function MainTopView:ctor()
|
||||
end
|
||||
|
||||
function MainTopView:Init(root, canvas, animator, sortingOrder)
|
||||
--[[
|
||||
self.root = root
|
||||
self.mCanvas = canvas
|
||||
self.animator = animator
|
||||
@ -36,9 +37,11 @@ function MainTopView:Init(root, canvas, animator, sortingOrder)
|
||||
self:StartUpdate()
|
||||
|
||||
self:InitBtnState()
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:InitBtnState()
|
||||
--[[
|
||||
self.root.topRoot.btnActivityTower:SetActive(false)
|
||||
self.root.topRoot.btnActivityDojo:SetActive(false)
|
||||
self.root.topRoot.btnActivityMap:SetActive(false)
|
||||
@ -48,9 +51,11 @@ function MainTopView:InitBtnState()
|
||||
|
||||
self.root.topRoot.btnActivitySkill:SetActive(false)
|
||||
self:ChangeRefreshCombineServerBtn()
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:StartUpdate()
|
||||
--[[
|
||||
if not updateHandle then
|
||||
updateHandle = UpdateBeat:CreateListener(self.Update, self)
|
||||
end
|
||||
@ -59,16 +64,20 @@ function MainTopView:StartUpdate()
|
||||
|
||||
curLimitedTime = 0
|
||||
curRankTime = 0
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:EndUpdate()
|
||||
--[[
|
||||
if updateHandle ~= nil then
|
||||
UpdateBeat:RemoveListener(updateHandle)
|
||||
updateHandle = nil
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:Change(state, order)
|
||||
--[[
|
||||
if self.mCanvas == nil then return end
|
||||
|
||||
if state then
|
||||
@ -91,18 +100,22 @@ function MainTopView:Change(state, order)
|
||||
self.animator:Play(state and showAni or closeAni, 0, 0)
|
||||
self:ChangeRefreshCombineServerBtn()
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:Resume()
|
||||
--[[
|
||||
if self.mCanvas == nil then return end
|
||||
|
||||
self.mCanvas.sortingOrder = self.defaultSortingOrder
|
||||
|
||||
self.state = false
|
||||
self.animator:Play(closeAni)
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:Update()
|
||||
--[[
|
||||
if self.limitState and self.root and curLimitedTime then
|
||||
curLimitedTime = curLimitedTime + Time.deltaTime
|
||||
if curLimitedTime >= interLimitedTime then
|
||||
@ -110,9 +123,11 @@ function MainTopView:Update()
|
||||
self:RefreshLimitEndTime()
|
||||
end
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:RefreshTopBtns(state)
|
||||
--[[
|
||||
-- TODO: 隐藏TopBtns
|
||||
state = true
|
||||
|
||||
@ -149,9 +164,11 @@ function MainTopView:RefreshTopBtns(state)
|
||||
self.root.topRoot.btnLimitedGift:SetActive(false)
|
||||
self.limitState = false
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:OpenLimitRecharge()
|
||||
--[[
|
||||
--local _unlockState = ManagerContainer.UIFuncUnlockMgr:GetFuncLockStatusById(34);
|
||||
--if not _unlockState then
|
||||
-- self.root.topRoot.btnTask.gameObject:SetActive(false);
|
||||
@ -177,9 +194,11 @@ function MainTopView:OpenLimitRecharge()
|
||||
else
|
||||
self.limitState = true
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:RefreshLimitEndTime()
|
||||
--[[
|
||||
local limitRechargeData = ManagerContainer.DataMgr.ActsDataMgr:GetLimitRechargeItem()
|
||||
if not limitRechargeData then return end
|
||||
|
||||
@ -189,9 +208,11 @@ function MainTopView:RefreshLimitEndTime()
|
||||
self.root.topRoot.btnLimitedGift:SetActive(false)
|
||||
return
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:RefreshAirShipActivityEnter(state)
|
||||
--[[
|
||||
if state then
|
||||
local unlockState = ManagerContainer.UIFuncUnlockMgr:GetFuncLockStatusById(54)
|
||||
if not unlockState then
|
||||
@ -207,9 +228,11 @@ function MainTopView:RefreshAirShipActivityEnter(state)
|
||||
return
|
||||
end
|
||||
self:RefreshAirShipActivityEndTime()
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:RefreshAirShipActivityEndTime()
|
||||
--[[
|
||||
local endTime = ManagerContainer.DataMgr.RuneShopDataMgr:GetCurAirShipActivityEndTime()
|
||||
if not endTime then
|
||||
return
|
||||
@ -227,9 +250,11 @@ function MainTopView:RefreshAirShipActivityEndTime()
|
||||
text.text.text = time
|
||||
end
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:RefreshRankActivityEnter(type, state)
|
||||
--[[
|
||||
if type == Enum.RankActivitiesType.ClimbingTower then
|
||||
if state then
|
||||
local unlockState = ManagerContainer.UIFuncUnlockMgr:GetFuncLockStatusById(60)
|
||||
@ -273,9 +298,11 @@ function MainTopView:RefreshRankActivityEnter(type, state)
|
||||
end
|
||||
|
||||
self:RefreshRankActivityEndTime()
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:RefreshRankActivityEndTime()
|
||||
--[[
|
||||
for k,v in pairs(Enum.RankActivitiesType) do
|
||||
local type = v
|
||||
local stage, endTime, inRush = ManagerContainer.DataMgr.RankActivitiesMgr:GetCurRankActivityStageEndTime(type)
|
||||
@ -308,15 +335,19 @@ function MainTopView:RefreshRankActivityEndTime()
|
||||
end
|
||||
end
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:InsertGMNotice(notice)
|
||||
--[[
|
||||
if scrollNoticeView then
|
||||
scrollNoticeView:InsertGMNotice(notice)
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:ChangeRefreshCombineServerBtn()
|
||||
--[[
|
||||
local nextTime = ManagerContainer.DataMgr.CombineServerDataMgr:GetNextTime()
|
||||
self.root.topRoot.btnCombineService:SetActive(nextTime and nextTime > 0)
|
||||
if not self.state then
|
||||
@ -326,18 +357,22 @@ function MainTopView:ChangeRefreshCombineServerBtn()
|
||||
else
|
||||
self:RefreshCombineServerBtn()
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:DisposeRefreshCombineServerBtn()
|
||||
--[[
|
||||
if self.combineServerTimer then
|
||||
if self.combineServerTimer.running then
|
||||
self.combineServerTimer:Stop()
|
||||
end
|
||||
self.combineServerTimer = nil
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
function MainTopView:RefreshCombineServerBtn()
|
||||
--[[
|
||||
local nextTime = ManagerContainer.DataMgr.CombineServerDataMgr:GetNextTime()
|
||||
if not nextTime or nextTime <= 0 then
|
||||
self:DisposeRefreshCombineServerBtn()
|
||||
@ -358,6 +393,7 @@ function MainTopView:RefreshCombineServerBtn()
|
||||
self.combineServerTimer:Start()
|
||||
end
|
||||
self.root.topRoot.btnCombineService.textTime.text.text = string.formatbykey('CombinedServiceTips', Mathf.Ceil(remainS / 86400))
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
@ -365,6 +401,7 @@ end
|
||||
|
||||
|
||||
function MainTopView:Dispose()
|
||||
--[[
|
||||
self:EndUpdate()
|
||||
self:DisposeRefreshCombineServerBtn()
|
||||
|
||||
@ -375,6 +412,7 @@ function MainTopView:Dispose()
|
||||
self.mCanvas = nil
|
||||
|
||||
self.trans = nil
|
||||
]]
|
||||
end
|
||||
|
||||
return MainTopView
|
||||
@ -75,8 +75,12 @@ function UIMainView:AddUIEventListener()
|
||||
self.uiBase:AddButtonEventListener(self.btnJob.button,self,self.OnClickJobBtn)
|
||||
self.uiBase:AddButtonEventListener(self.headItem.head.button,self,self.OnClickHead)
|
||||
|
||||
self.uiBase:AddButtonEventListener(self.topView.topRoot.btnNotifyActivity.button,self,self.OpenNoticeAndActivity)
|
||||
self.uiBase:AddButtonEventListener(self.topView.topRoot.btnTask.button,self,self.OpenTask)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnSignIn.button,self,self.OnClickSignIn)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnDailyTask.button,self,self.OnClickDailyTask)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnMysteryShop.button, self, self.OnClickMysteryShop)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnMonthCard.button, self, self.OnClickBtnMonthCard)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnLimitTimeGift.button, self, self.OnClickLimitTimeGift)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnFirstChargeGift.button, self, self.OnClickFirstChargeGift)
|
||||
|
||||
self.uiBase:AddButtonEventListener(self.seasonInfo.button, self, self.OnSeasonClick)
|
||||
self.uiBase:AddButtonEventListener(self.coinZ.icon.button, self,self.OnClickCoinZ)
|
||||
@ -90,19 +94,19 @@ function UIMainView:AddUIEventListener()
|
||||
self.uiBase:AddButtonUniqueEventListener(self.climbTowerBtn.icon.button, self, self.OnClimbTowerBtn)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.feiGeBtn.icon.button, self, self.OnFeiGeBtn)
|
||||
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnClub.button, self, self.OnClickRuneShopBtn)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnFirstRecharge.button, self, self.OnClickFirstRechargeBtn)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnLimitedGift.button, self, self.OnClickLimitGiftBtn)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnQuestionnaire.button, self, self.OnQuestionClick)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityTower.button, self, self.OnTowerClick)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityDojo.button, self, self.OnArenaClick)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityMap.button, self, self.OnMapClick)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityPet.button, self, self.OnPetClick)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnAirshipRewards.button, self, self.OnRewardsClick)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivitySkill.button, self, self.OnSkillClick)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnMysteryShop.button, self, self.OnClickRuneShopBtn)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnFirstRecharge.button, self, self.OnClickFirstRechargeBtn)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnLimitedGift.button, self, self.OnClickLimitGiftBtn)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnQuestionnaire.button, self, self.OnQuestionClick)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityTower.button, self, self.OnTowerClick)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityDojo.button, self, self.OnArenaClick)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityMap.button, self, self.OnMapClick)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivityPet.button, self, self.OnPetClick)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnAirshipRewards.button, self, self.OnRewardsClick)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnActivitySkill.button, self, self.OnSkillClick)
|
||||
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnGuildWar.button, self, self.OnClickGuildWarBtn)
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnCombineService.button, self, self.OnClickCombineServerBtn)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnGuildWar.button, self, self.OnClickGuildWarBtn)
|
||||
-- self.uiBase:AddButtonUniqueEventListener(self.topView.topRoot.btnCombineService.button, self, self.OnClickCombineServerBtn)
|
||||
|
||||
self.uiBase:AddButtonUniqueEventListener(self.topBtnsNew.btnDailySign.button, self, function()
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UISignDaily)
|
||||
@ -142,6 +146,29 @@ function UIMainView:AddUIEventListener()
|
||||
end)
|
||||
end
|
||||
|
||||
function UIMainView:OnClickSignIn()
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UISignDaily)
|
||||
end
|
||||
function UIMainView:OnClickDailyTask()
|
||||
ManagerContainer.DataMgr.TaskDataNew:OpenTaskPanel()
|
||||
end
|
||||
function UIMainView:OnClickMysteryShop()
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIShop)
|
||||
end
|
||||
|
||||
function UIMainView:OnClickBtnMonthCard()
|
||||
local curUIId = ManagerContainer.LuaUIMgr:GetCurUIId()
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIRuneShop, {Enum.RuneShopType.MonthCard, 1}, curUIId)
|
||||
end
|
||||
function UIMainView:OnClickLimitTimeGift()
|
||||
local curUIId = ManagerContainer.LuaUIMgr:GetCurUIId()
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIRuneShop, {Enum.RuneShopType.Gifts, 1}, curUIId)
|
||||
end
|
||||
function UIMainView:OnClickFirstChargeGift()
|
||||
local curUIId = ManagerContainer.LuaUIMgr:GetCurUIId()
|
||||
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIRuneShop, {Enum.RuneShopType.Gifts, Enum.RuneShopSubType.Gold}, curUIId)
|
||||
end
|
||||
|
||||
function UIMainView:AddEventListener()
|
||||
-- ManagerContainer.LuaEventMgr:RegisterUIEvent(self.uiData.name, UIEventNames.REFRESH_COIN_AND_DIAMOND, function()
|
||||
-- self:RefreshCoins()
|
||||
@ -1411,6 +1438,7 @@ function UIMainView:RefreshAirShipActivityEnter(state)
|
||||
end
|
||||
|
||||
function UIMainView:RefreshFirstRechargeBtn(state)
|
||||
--[[
|
||||
if state == false then
|
||||
self.topView.topRoot.btnFirstRecharge:SetActive(false)
|
||||
return
|
||||
@ -1430,21 +1458,27 @@ function UIMainView:RefreshFirstRechargeBtn(state)
|
||||
return
|
||||
end
|
||||
self.topView.topRoot.btnFirstRecharge:SetActive(true)
|
||||
]]
|
||||
end
|
||||
|
||||
function UIMainView:RefreshQuestionRewardBtn()
|
||||
--[[
|
||||
local rewardState = ManagerContainer.DataMgr.UserData:GetQuestionRewardState()
|
||||
self.topView.topRoot.btnQuestionnaire:SetActive(not rewardState)
|
||||
]]
|
||||
end
|
||||
|
||||
function UIMainView:RefreshAirShipRewardsBtn(state)
|
||||
--[[
|
||||
if not Constant.OpenPay then
|
||||
state = false
|
||||
end
|
||||
self.topView.topRoot.btnAirshipRewards:SetActive(state)
|
||||
]]
|
||||
end
|
||||
|
||||
function UIMainView:RefreshGuildWarBtn(state)
|
||||
--[[
|
||||
if state == false then
|
||||
self.topView.topRoot.btnGuildWar:SetActive(false)
|
||||
return
|
||||
@ -1460,6 +1494,7 @@ function UIMainView:RefreshGuildWarBtn(state)
|
||||
return
|
||||
end
|
||||
self.topView.topRoot.btnGuildWar:SetActive(false)
|
||||
]]
|
||||
end
|
||||
|
||||
function UIMainView:OnCombineServerTimeChanged()
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user