Update - 1.4.0.73
EN: 1.4.0.73 CN: 1.4.0.74 JP: 1.4.0.77 KR: 1.4.0.80
This commit is contained in:
@@ -51,11 +51,9 @@ function DailyCheckInCtrl:Refresh()
|
||||
self:RefreshSelect()
|
||||
end
|
||||
function DailyCheckInCtrl:RefreshRight()
|
||||
local nTimeNow = CS.ClientManager.Instance.serverTimeStampWithTimeZone
|
||||
local nYear = tonumber(os.date("!%Y", nTimeNow))
|
||||
local nTens, _ = math.modf(self.nMonth / 10 % 10)
|
||||
local nOnes, _ = math.modf(self.nMonth % 10)
|
||||
NovaAPI.SetTMPText(self._mapNode.txtYear, nYear)
|
||||
NovaAPI.SetTMPText(self._mapNode.txtYear, self.nYear)
|
||||
self._mapNode.goSpace:SetActive(nTens == 1)
|
||||
self:SetAtlasSprite(self._mapNode.imgMonth[1], "05_number", "zs_dailycheckin_month_" .. nTens)
|
||||
NovaAPI.SetImageNativeSize(self._mapNode.imgMonth[1])
|
||||
@@ -128,7 +126,8 @@ function DailyCheckInCtrl:Awake()
|
||||
self.mapReward = tbParam[1]
|
||||
self.callback = tbParam[2]
|
||||
end
|
||||
local nMonth, nDays = PlayerData.Daily.GetMonthAndDays()
|
||||
local nYear, nMonth, nDays = PlayerData.Daily.GetMonthAndDays()
|
||||
self.nYear = nYear
|
||||
self.nMonth = nMonth
|
||||
self.nIndex = PlayerData.Daily.GetDailyCheckInIndex()
|
||||
self.tbList = PlayerData.Daily.GetDailyCheckInList(nDays)
|
||||
|
||||
Reference in New Issue
Block a user