Line 18: |
Line 18: |
| _row_starter = "|-", | | _row_starter = "|-", |
| _added_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |${content}]], | | _added_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |${content}]], |
− | _ship_template = [[| rowspan="4" style="background: white;" |${ship_card}]], | + | _ship_template = [[| rowspan="4" style="background: ${bg_color};" |${ship_card}]], |
| _equip_template = [[| style="background-color: ${icon_bg_color}; width: 15px;" |${equip_icon} | | _equip_template = [[| style="background-color: ${icon_bg_color}; width: 15px;" |${equip_icon} |
| | style="background-color: ${equip_bg_color}; width: 175px;text-align: center;" |${equip_link}]], | | | style="background-color: ${equip_bg_color}; width: 175px;text-align: center;" |${equip_link}]], |
| | | |
| + | _ship_card_bg = "transparent", |
| _equip_icon_bg = "#8DCDEE", | | _equip_icon_bg = "#8DCDEE", |
| _equip_bg = "#E4F3FB", | | _equip_bg = "#E4F3FB", |
Line 34: |
Line 35: |
| _hq_lvl = 0, | | _hq_lvl = 0, |
| } | | } |
| + | |
| + | function NanaminFleetKai:customize_colors() |
| + | self._ship_card_bg = self._args["ship_card_bg"] or self._ship_card_bg |
| + | self._equip_icon_bg = self._args["equip_icon_bg"] or self._equip_icon_bg |
| + | self._equip_bg = self._args["equip_bg"] or self._equip_bg |
| + | self._equip_locked_bg = self._args["equip_locked_bg"] or self._equip_locked_bg |
| + | self._extra_cells_bg = self._args["extra_cells_bg"] or self._extra_cels_bg |
| + | end |
| | | |
| function NanaminFleetKai:process_hq_level() | | function NanaminFleetKai:process_hq_level() |
Line 98: |
Line 107: |
| end | | end |
| table.insert(self._rows, format{self._ship_template, | | table.insert(self._rows, format{self._ship_template, |
| + | bg_color = self._ship_card_bg, |
| ship_card = ship_card, | | ship_card = ship_card, |
| }) | | }) |
Line 192: |
Line 202: |
| self._args = args | | self._args = args |
| | | |
| + | self:customize_colors() |
| self:process_hq_level() | | self:process_hq_level() |
| self:process_args(args) | | self:process_args(args) |