• 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
Fix stat column headers
Line 338: Line 338:     
local stat_columns = {}
 
local stat_columns = {}
for stat_column, _ in pairs(self._shown_stats) do
  −
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[stat_column], caption = Formatting:format_stat_name(stat_column)}})
  −
end
   
for _, column in ipairs(self._stat_columns) do
 
for _, column in ipairs(self._stat_columns) do
if not self._shown_stats[column] then
+
if self._shown_stats[column] then
 +
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column], caption = Formatting:format_stat_name(column)}})
 +
else
 
for _, row_values in ipairs(data_rows) do
 
for _, row_values in ipairs(data_rows) do
 
row_values[column] = nil
 
row_values[column] = nil
Anonymous user

Navigation menu