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