- 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
Line 152:
Line 152:
− +
− local note = self._args[equipment_name .. self._notes_suffix]+
− if note then+
− self._notes[equipment_name] = note+
+
+
+
+
+
+
Line 170:
Line 176:
− +
− +
− row_values[column] = self[column](self, equipment)+
− row_values[column].rowspan = 1+
+
+
+
+
Add header insertion feature
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
table.insert(equipment_list, "break")
elseif equipment_name == "#" then
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
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 = equipment
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)