Changes

no edit summary
Line 17: Line 17:  
},
 
},
 
_blank = "blank.png",
 
_blank = "blank.png",
_blank_size = "134px",
+
_default_size = ShipCardKai._card_size,
 
}
 
}
   Line 23: Line 23:  
local value
 
local value
 
if ship == false then
 
if ship == false then
value = Formatting:format_image{self._blank, size = self._blank_size}
+
value = Formatting:format_image{self._blank, size = self._size}
 
else
 
else
value = ShipCardKai:card{ship = ship, link = ship:link(), caption = ship:name()}
+
value = ShipCardKai:card{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
 
end
 
end
 
return {values = {value = value}, bg_color = self._transparent, text_align = self._center_align}
 
return {values = {value = value}, bg_color = self._transparent, text_align = self._center_align}
 +
end
 +
 +
function BaseTable:create_table_prep()
 +
self._size = self._args.image_size or self._default_size
 
end
 
end
  
Anonymous user