• 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
Undo revision 140106 by がか (talk)
Line 70: Line 70:  
range = "lightseagreen",
 
range = "lightseagreen",
 
},
 
},
_column_header_cell_template = [[! class="highlighted" style="background-color:${bg_color}" | ${value}]],
+
_column_header_cell_template = [[! style="background-color: ${bg_color};" | ${value}]],
_column_header_cell_template_simple = [[| ${value}]],
   
_stats_column_label = "Stats",
 
_stats_column_label = "Stats",
 
}
 
}
Line 254: Line 253:  
if note.highlight == "outstanding" then
 
if note.highlight == "outstanding" then
 
bg_color = self._outstanding_stat_color
 
bg_color = self._outstanding_stat_color
 +
txt_color = self.black
 
elseif note.highlight == "good" then
 
elseif note.highlight == "good" then
 
bg_color = self._good_stat_color
 
bg_color = self._good_stat_color
 +
txt_color = black
 
elseif note.highlight == "bad" then
 
elseif note.highlight == "bad" then
 
bg_color = self._bad_stat_color
 
bg_color = self._bad_stat_color
Line 275: Line 276:  
for _, column in ipairs(self._stat_columns) do
 
for _, column in ipairs(self._stat_columns) do
 
if self._shown_stats[column] then
 
if self._shown_stats[column] then
bg_color = self._stat_colors[column]
+
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column] or (column == "deployment_cost" and ResourceIcons.bauxite or nil), caption = Formatting:format_stat_name(column)}, bg_color = self._stat_colors[column]})
if bg_color == 'transparent' then
  −
table.insert(stat_columns, format{
  −
self._column_header_cell_template_simple,
  −
value = Formatting:format_image{StatIcons[column] or (column == "deployment_cost" and ResourceIcons.bauxite or nil), caption = Formatting:format_stat_name(column)},
  −
})
  −
else
  −
table.insert(stat_columns, format{
  −
self._column_header_cell_template,
  −
value = Formatting:format_image{StatIcons[column] or (column == "deployment_cost" and ResourceIcons.bauxite or nil), caption = Formatting:format_stat_name(column)},
  −
bg_color = bg_color,
  −
})
  −
end
   
else
 
else
 
for _, row_values in ipairs(self._data_rows) do
 
for _, row_values in ipairs(self._data_rows) do
cssedit, gkautomate
6,941

edits

Navigation menu