【家园】修改到达上线提示文字、红点修改

dev_chengFeng
ZhangBiao 2022-01-10 17:24:39 +08:00
parent 5b796d8246
commit cc3791e0d5
3 changed files with 4 additions and 1 deletions

View File

@ -421,7 +421,7 @@ function HomeLand:SetBuildsState()
Util.AddOnceClick(curObj.CanGet,function ()
if data.dataSingle.Storage[2][1] ~= 14 and data.dataSingle.Storage[2][2] <= BagManager.GetTotalItemNum(data.dataSingle.Storage[2][1]) then
PopupTipPanel.ShowTip("当前资源已达储藏上限,提升建筑等级可增加储藏上限!")
PopupTipPanel.ShowTip("当前资源已达库存上限,提升建筑等级可增加库存上限!")
return
end
NetManager.HomeAllGainRequset(data.dataMain.Id,function ()

View File

@ -6425,6 +6425,7 @@ function NetManager.HomeInfoRequest(func)
msg:ParseFromString(data)
HomeLandManager.GetServerData(msg,function ()
if func then
CheckRedPointStatus(RedPointType.HomeLand)
HeroPropManager.SetFuncPropDirty(Hero_Prop_Type.Equip)
func(msg)
end
@ -6500,6 +6501,7 @@ function NetManager.EquipIntensifyRequset(_type,func)
if oldWarPower ~= tempPower and _type ~= -1 then
UIManager.OpenPanel(UIName.WarPowerChangeNotifyPanelV2,{oldValue = oldWarPower,newValue = tempPower})
end
CheckRedPointStatus(RedPointType.HomeLand)
if func then
func(msg)
end

View File

@ -576,6 +576,7 @@ function RewardItemPopup:RedCheckFuns()
--寻宝迷踪红点检测
CheckRedPointStatus(RedPointType.XunBaoMiZong)
CheckRedPointStatus(RedPointType.Gem)
CheckRedPointStatus(RedPointType.HomeLand)
end
--界面销毁时调用(用于子类重写)