- 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 17:
Line 17:
− _blank_size = "134px", +
Line 23:
Line 23:
− +
− +
+
+
+
+
no edit summary
},
},
_blank = "blank.png",
_blank = "blank.png",
_default_size = ShipCardKai._card_size,
}
}
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