• 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
Add header insertion feature
Line 152: Line 152:  
self._notes = {}
 
self._notes = {}
 
for index, equipment_name in ipairs(self._args) do
 
for index, equipment_name in ipairs(self._args) do
table.insert(equipment_list, Equipment(equipment_name))
+
if equipment_name == "-" then
local note = self._args[equipment_name .. self._notes_suffix]
+
table.insert(equipment_list, "break")
if note then
+
elseif equipment_name == "#" then
self._notes[equipment_name] = note
+
table.insert(equipment_list, "header")
 +
else
 +
table.insert(equipment_list, Equipment(equipment_name))
 +
local note = self._args[equipment_name .. self._notes_suffix]
 +
if note then
 +
self._notes[equipment_name] = note
 +
end
 
end
 
end
 
end
 
end
Line 170: Line 176:     
for _, equipment in ipairs(equipment_list) do
 
for _, equipment in ipairs(equipment_list) do
local row_values = {}
+
local row_values
for _, column in ipairs(self._columns) do
+
if type(equipment) == "string" then
row_values[column] = self[column](self, equipment)
+
row_values = equipment
row_values[column].rowspan = 1
+
else
 +
for _, column in ipairs(self._columns) do
 +
row_values[column] = self[column](self, equipment)
 +
row_values[column].rowspan = 1
 +
end
 
end
 
end
 
table.insert(data_rows, row_values)
 
table.insert(data_rows, row_values)
Anonymous user

Navigation menu