• 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
m
no edit summary
Line 12: Line 12:  
     !AS]],
 
     !AS]],
 
     _column_cell_templates = {
 
     _column_cell_templates = {
         node = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: center; background-color: ${bg_color};" |${values.node} ${values.time}]],
+
         node = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: center; color: ${color};" |${values.node} ${values.time}]],
 
         formation = [[| style="background-color: ${bg_color}" |${values.formation}]],
 
         formation = [[| style="background-color: ${bg_color}" |${values.formation}]],
 
         fleet = [[| style="background-color: ${bg_color}" |${values.fleet}]],
 
         fleet = [[| style="background-color: ${bg_color}" |${values.fleet}]],
Line 31: Line 31:  
     _day_battle_color = "yellow",
 
     _day_battle_color = "yellow",
 
     _night_battle_color = "purple",
 
     _night_battle_color = "purple",
 +
    _boss_battle_color = "red",
 
})
 
})
    
function NodeInfo:node(row)
 
function NodeInfo:node(row)
     return { values = { node = row.node, time = row.time }, bg_color = self._column_bg_colors.node }
+
    local color = "initial"
 +
    if row.boss then
 +
        color = self._boss_battle_color
 +
    elseif row.time == "(Day)" then
 +
        color = self._day_battle_color
 +
    elseif row.time == "(Night)" then
 +
        color = self._night_battle_color
 +
    end
 +
     return { values = { node = row.node, time = row.time }, color = color }
 
end
 
end
  
48

edits

Navigation menu