parent
8b13f803c8
commit
e23d1259f1
|
@ -363,13 +363,16 @@ function this.GetViewProData(indexType,add,lv,title1,title2,subtitle1,subtitle2,
|
||||||
for i = 1,#list do
|
for i = 1,#list do
|
||||||
if list[i].lv ~= 0 then
|
if list[i].lv ~= 0 then
|
||||||
local color = ""
|
local color = ""
|
||||||
|
local tempNum = 0
|
||||||
if lv >= list[i].lv then
|
if lv >= list[i].lv then
|
||||||
color = "00FF00"
|
color = "00FF00"
|
||||||
|
tempNum = list[i].value
|
||||||
else
|
else
|
||||||
color = "fdf5e5"
|
color = "fdf5e5"
|
||||||
|
tempNum = num
|
||||||
end
|
end
|
||||||
if title2 and title2 ~= "" then
|
if title2 and title2 ~= "" then
|
||||||
table.insert(data.prolist,string.format(title2,color,list[i].lv,num,list[i].value))
|
table.insert(data.prolist,string.format(title2,color,list[i].lv,tempNum,list[i].value))
|
||||||
end
|
end
|
||||||
local str1,str2 = this.GetViewProDatas(indexType,add,list[i].lv,subtitle1,subtitle2,nextLv,color)
|
local str1,str2 = this.GetViewProDatas(indexType,add,list[i].lv,subtitle1,subtitle2,nextLv,color)
|
||||||
table.insert(data.prolist,str1)
|
table.insert(data.prolist,str1)
|
||||||
|
|
Loading…
Reference in New Issue