• 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
m
no edit summary
Line 117: Line 117:  
             row1, row2, row3, row4 = {}, {}, {}, {}
 
             row1, row2, row3, row4 = {}, {}, {}, {}
 
         end
 
         end
 +
    end
 +
end
 +
 +
 +
function NanaminFleet:create_data_rows()
 +
    for _, item in ipairs(self._items) do
 +
        local row_values = {}
 +
        for _, column in ipairs(self._columns) do
 +
            local value = self[column](self, item)
 +
            if value then
 +
                row_values[column] = value
 +
                row_values[column].rowspan = item.class ~= nil and 4 or 1
 +
                row_values[column].colspan = 1
 +
            end
 +
        end
 +
        table.insert(self._data_rows, row_values)
 
     end
 
     end
 
end
 
end
    
return NanaminFleet
 
return NanaminFleet
48

edits

Navigation menu