【洞府】=======望月居库存上限显示修改
parent
f285d5e797
commit
190617c6e5
|
|
@ -347,7 +347,7 @@ function HomeLand:InitDetailBar()
|
|||
local data = HomeLandManager.BuildData[i]
|
||||
if data.dataMain.Type == 1 and data.startTime > 0 then
|
||||
--进度条部分
|
||||
if data.dataSingle.Gain[1] ~= 14 then
|
||||
if data.dataSingle.Gain[1] ~= 14 and data.dataSingle.Storage[2][2]~=0 then
|
||||
local go = self.preList1[i]
|
||||
if not go then
|
||||
go = newObjToParent(self.progressPre,self.progress.transform)
|
||||
|
|
@ -460,7 +460,7 @@ function HomeLand:SetBuildsState()
|
|||
end
|
||||
|
||||
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
|
||||
if data.dataSingle.Storage[2][1] ~= 14 and data.dataSingle.Storage[2][2]~=0 and data.dataSingle.Storage[2][2] <= BagManager.GetTotalItemNum(data.dataSingle.Storage[2][1]) then
|
||||
PopupTipPanel.ShowTip("当前资源已达库存上限,提升建筑等级可增加库存上限!")
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue