- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Line 323:
Line 323:
− local stat_columns_set = {}+
−
− stat_columns_set[stat_column] = true
− +
Fix stat column display selection
local stat_columns = {}
local stat_columns = {}
for stat_column, _ in pairs(self._shown_stats) do
for _, stat_column in pairs(self._shown_stats) do
table.insert(stat_columns, Formatting:format_image{StatIcons[stat_column], caption = Formatting:format_stat_name(stat_column)})
table.insert(stat_columns, Formatting:format_image{StatIcons[stat_column], caption = Formatting:format_stat_name(stat_column)})
end
end
for _, column in ipairs(self._stat_columns) do
for _, column in ipairs(self._stat_columns) do
if not stat_columns_set[column] then
if not self._shown_stats[column] then
for _, row_values in ipairs(data_rows) do
for _, row_values in ipairs(data_rows) do
row_values[column] = nil
row_values[column] = nil