化身属性排序修改
parent
fbf47dbd61
commit
9070ad04ca
|
|
@ -75,10 +75,16 @@ function this.GetproDesStr(_str,dataList)
|
|||
end
|
||||
|
||||
function this.GetproDesLst(dataList,_color)
|
||||
local list = {}
|
||||
local lis1 = {}
|
||||
for k,v in pairs(dataList) do
|
||||
local str = string.format("<color=#%s>%s+%s</color>",_color,PropertyConfig[k].Info,GetPropertyFormatStrOne(PropertyConfig[k].Style,v))
|
||||
table.insert(list,str)
|
||||
table.insert(lis1,{str = string.format("<color=#%s>%s+%s</color>",_color,PropertyConfig[k].Info,GetPropertyFormatStrOne(PropertyConfig[k].Style,v)) ,sort = PropertyConfig[k].SortId})
|
||||
end
|
||||
table.sort(lis1,function(a,b)
|
||||
return a.sort < b.sort
|
||||
end)
|
||||
local list = {}
|
||||
for i = 1,#lis1 do
|
||||
table.insert(list,lis1[i].str)
|
||||
end
|
||||
return list
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue