法宝之灵展示修改

dev_chengFeng
jiaoyangna 2021-11-23 14:00:36 +08:00
parent 21fa0c1762
commit 735b2dc404
3 changed files with 22 additions and 4 deletions

View File

@ -246,6 +246,17 @@ function this.GetManyItems(text)
end)
return
end
if text == "一键法宝之灵" then
local config = (ConfigManager.TryGetAllConfigsDataByKey(ConfigName.ItemConfig,"ItemType",ItemType.talismanSoulChip))
local cor = coroutine.start(function()
for k,v in ipairs(config) do
local str = "1#" .. v.Id .."#" .. 500
NetManager.GMEvent(str)
coroutine.wait(0.1)
end
end)
return
end
if text and text ~= "" then
local list = string.split(text, "|")
local cor = coroutine.start(function()

View File

@ -53,9 +53,16 @@ function TailsManSouPanel:BindEvent()
local s = function(data)
local lis1 = {}
for k,v in pairs(data) do
table.insert(lis1,string.format("<color=#00FF00>%s+%s</color>",propertyConfig[k].Info,GetPropertyFormatStr(propertyConfig[k].Style,v)))
table.insert(lis1,{str = string.format("<color=#00FF00>%s+%s</color>",propertyConfig[k].Info,GetPropertyFormatStr(propertyConfig[k].Style,v)),sort = propertyConfig[k].SortId})
end
return lis1
table.sort(lis1,function(a,b)
return a.sort < b.sort
end)
local list2 = {}
for i = 1,#lis1 do
table.insert(list2,lis1[i].str)
end
return list2
end
local data = {}
local singData = {}

View File

@ -178,9 +178,9 @@ function TailsmanSoulMainPanel:GetProData()
end
local str = ""
for i = 1,#curData do
str = string.format("<color=#ecdfc8>%s%s</color>",propertyConfig[curData[i][1]].Info,GetEquipPropertyFormatStr(propertyConfig[curData[i][1]].Style,curData[i][2]) )
str = string.format("<color=#ecdfc8>%s%s</color>",propertyConfig[curData[i][1]].Info,GetPropertyFormatStr(propertyConfig[curData[i][1]].Style,curData[i][2]) )
if nextProData[curData[i][1]] then
str = str..string.format("<color=#00FF00>+%s</color>",GetEquipPropertyFormatStr(propertyConfig[curData[i][1]].Style,nextProData[curData[i][1]] - curData[i][2]))
str = str..string.format("<color=#00FF00>+%s</color>",GetPropertyFormatStr(propertyConfig[curData[i][1]].Style,nextProData[curData[i][1]] - curData[i][2]))
end
table.insert(proData,str)
end