• 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
no edit summary
Line 7: Line 7:  
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
   −
local EnemyShipListKai = BaseTable({
+
local EnemyShipListKai = BaseTable{
 
_header_template = [[! style="width: 100px;" | Card
 
_header_template = [[! style="width: 100px;" | Card
 
! style="width: 75px;" | Name
 
! style="width: 75px;" | Name
Line 38: Line 38:  
_item_class = EnemyShip,
 
_item_class = EnemyShip,
 
_fragment_prefix = "enemyshiplistkai",
 
_fragment_prefix = "enemyshiplistkai",
})
+
}
    
function EnemyShipListKai:name(ship)
 
function EnemyShipListKai:name(ship)
Line 50: Line 50:  
end
 
end
   −
function EnemyShipListKai:card(ship)
+
--function EnemyShipListKai:card(ship)
local value
+
-- local value
if ship == false then
+
-- if ship == false then
value = Formatting:format_image{self._blank, size = self._size}
+
-- value = Formatting:format_image{self._blank, size = self._size}
else
+
-- else
value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
+
-- value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
end
+
-- end
return {values = value, bg_color = self._transparent, text_align = self._center_align}
+
-- return {values = value, bg_color = self._transparent, text_align = self._center_align}
end
+
--end
    
function EnemyShipListKai:type(ship)
 
function EnemyShipListKai:type(ship)
Line 100: Line 100:  
end
 
end
   −
EnemyShipListKai.process_item_key = EnemyShip.process_item_key
+
--EnemyShipListKai.process_item_key = EnemyShip.process_item_key
   −
EnemyShipListKai.build_rows = EnemyShipListKai.build_rows_breaks_as_empty_rows
+
--EnemyShipListKai.build_rows = EnemyShipListKai.build_rows_breaks_as_empty_rows
    
function EnemyShipListKai:create_header()
 
function EnemyShipListKai:create_header()
Line 118: Line 118:  
end
 
end
 
self._header = format(self._header_template, header_icons)
 
self._header = format(self._header_template, header_icons)
 +
end
 +
 +
function EnemyShipListKai.Invoke()
 +
local args = getArgs{frame = frame:getParent()}
 +
return EnemyShipListKai:Table(args)
 
end
 
end
    
return EnemyShipListKai
 
return EnemyShipListKai
Anonymous user

Navigation menu