mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-23 07:33:12 +09:00
.
This commit is contained in:
1 parent
fe8ad1b7b1
commit
9fb93ed11b
1 file changed
+5
-5
@@ -289,18 +289,17 @@ function Elements.items_table.rows_adjust(items_table, display_data)
|
|||||||
end
|
end
|
||||||
]]
|
]]
|
||||||
|
|
||||||
for i=1, min_r do
|
if min_r < d_len then
|
||||||
--rows[i][2]
|
for name, stat_bar in pairs(Elements.items_table.data[items_table]) do
|
||||||
|
Elements.stat_bar.refresh(stat_bar, display_data[name])
|
||||||
end
|
end
|
||||||
|
|
||||||
if min_r < d_len then
|
|
||||||
for i=min_r, d_len do
|
for i=min_r, d_len do
|
||||||
for _, v in ipairs(rows[i]) do
|
for _, v in ipairs(rows[i]) do
|
||||||
Gui.destroy_if_valid(v)
|
Gui.destroy_if_valid(v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
else
|
||||||
|
|
||||||
for name, vnc in pairs(display_data) do
|
for name, vnc in pairs(display_data) do
|
||||||
local r = {}
|
local r = {}
|
||||||
r[1] = Elements.stat_label(stats_table, {
|
r[1] = Elements.stat_label(stats_table, {
|
||||||
@@ -330,6 +329,7 @@ function Elements.items_table.rows_adjust(items_table, display_data)
|
|||||||
rows[#rows + 1] = r
|
rows[#rows + 1] = r
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--- @param controls LuaGuiElement
|
--- @param controls LuaGuiElement
|
||||||
local function surface_index_from_element(controls)
|
local function surface_index_from_element(controls)
|
||||||
|
|||||||
Reference in new issue
Block a user