变身卡添加职业
parent
7758ec6d8d
commit
1f94c3d234
File diff suppressed because it is too large
Load Diff
|
@ -1058,7 +1058,7 @@ RedPointType = {
|
||||||
incarnation_taoist = 43805,
|
incarnation_taoist = 43805,
|
||||||
tiandihonglu = 43806,
|
tiandihonglu = 43806,
|
||||||
incarnation_force = 43807,--化身之力红点
|
incarnation_force = 43807,--化身之力红点
|
||||||
|
incarnation_Kong = 43808,
|
||||||
recruitTreasure = 7010,
|
recruitTreasure = 7010,
|
||||||
recruitTreasure_one = 7011,
|
recruitTreasure_one = 7011,
|
||||||
recruitTreasure_two = 7012,
|
recruitTreasure_two = 7012,
|
||||||
|
|
|
@ -1330,6 +1330,7 @@ function this.BagIndicationRefresh(msg)
|
||||||
CheckRedPointStatus(RedPointType.incarnation_buddish)
|
CheckRedPointStatus(RedPointType.incarnation_buddish)
|
||||||
CheckRedPointStatus(RedPointType.incarnation_demon)
|
CheckRedPointStatus(RedPointType.incarnation_demon)
|
||||||
CheckRedPointStatus(RedPointType.incarnation_taoist)
|
CheckRedPointStatus(RedPointType.incarnation_taoist)
|
||||||
|
CheckRedPointStatus(RedPointType.incarnation_Kong)
|
||||||
end
|
end
|
||||||
if v.itemId == 1351 then
|
if v.itemId == 1351 then
|
||||||
DynamicActivityManager.ChangeMingWangLv()
|
DynamicActivityManager.ChangeMingWangLv()
|
||||||
|
|
|
@ -280,6 +280,8 @@ function this.CheckRedData(red)
|
||||||
list = this.GetItemDataListByPro(2)
|
list = this.GetItemDataListByPro(2)
|
||||||
elseif red == RedPointType.incarnation_demon then
|
elseif red == RedPointType.incarnation_demon then
|
||||||
list = this.GetItemDataListByPro(3)
|
list = this.GetItemDataListByPro(3)
|
||||||
|
elseif red == RedPointType.incarnation_Kong then
|
||||||
|
list = this.GetItemDataListByPro(5)
|
||||||
else
|
else
|
||||||
list = this.GetItemDataListByPro(4)
|
list = this.GetItemDataListByPro(4)
|
||||||
end
|
end
|
||||||
|
|
|
@ -14,7 +14,7 @@ local curIndex=1
|
||||||
local allPos={1321,327,-330}
|
local allPos={1321,327,-330}
|
||||||
function IncarnationPanel:InitComponent()
|
function IncarnationPanel:InitComponent()
|
||||||
self.spLoader = SpriteLoader.New()
|
self.spLoader = SpriteLoader.New()
|
||||||
for i = 1, 4 do
|
for i = 1, 5 do
|
||||||
tabs[i] = Util.GetGameObject(self.transform, "bg/Tabs/grid/Btn" .. i)
|
tabs[i] = Util.GetGameObject(self.transform, "bg/Tabs/grid/Btn" .. i)
|
||||||
tabsRedpoints[i] = Util.GetGameObject(tabs[i], "redpoint")
|
tabsRedpoints[i] = Util.GetGameObject(tabs[i], "redpoint")
|
||||||
if tabsImg[i] then
|
if tabsImg[i] then
|
||||||
|
@ -60,7 +60,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
function IncarnationPanel:BindEvent()
|
function IncarnationPanel:BindEvent()
|
||||||
for i = 1,4 do
|
for i = 1,5 do
|
||||||
Util.AddClick(tabs[i], function()
|
Util.AddClick(tabs[i], function()
|
||||||
if i == proId then
|
if i == proId then
|
||||||
return
|
return
|
||||||
|
@ -142,6 +142,7 @@ function IncarnationPanel:BindEvent()
|
||||||
BindRedPointObject(RedPointType.incarnation_buddish,tabsRedpoints[2].gameObject)
|
BindRedPointObject(RedPointType.incarnation_buddish,tabsRedpoints[2].gameObject)
|
||||||
BindRedPointObject(RedPointType.incarnation_demon,tabsRedpoints[3].gameObject)
|
BindRedPointObject(RedPointType.incarnation_demon,tabsRedpoints[3].gameObject)
|
||||||
BindRedPointObject(RedPointType.incarnation_taoist,tabsRedpoints[4].gameObject)
|
BindRedPointObject(RedPointType.incarnation_taoist,tabsRedpoints[4].gameObject)
|
||||||
|
BindRedPointObject(RedPointType.incarnation_Kong,tabsRedpoints[5].gameObject)
|
||||||
BindRedPointObject(RedPointType.incarnation_force,self.powerBtnRedPoint.gameObject)
|
BindRedPointObject(RedPointType.incarnation_force,self.powerBtnRedPoint.gameObject)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -459,6 +460,7 @@ function IncarnationPanel:OnDestroy()
|
||||||
ClearRedPointObject(RedPointType.incarnation_buddish,tabsRedpoints[2].gameObject)
|
ClearRedPointObject(RedPointType.incarnation_buddish,tabsRedpoints[2].gameObject)
|
||||||
ClearRedPointObject(RedPointType.incarnation_demon,tabsRedpoints[3].gameObject)
|
ClearRedPointObject(RedPointType.incarnation_demon,tabsRedpoints[3].gameObject)
|
||||||
ClearRedPointObject(RedPointType.incarnation_taoist,tabsRedpoints[4].gameObject)
|
ClearRedPointObject(RedPointType.incarnation_taoist,tabsRedpoints[4].gameObject)
|
||||||
|
ClearRedPointObject(RedPointType.incarnation_Kong,tabsRedpoints[5].gameObject)
|
||||||
ClearRedPointObject(RedPointType.incarnation_force,self.powerBtnRedPoint.gameObject)
|
ClearRedPointObject(RedPointType.incarnation_force,self.powerBtnRedPoint.gameObject)
|
||||||
SubUIManager.Close(self.UpView)
|
SubUIManager.Close(self.UpView)
|
||||||
end
|
end
|
||||||
|
|
|
@ -298,6 +298,7 @@ end
|
||||||
function this:OnClose()
|
function this:OnClose()
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.CommonEvent.RefreshIncarnationPanel)
|
Game.GlobalEvent:DispatchEvent(GameEvent.CommonEvent.RefreshIncarnationPanel)
|
||||||
CheckRedPointStatus(RedPointType.incarnation_people)
|
CheckRedPointStatus(RedPointType.incarnation_people)
|
||||||
|
CheckRedPointStatus(RedPointType.incarnation_Kong)
|
||||||
CheckRedPointStatus(RedPointType.incarnation_buddish)
|
CheckRedPointStatus(RedPointType.incarnation_buddish)
|
||||||
CheckRedPointStatus(RedPointType.incarnation_demon)
|
CheckRedPointStatus(RedPointType.incarnation_demon)
|
||||||
CheckRedPointStatus(RedPointType.incarnation_taoist)
|
CheckRedPointStatus(RedPointType.incarnation_taoist)
|
||||||
|
|
|
@ -342,6 +342,7 @@ function this.InitRedPointAllRelate()
|
||||||
|
|
||||||
--身外化身
|
--身外化身
|
||||||
RPData:SetParent(RedPointType.incarnation_people,RedPointType.incarnation)
|
RPData:SetParent(RedPointType.incarnation_people,RedPointType.incarnation)
|
||||||
|
RPData:SetParent(RedPointType.incarnation_Kong,RedPointType.incarnation)
|
||||||
RPData:SetParent(RedPointType.incarnation_buddish,RedPointType.incarnation)
|
RPData:SetParent(RedPointType.incarnation_buddish,RedPointType.incarnation)
|
||||||
RPData:SetParent(RedPointType.incarnation_demon,RedPointType.incarnation)
|
RPData:SetParent(RedPointType.incarnation_demon,RedPointType.incarnation)
|
||||||
RPData:SetParent(RedPointType.incarnation_taoist,RedPointType.incarnation)
|
RPData:SetParent(RedPointType.incarnation_taoist,RedPointType.incarnation)
|
||||||
|
@ -668,6 +669,7 @@ function this.RegisterRedCheckFunc()
|
||||||
RPData:AddCheckFunc(RedPointType.incarnation_buddish,IncarnationManager.CheckRedData)
|
RPData:AddCheckFunc(RedPointType.incarnation_buddish,IncarnationManager.CheckRedData)
|
||||||
RPData:AddCheckFunc(RedPointType.incarnation_demon,IncarnationManager.CheckRedData)
|
RPData:AddCheckFunc(RedPointType.incarnation_demon,IncarnationManager.CheckRedData)
|
||||||
RPData:AddCheckFunc(RedPointType.incarnation_taoist,IncarnationManager.CheckRedData)
|
RPData:AddCheckFunc(RedPointType.incarnation_taoist,IncarnationManager.CheckRedData)
|
||||||
|
RPData:AddCheckFunc(RedPointType.incarnation_Kong,IncarnationManager.CheckRedData)
|
||||||
RPData:AddCheckFunc(RedPointType.incarnation_force,IncarnationManager.CheckPowerBtnRedData)
|
RPData:AddCheckFunc(RedPointType.incarnation_force,IncarnationManager.CheckPowerBtnRedData)
|
||||||
|
|
||||||
RPData:AddCheckFunc(RedPointType.tiandihonglu,OperatingManager.GetTianDiHongLuRedPointStatus)
|
RPData:AddCheckFunc(RedPointType.tiandihonglu,OperatingManager.GetTianDiHongLuRedPointStatus)
|
||||||
|
|
Loading…
Reference in New Issue