神兵红点提交
parent
c3bac10fc9
commit
31f51cca80
|
@ -774,6 +774,8 @@ RedPointType = {
|
||||||
----- upview------------
|
----- upview------------
|
||||||
UpView_Gold = 301,
|
UpView_Gold = 301,
|
||||||
|
|
||||||
|
GodWeapon=302,---神兵红点
|
||||||
|
|
||||||
--- 竞技场类型红点
|
--- 竞技场类型红点
|
||||||
Arena_Type_Normal = 1070,
|
Arena_Type_Normal = 1070,
|
||||||
--Arena_Type_TopMatch = 1071,
|
--Arena_Type_TopMatch = 1071,
|
||||||
|
|
|
@ -41,6 +41,7 @@ function this:BindEvent()
|
||||||
local newWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
local newWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
||||||
--飘战力
|
--飘战力
|
||||||
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
||||||
|
CheckRedPointStatus(RedPointType.GodWeapon)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.changeBtn, function()
|
Util.AddClick(this.changeBtn, function()
|
||||||
|
|
|
@ -89,6 +89,7 @@ function this.SingleItemDataShow(_go,_itemData)
|
||||||
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
||||||
FormationManager.CheckHeroIdExist()
|
FormationManager.CheckHeroIdExist()
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.GodWeapon.RefreshGodWeaponInfoPanel,godWeaponData)
|
Game.GlobalEvent:DispatchEvent(GameEvent.GodWeapon.RefreshGodWeaponInfoPanel,godWeaponData)
|
||||||
|
CheckRedPointStatus(RedPointType.GodWeapon)
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
@ -123,6 +124,7 @@ function this.SingleItemDataShow(_go,_itemData)
|
||||||
--飘战力
|
--飘战力
|
||||||
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
||||||
FormationManager.CheckHeroIdExist()
|
FormationManager.CheckHeroIdExist()
|
||||||
|
CheckRedPointStatus(RedPointType.GodWeapon)
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
@ -339,4 +339,15 @@ function this.CheckUpStarRedPoint(_curData)
|
||||||
local costList=this.GetUpStarCost(_curData)
|
local costList=this.GetUpStarCost(_curData)
|
||||||
return #costList>starConfig.ConsumeItemNum
|
return #costList>starConfig.ConsumeItemNum
|
||||||
end
|
end
|
||||||
|
--检测主城神兵红点
|
||||||
|
function this.CheckGodWeaponRedPoint()
|
||||||
|
for key, value in pairs(godWeaponTeamInfo) do
|
||||||
|
if value then
|
||||||
|
if this.CheckUpLvRedPoint(value) or this.CheckUpStarRedPoint(value) then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
return this
|
return this
|
|
@ -72,6 +72,7 @@ function this:BindEvent()
|
||||||
local newWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
local newWarPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
||||||
--飘战力
|
--飘战力
|
||||||
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
PokemonManager.PiaoWarPowerChange(oldWarPower,newWarPower)
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.GodWeapon.RefreshGodWeaponInfoPanel,godWeaponData)
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip("道具不足")
|
PopupTipPanel.ShowTip("道具不足")
|
||||||
|
@ -205,6 +206,7 @@ function this:OnShow()
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.UpdateWinInfo()
|
function this.UpdateWinInfo()
|
||||||
|
CheckRedPointStatus(RedPointType.GodWeapon)
|
||||||
local upLvRed = GodWeaponManager.CheckUpLvRedPoint(godWeaponData)
|
local upLvRed = GodWeaponManager.CheckUpLvRedPoint(godWeaponData)
|
||||||
this.upLvTabRedPoint:SetActive(upLvRed)
|
this.upLvTabRedPoint:SetActive(upLvRed)
|
||||||
local upStarRed = GodWeaponManager.CheckUpStarRedPoint(godWeaponData)
|
local upStarRed = GodWeaponManager.CheckUpStarRedPoint(godWeaponData)
|
||||||
|
|
|
@ -823,6 +823,7 @@ function this.BindRedPoint()
|
||||||
BindRedPointObject(RedPointType.MingWangPri,this.mwRedPoint)
|
BindRedPointObject(RedPointType.MingWangPri,this.mwRedPoint)
|
||||||
BindRedPointObject(RedPointType.ImGM,this.gmRedPoint)
|
BindRedPointObject(RedPointType.ImGM,this.gmRedPoint)
|
||||||
BindRedPointObject(RedPointType.HotRank,this.hrRedPoint)
|
BindRedPointObject(RedPointType.HotRank,this.hrRedPoint)
|
||||||
|
BindRedPointObject(RedPointType.GodWeapon,this.weaponRed)
|
||||||
end
|
end
|
||||||
-- 绑定红点
|
-- 绑定红点
|
||||||
function this.ClearRedPoint()
|
function this.ClearRedPoint()
|
||||||
|
@ -854,6 +855,7 @@ function this.ClearRedPoint()
|
||||||
ClearRedPointObject(RedPointType.MingWangPri,this.mwRedPoint)
|
ClearRedPointObject(RedPointType.MingWangPri,this.mwRedPoint)
|
||||||
ClearRedPointObject(RedPointType.ImGM,this.gmRedPoint)
|
ClearRedPointObject(RedPointType.ImGM,this.gmRedPoint)
|
||||||
ClearRedPointObject(RedPointType.HotRank,this.hrRedPoint)
|
ClearRedPointObject(RedPointType.HotRank,this.hrRedPoint)
|
||||||
|
ClearRedPointObject(RedPointType.GodWeapon,this.weaponRed)
|
||||||
end
|
end
|
||||||
|
|
||||||
--添加事件监听(用于子类重写)
|
--添加事件监听(用于子类重写)
|
||||||
|
|
|
@ -496,6 +496,8 @@ function this.RegisterRedCheckFunc()
|
||||||
-- upView
|
-- upView
|
||||||
RPData:AddCheckFunc(RedPointType.UpView_Gold, ShopManager.CheckGoldIsFree)
|
RPData:AddCheckFunc(RedPointType.UpView_Gold, ShopManager.CheckGoldIsFree)
|
||||||
|
|
||||||
|
RPData:AddCheckFunc(RedPointType.GodWeapon, GodWeaponManager.CheckGodWeaponRedPoint)
|
||||||
|
|
||||||
-- chatview
|
-- chatview
|
||||||
RPData:AddCheckFunc(RedPointType.Chat_Friend, FriendChatManager.CheckRedPotShow)
|
RPData:AddCheckFunc(RedPointType.Chat_Friend, FriendChatManager.CheckRedPotShow)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue