- 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 42:
Line 42:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Line 191:
Line 206:
− +
no edit summary
"range",
"range",
},
},
_stat_colors = {
firepower = "lightcoral",
torpedo = "lightskyblue",
bombing = "firebrick",
aa = "sandybrown",
asw = "#9C8FEE",
los = "aquamarine",
luck = "palegreen",
armor = "#F2E279",
shelling_accuracy = "steelblue",
evasion = "violet",
speed = "#72E6E6",
range = "lightseagreen",
},
_column_header_cell_template = [[! style="background-color: ${bg_color};" | ${value}]],
_stats_column_label = "Stats",
_stats_column_label = "Stats",
}
}
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
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column], caption = Formatting:format_stat_name(column)}})
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column], caption = Formatting:format_stat_name(column)}, bg_color = self._stat_colors[column]})
else
else
for _, row_values in ipairs(self._data_rows) do
for _, row_values in ipairs(self._data_rows) do