Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:NanaminFleet
(view source)
Revision as of 11:00, 8 April 2015
133 bytes added
,
9 years ago
m
no edit summary
Line 35:
Line 35:
function NanaminFleet:ship(row)
function NanaminFleet:ship(row)
−
if
ship
== false then
+
if
row[1]
== false then
value = Formatting:format_image{self._blank, size = self._size}
value = Formatting:format_image{self._blank, size = self._size}
else
else
−
value = ShipCardKai:card{ship =
ship
, size = self._size, link =
ship
:link(), caption =
ship
:name()}
+
value = ShipCardKai:card{ship =
row[1]
, size = self._size, link =
row[1]
:link(), caption =
row[1]
:name()}
end
end
return {values = {ship_card = value}, bg_color = self._transparent, text_align = self._center_align}
return {values = {ship_card = value}, bg_color = self._transparent, text_align = self._center_align}
Line 44:
Line 44:
function NanaminFleet:ship2(row)
function NanaminFleet:ship2(row)
+
row = {row[3], row[4]}
return self:ship(row)
return self:ship(row)
end
end
Line 93:
Line 94:
end
end
end
end
−
if count % 5 == 0 then
+
if count % 5
== 1 or count % 5 == 2 then
+
table.insert(row, item)
+
end
+
if count % 10
== 0 then
table.insert(self._items, row)
table.insert(self._items, row)
row = {}
row = {}
Nanamin
48
edits