• 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 custom row handling override hook
Line 224: Line 224:  
end
 
end
 
else
 
else
table.insert(self._rows,
+
self:append_custom_row(row_values)
format{self._cell,
  −
colspan = #self._columns, rowspan = 1,
  −
text_align = self._args[self._custom_row_prefix .. row_values .. self._text_align_suffix] or self._start_align,
  −
bg_color = self._args[self._custom_row_prefix .. row_values .. self._bg_color_suffix] or self._transparent,
  −
values = {
  −
value = self._args[self._custom_row_prefix .. row_values .. self._content_suffix] or "",
  −
},
  −
}
  −
)
   
end
 
end
 
end
 
end
 +
end
 +
 +
function BaseTable:append_custom_row(custom_row_key)
 +
table.insert(self._rows,
 +
format{self._column_cell_templates["!"] or self._cell,
 +
colspan = #self._columns, rowspan = 1,
 +
text_align = self._args[self._custom_row_prefix .. custom_row_key .. self._text_align_suffix] or self._start_align,
 +
bg_color = self._args[self._custom_row_prefix .. custom_row_key .. self._bg_color_suffix] or self._transparent,
 +
values = {
 +
value = self._args[self._custom_row_prefix .. custom_row_key .. self._content_suffix] or "",
 +
},
 +
}
 +
)
 
end
 
end
  
Anonymous user

Navigation menu