变身卡添加职业

dev_chengFeng
wangzhenxing 2023-04-21 13:24:26 +08:00
parent 7758ec6d8d
commit 1f94c3d234
7 changed files with 913 additions and 637 deletions

View File

@ -1058,7 +1058,7 @@ RedPointType = {
incarnation_taoist = 43805,
tiandihonglu = 43806,
incarnation_force = 43807,--化身之力红点
incarnation_Kong = 43808,
recruitTreasure = 7010,
recruitTreasure_one = 7011,
recruitTreasure_two = 7012,

View File

@ -1330,6 +1330,7 @@ function this.BagIndicationRefresh(msg)
CheckRedPointStatus(RedPointType.incarnation_buddish)
CheckRedPointStatus(RedPointType.incarnation_demon)
CheckRedPointStatus(RedPointType.incarnation_taoist)
CheckRedPointStatus(RedPointType.incarnation_Kong)
end
if v.itemId == 1351 then
DynamicActivityManager.ChangeMingWangLv()

View File

@ -280,6 +280,8 @@ function this.CheckRedData(red)
list = this.GetItemDataListByPro(2)
elseif red == RedPointType.incarnation_demon then
list = this.GetItemDataListByPro(3)
elseif red == RedPointType.incarnation_Kong then
list = this.GetItemDataListByPro(5)
else
list = this.GetItemDataListByPro(4)
end

View File

@ -14,7 +14,7 @@ local curIndex=1
local allPos={1321,327,-330}
function IncarnationPanel:InitComponent()
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)
tabsRedpoints[i] = Util.GetGameObject(tabs[i], "redpoint")
if tabsImg[i] then
@ -60,7 +60,7 @@ end
function IncarnationPanel:BindEvent()
for i = 1,4 do
for i = 1,5 do
Util.AddClick(tabs[i], function()
if i == proId then
return
@ -142,6 +142,7 @@ function IncarnationPanel:BindEvent()
BindRedPointObject(RedPointType.incarnation_buddish,tabsRedpoints[2].gameObject)
BindRedPointObject(RedPointType.incarnation_demon,tabsRedpoints[3].gameObject)
BindRedPointObject(RedPointType.incarnation_taoist,tabsRedpoints[4].gameObject)
BindRedPointObject(RedPointType.incarnation_Kong,tabsRedpoints[5].gameObject)
BindRedPointObject(RedPointType.incarnation_force,self.powerBtnRedPoint.gameObject)
end
@ -459,6 +460,7 @@ function IncarnationPanel:OnDestroy()
ClearRedPointObject(RedPointType.incarnation_buddish,tabsRedpoints[2].gameObject)
ClearRedPointObject(RedPointType.incarnation_demon,tabsRedpoints[3].gameObject)
ClearRedPointObject(RedPointType.incarnation_taoist,tabsRedpoints[4].gameObject)
ClearRedPointObject(RedPointType.incarnation_Kong,tabsRedpoints[5].gameObject)
ClearRedPointObject(RedPointType.incarnation_force,self.powerBtnRedPoint.gameObject)
SubUIManager.Close(self.UpView)
end

View File

@ -298,6 +298,7 @@ end
function this:OnClose()
Game.GlobalEvent:DispatchEvent(GameEvent.CommonEvent.RefreshIncarnationPanel)
CheckRedPointStatus(RedPointType.incarnation_people)
CheckRedPointStatus(RedPointType.incarnation_Kong)
CheckRedPointStatus(RedPointType.incarnation_buddish)
CheckRedPointStatus(RedPointType.incarnation_demon)
CheckRedPointStatus(RedPointType.incarnation_taoist)

View File

@ -342,6 +342,7 @@ function this.InitRedPointAllRelate()
--身外化身
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_demon,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_demon,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.tiandihonglu,OperatingManager.GetTianDiHongLuRedPointStatus)