From a19f37f7396b9c6e6a3f49c1fd99be035c1bef33 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 18 Nov 2026 15:12:40 +0900 Subject: [PATCH] . --- exp_scenario/module/gui/vlayer.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/exp_scenario/module/gui/vlayer.lua b/exp_scenario/module/gui/vlayer.lua index 1ccf23b8..e1844142 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -237,9 +237,15 @@ function Elements.stats_table.calculate_display_data(surface_index) } end +--- @class ExpGui_Vlayer.elements.stat_bar.item_data +--- @field name string Name of item +--- @field quality number Quality level +--- @field value number Fraction the bar is filled +--- @field caption string + --- Calculate the display data of every item, the same for every player --- @param surface_index number Surface index ---- @return table +--- @return table function Elements.items_table.calculate_display_data(surface_index) local items = Vlayer.get_items(surface_index) local allocated = Vlayer.get_allocated_items(surface_index) @@ -281,7 +287,7 @@ end --- Refresh every bar of a table --- @param items_table LuaGuiElement ---- @param display_data table +--- @param display_data table function Elements.items_table.rows_adjust(items_table, display_data) local rows = Elements.items_table.data[items_table] local i_len = #rows