- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Module:EquipmentCardListKai"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
_column_count = 5, | _column_count = 5, | ||
_row_starter = nil, | _row_starter = nil, | ||
− | sum_hack = true, | + | -- _header = nil, |
+ | _header_template = nil, | ||
+ | -- sum_hack = true, | ||
} | } | ||
Revision as of 04:19, 22 June 2020
Documentation for this module may be created at Module:EquipmentCardListKai/doc
local CardList = require('Module:CardList')
local Equipment = require('Module:Equipment')
local EquipmentCardKai = require('Module:EquipmentCardKai')
local Formatting = require('Module:Formatting')
local EquipmentCardListKai = CardList{
_item_class = Equipment,
_blank = "Empty equipment card slot.png",
_default_size = EquipmentCardKai._card_size,
_column_count = 5,
_row_starter = nil,
-- _header = nil,
_header_template = nil,
-- sum_hack = true,
}
function EquipmentCardListKai:process_item_key(item_key)
return item_key
end
function EquipmentCardListKai:card(equipment)
local value
if equipment == false then
value = Formatting:format_image{self._blank, size = self._size}
else
value = EquipmentCardKai:get{equipment = equipment, size = self._size, link = equipment:link(), caption = equipment:name()}
end
return {values = {value = value}, bg_color = self._transparent, text_align = self._center_align}
end
return EquipmentCardListKai