Changes

no edit summary
Line 6: Line 6:  
local ShipBattleCardKai = ShipAsset{
 
local ShipBattleCardKai = ShipAsset{
 
_battle_card_size = "160x40px",
 
_battle_card_size = "160x40px",
 +
_battle_card_size_hd = "240x60px",
 
_battle_card_layers = {
 
_battle_card_layers = {
 
takoyaki = {image = "Hell plane 2.png", style = {top = "5px", left = "50px"}, size = "30x30px"},
 
takoyaki = {image = "Hell plane 2.png", style = {top = "5px", left = "50px"}, size = "30x30px"},
Line 68: Line 69:     
function ShipBattleCardKai:get_source(ship, args)
 
function ShipBattleCardKai:get_source(ship, args)
return args.damaged and ship:battle_card_damaged() or ship:battle_card()
+
return args.damaged and ship:battle_card_damaged(args.hd) or ship:battle_card(args.hd)
 
end
 
end
   Line 79: Line 80:  
args[1] = self:get_source(ship, args)
 
args[1] = self:get_source(ship, args)
 
if not args.size then
 
if not args.size then
args.size = self._battle_card_size
+
args.size = args.hd and self._battle_card_size_hd or self._battle_card_size
 
end
 
end
 
if not args.caption then
 
if not args.caption then
cssedit, gkautomate
7,064

edits