【特权加等级奖励】4
parent
90bba41910
commit
fc1dc60119
|
@ -495,4 +495,14 @@ function this.GetLevleRewardDatas(key)
|
|||
end
|
||||
|
||||
end
|
||||
function this.GetCurMinCanGetRewardLevel()
|
||||
if levleRewardDatas and #levleRewardDatas > 0 then
|
||||
for i = 1, #levleRewardDatas do
|
||||
if levleRewardDatas[i] == 1 then
|
||||
return i
|
||||
end
|
||||
end
|
||||
end
|
||||
return math.min(VipManager.GetVipLevel() + 1, VipManager.GetMaxVipLevel())
|
||||
end
|
||||
return this
|
|
@ -202,7 +202,7 @@ function VipPanelV2:SetPanelStatus()
|
|||
local maxLv = VipManager.GetMaxVipLevel()
|
||||
self.curLevel.sprite = this.spLoader:LoadSprite("r_zjm_tequanpaizi_0" .. self.context.vipLevel.."_zh")
|
||||
-- 显示的
|
||||
self.curShowLevel = math.min(self.context.vipLevel + 1, maxLv)
|
||||
self.curShowLevel = VipManager.GetCurMinCanGetRewardLevel()--math.min(self.context.vipLevel + 1, maxLv)
|
||||
self:RefreshPanelStatus(self.curShowLevel)
|
||||
self:CheckTaskShow()
|
||||
self.BtnLeft:SetActive(self.curShowLevel > 1)
|
||||
|
@ -541,7 +541,6 @@ function this.CheckVipLvPos(tarObj,lv)
|
|||
end
|
||||
--奖励
|
||||
function VipPanelV2:ShowRewardInfo(level)
|
||||
LogYellow("level "..level)
|
||||
local state = VipManager.GetLevleRewardDatas(level)--0 未领取 1 已领取
|
||||
local vipCurLevel = VipManager.GetVipLevel()
|
||||
if state == 0 then
|
||||
|
|
Loading…
Reference in New Issue