Line 140: |
Line 140: |
| end | | end |
| | | |
− | function NanaminFleetKai:insert_extra(content) | + | function NanaminFleetKai:add_header(content) |
| + | table.insert(self._rows, format{self._added_cell_template, content = content, bg_color = self._extra_cells_bg }) |
| table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
− | table.insert(self._rows, format{self._added_cell_template, content = content, bg_color = self._extra_cells_bg })
| |
| end | | end |
| | | |
Line 148: |
Line 148: |
| for i = 1, #self._items, 2 do | | for i = 1, #self._items, 2 do |
| if type(self._items[i]) == "string" then | | if type(self._items[i]) == "string" then |
− | self:insert_extra(self._items[i]) | + | self:add_header(self._items[i]) |
| i = i + 1 | | i = i + 1 |
| end | | end |
Line 156: |
Line 156: |
| | | |
| if type(self._items[i + 1]) == "string" then | | if type(self._items[i + 1]) == "string" then |
− | self:insert_extra(self._items[i]) | + | self:add_header(self._items[i]) |
| i = i + 1 | | i = i + 1 |
| end | | end |
Line 180: |
Line 180: |
| table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| end | | end |
| + | end |
| + | |
| + | function NanaminFleetKai:insert_extra(content) |
| + | table.insert(self._rows, self._row_starter) |
| + | table.insert(self._rows, format{self._added_cell_template, content = content, bg_color = self._extra_cells_bg }) |
| end | | end |
| | | |