Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev

This commit is contained in:
CloudJ 2023-06-05 14:10:29 +08:00
commit 6581df1b5c
4 changed files with 7 additions and 5 deletions

View File

@ -195,7 +195,7 @@ function BattleResultUI:tryShowGoldPig()
local currGemCount = DataManager.GoldPigData:getCount()
local maxGemCount = DataManager.GoldPigData:getMaxCount()
if lastGemCount > currGemCount then
lastGemCount = 0
lastGemCount = currGemCount
end
self.goldPigGemTx:setText("+" .. currGemCount - lastGemCount)
GFunc.centerImgAndTx(self.goldPigGemImg, self.goldPigGemTx, 0, -4)

View File

@ -9,8 +9,8 @@ function SideBarIdleCell:getIsOpen()
return DataManager.IdleData:getIsOpen()
end
function SideBarIdleCell:getIconRes()
return "main_btn_hang"
function SideBarIdleCell:getSpineName()
return "ui_main_btn_hang"
end
function SideBarIdleCell:onClick()

View File

@ -9,8 +9,8 @@ function SideBarSevenDaysCell:getIsOpen()
return DataManager.SevenDayData:getIsOpen()
end
function SideBarSevenDaysCell:getIconRes()
return "main_btn_sevenday"
function SideBarSevenDaysCell:getSpineName()
return "ui_main_btn_sevenday"
end
function SideBarSevenDaysCell:onClick()

View File

@ -70,6 +70,7 @@ function GoldPigData:checkOpen()
self.nextShowTime = self.endTime + self:getTimeOverCD()
if Time:getServerTime() >= self.endTime then -- 超过时间该消失了
self.data.isOpen = false
self:levelDown()
else
self.data.isOpen = true
DataManager:registerDataCd("GoldPigData")
@ -96,6 +97,7 @@ function GoldPigData:addGoldPigCount()
return
end
if self.data.count >= info.max_diamond then -- 已经满了
self.lastCount = self.data.count
return
end
self.lastCount = self.data.count