- 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 134:
Line 134:
+
Line 214:
Line 215:
− self._vars.image = ShipGraphicKai:get{ship = self._ship, size = self._args.cg_size or self._cg_size}
− +
− +
+
+
Nooo stretchy. Stretchy no good.
_link_color_template = [[<span style="color: ${color};">${text}</span>]],
_link_color_template = [[<span style="color: ${color};">${text}</span>]],
_cg_size = "300x300px",
_cg_size = "300x300px",
_tabber_cg_size = "294x294px",
_display_flex = "flex",
_display_flex = "flex",
_display_none = "none",
_display_none = "none",
function EnemyShipInfoKai:image()
function EnemyShipInfoKai:image()
if self._ship:can_debuff() then
if self._ship:can_debuff() then
local tabber = Tabber()
local tabber = Tabber()
tabber:add_tab("Normal", self._vars.image)
tabber:add_tab("Normal", ShipGraphicKai:get{ship = self._ship, size = self._args.cg_size or self._tabber_cg_size})
tabber:add_tab("Armor Broken", ShipGraphicKai:get{ship = self._ship, damaged = true, size = self._args.cg_size or self._cg_size})
tabber:add_tab("Armor Broken", ShipGraphicKai:get{ship = self._ship, damaged = true, size = self._args.cg_size or self._tabber_cg_size})
self._vars.image = tostring(tabber)
self._vars.image = tostring(tabber)
else
self._vars.image = ShipGraphicKai:get{ship = self._ship, size = self._args.cg_size or self._cg_size}
end
end
end
end