- 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 27:
Line 27:
− +
− +
+
Line 54:
Line 55:
+
+
+
+
Line 211:
Line 216:
− +
− +
Line 237:
Line 242:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Add markup for detail toggle
! style="width: 24px; text-align: center; vertical-align: middle; background-color: forestgreen;" | ${fuel}
! style="width: 24px; text-align: center; vertical-align: middle; background-color: forestgreen;" | ${fuel}
! style="width: 24px; text-align: center; vertical-align: middle; background-color: darkgoldenrod;" | ${ammo}
! style="width: 24px; text-align: center; vertical-align: middle; background-color: darkgoldenrod;" | ${ammo}
! style="text-align:left;" | Notes]],
! class="eliteshipskai-detailed" style="text-align:left;" | Notes]],
_column_cell_templates = {
_column_cell_templates = {
luck = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" | ${values.luck}(${values.luck_max})]],
luck = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" | ${values.luck}(${values.luck_max})]],
id = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]],
id = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]],
notes = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |<small>${values.value}</small>]],
notes = [[| class="${class}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |<small>${values.value}</small>]],
["!"] = [[| class="${class}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]]
},
},
_columns = {
_columns = {
},
},
_no_remodel_level = "-",
_no_remodel_level = "-",
_simple_class = "eliteshipskai-simple",
_detailed_class = "eliteshipskai-detailed",
_display_none_style = " display: none;",
_detailed_columns = 1,
--_nickname_template = "<br />Nicknamed ''${nickname}''",
--_nickname_template = "<br />Nicknamed ''${nickname}''",
_item_class = Ship,
_item_class = Ship,
bg_color = self._transparent
bg_color = self._transparent
end
end
return {values = {value = note.note or ""}, bg_color = bg_color}
return {values = {value = note.note or ""}, bg_color = bg_color, class = self._detailed_class}
end
end
return {values = {value = ""}, bg_color = self._transparent}
return {values = {value = ""}, bg_color = self._transparent, class = self._detailed_class}
end
end
end
end
end
end
end
function EliteShipsKai:append_custom_row(custom_row_key)
table.insert(self._rows,
format{self._column_cell_templates["!"] or self._cell,
class = self._detailed_class,
extra_style = self._display_none_style,
colspan = #self._columns, rowspan = 1,
text_align = self._args[self._custom_row_prefix .. custom_row_key .. self._text_align_suffix] or self._start_align,
bg_color = self._args[self._custom_row_prefix .. custom_row_key .. self._bg_color_suffix] or self._transparent,
values = {
value = self._args[self._custom_row_prefix .. custom_row_key .. self._content_suffix] or "",
},
}
)
table.insert(self._rows,
format{self._column_cell_templates["!"] or self._cell,
class = self._simple_class,
colspan = #self._columns - self._detailed_columns, rowspan = 1,
text_align = self._args[self._custom_row_prefix .. custom_row_key .. self._text_align_suffix] or self._start_align,
bg_color = self._args[self._custom_row_prefix .. custom_row_key .. self._bg_color_suffix] or self._transparent,
values = {
value = self._args[self._custom_row_prefix .. custom_row_key .. self._content_suffix] or "",
},
}
)
end
end