This commit is contained in:
phidias authored and GitHub committed 2026-11-18 03:44:21 +09:00
1 parent fe8ad1b7b1
commit 9fb93ed11b
1 file changed
+28 -28
+28 -28
View File
@@ -289,45 +289,45 @@ function Elements.items_table.rows_adjust(items_table, display_data)
end end
]] ]]
for i=1, min_r do
--rows[i][2]
end
if min_r < d_len then if min_r < d_len then
for name, stat_bar in pairs(Elements.items_table.data[items_table]) do
Elements.stat_bar.refresh(stat_bar, display_data[name])
end
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, { "?",
"?", {
{ "",
"", format_string(
"[img=entity/%s]",
name
),
prototypes.entity[name].localised_name,
format_string(
" [%s]",
quality
)
},
format_string( format_string(
"[img=entity/%s]", "%s [%s]",
name name,
),
prototypes.entity[name].localised_name,
format_string(
" [%s]",
quality quality
) )
}, },
format_string( ""
"%s [%s]",
name,
quality
) )
}, r[2] = Elements.stat_bar(stats_table)
""
)
r[2] = Elements.stat_bar(stats_table)
rows[#rows + 1] = r rows[#rows + 1] = r
end
end end
end end