免费抽刷新时间

dev_chengFeng
ZhangBiao 2020-07-20 10:02:12 +08:00
parent 0715821074
commit c0d053c65c
3 changed files with 11 additions and 4 deletions

View File

@ -104,6 +104,7 @@ function QianKunBox:refreshBtnShow()
local curTimes=PrivilegeManager.GetPrivilegeUsedTimes(maxtimesId)
local freeTime= 0
self.limit.text = Language[12225]..curTimes.."/"..privilegeConfig[maxtimesId].Condition[1][2]
self.di1:SetActive(true)
if freeTimesId>0 then
freeTime= PrivilegeManager.GetPrivilegeRemainValue(freeTimesId)
RecruitManager.freeUseTimeList[freeTimesId]=freeTime
@ -122,7 +123,10 @@ function QianKunBox:refreshBtnShow()
redPot.gameObject:SetActive(isFree)
icon.gameObject:SetActive(not isFree)
num.gameObject:SetActive(not isFree)
self.di1:SetActive(not isFree)
if n==bType.Btn1 and isFree then
self.di1:SetActive(false)
end
local itemId=0
local itemNum=0

View File

@ -235,6 +235,7 @@ function TimeLimitedCall:RefreshGetHeroTimes()
local curTimes=PrivilegeManager.GetPrivilegeUsedTimes(maxtimesId)
self.curtext.text=curTimes
self.upper.text= Language[12225]..curTimes.."/"..privilegeConfig[maxtimesId].Condition[1][2]--特权上限
self.timeupdate.gameObject:SetActive(true)
local freeTime= 0
if freeTimesId>0 then
freeTime = PrivilegeManager.GetPrivilegeRemainValue(freeTimesId)
@ -253,7 +254,9 @@ function TimeLimitedCall:RefreshGetHeroTimes()
redPot.gameObject:SetActive(isFree)
icon.gameObject:SetActive(not isFree)
num.gameObject:SetActive(not isFree)
self.timeupdate.gameObject:SetActive(not isFree)
if n==bType.Btn1 and isFree then
self.timeupdate.gameObject:SetActive(false)
end
local itemId=0
local itemNum=0

View File

@ -82,10 +82,10 @@ function this.RefreshPanel(type)
local express1 = val >= 0 and "+" or ""
local express2 = ""
if propertyConfig[v.id].Style == 2 then
val = val / 10000
val = val / 100
express2 = "%"
end
tip.text=string.format(Language[11648],propertyConfig[v.id].Info,(express1..val..express2))
tip.text=string.format("%s%s",propertyConfig[v.id].Info,(express1..val..express2))
if propertyConfig[v.id].BuffShow then
local lastStr = ""