永久特权描述显示修改
parent
78c5d5387a
commit
71c005e068
|
@ -183,18 +183,22 @@ end
|
|||
function GMShuaChongTeQuan:SingleDataShow(item,data,lv)
|
||||
local privilege=ConfigManager.GetConfigData(ConfigName.PrivilegeTypeConfig,data)
|
||||
local num=""
|
||||
local num2=0
|
||||
if privilege.Condition[lv+1] then
|
||||
num=privilege.Condition[lv+1][2]
|
||||
if num==-1 then
|
||||
num="无限"
|
||||
end
|
||||
if privilege.Condition[lv+1][3] then
|
||||
num2=privilege.Condition[lv+1][3]
|
||||
end
|
||||
end
|
||||
if privilege.IfFloat==2 then
|
||||
num=num/100 .."%"
|
||||
end
|
||||
|
||||
if privilege.Type==1 then
|
||||
item:GetComponent("Text").text =string.format(privilege.Name,num)
|
||||
item:GetComponent("Text").text =string.format(privilege.Name,num,num2)
|
||||
else
|
||||
item:GetComponent("Text").text =privilege.Name
|
||||
end
|
||||
|
|
|
@ -111,7 +111,7 @@ local function _CompareCondition(type, condition, value)
|
|||
--LogError("condition===="..condition.." id=="..id)
|
||||
local isBuy = OperatingManager.IsBuyGift(id)
|
||||
if isBuy then
|
||||
LogError("已购买")
|
||||
LogGreen("已购买")
|
||||
end
|
||||
return isBuy
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue