Changes

Nooo stretchy. Stretchy no good.
Line 134: Line 134:  
_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",
Line 214: Line 215:     
function EnemyShipInfoKai:image()
 
function EnemyShipInfoKai:image()
self._vars.image = ShipGraphicKai:get{ship = self._ship, size = self._args.cg_size or self._cg_size}
   
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
Anonymous user