mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
Edit To Ranking and ExpLib
This commit is contained in:
20
ExpLib.lua
20
ExpLib.lua
@@ -139,4 +139,24 @@ function ExpLib.tick_to_display_format(tick)
|
||||
end
|
||||
end
|
||||
|
||||
function ExpLib.Gui_tree(root)
|
||||
local tree = {}
|
||||
for _,child in pairs(root.children) do
|
||||
if #child.children > 0 then
|
||||
if child.name then
|
||||
tree[child.name] = ExpLib.Gui_tree(child)
|
||||
else
|
||||
table.insert(tree,ExpLib.Gui_tree(child))
|
||||
end
|
||||
else
|
||||
if child.name then
|
||||
tree[child.name] = child.type
|
||||
else
|
||||
table.insert(tree,child.type)
|
||||
end
|
||||
end
|
||||
end
|
||||
return tree
|
||||
end
|
||||
|
||||
return ExpLib
|
||||
Reference in New Issue
Block a user