Changes

boss node, final flag
Line 20: Line 20:     
     node_title_row = [[|-
 
     node_title_row = [[|-
! colspan="7" |Node ${node_label} : ${node_name} ${type}]],
+
! colspan="7" style="color:${color};" |Node ${node_label} : ${node_name}${type_suffix} ${note}]],
    
     node_pattern_row = [[|- style="background:#${background_color};"
 
     node_pattern_row = [[|- style="background:#${background_color};"
| style="text-align:center;" |${node_label}<sub>${pattern_id}</sub>
+
| style="text-align:center;color:${color};" |${node_label}<sub>${pattern_id}</sub>
 
| style="text-align:center;" |${formations_string}
 
| style="text-align:center;" |${formations_string}
 
| style="text-align:left;" |${fleet_string}
 
| style="text-align:left;" |${fleet_string}
Line 36: Line 36:     
local type_styles = {
 
local type_styles = {
     night = { type = "(Night Battle)", background_color = "BBDEFB" },
+
     night = { type_suffix = " (Night Battle)", background_color = "BBDEFB" },
     aerial = { type = "(Aerial Battle)", background_color = "C8E6C9" },
+
     aerial = { type_suffix = " (Aerial Battle)", background_color = "C8E6C9" },
     raid = { type = "(Air Raid Battle)", background_color = "81C784" },
+
     raid = { type_suffix = " (Air Raid Battle)", background_color = "81C784" },
 +
    boss = { type_suffix = " (Boss Node)", color = "red", background_color = "FFE0B2" },
 
}
 
}
   Line 49: Line 50:  
             node_label = node_data.label or "?",
 
             node_label = node_data.label or "?",
 
             node_name = node_data.name or "?",
 
             node_name = node_data.name or "?",
             type = type_style and type_style.type or "",
+
             type_suffix = type_style and type_style.type_suffix or "",
 +
            note = node_data.note or "",
 +
            color = type_style and type_style.color or "",
 
         })
 
         })
 
         if node_data.type == "empty" then
 
         if node_data.type == "empty" then
Line 87: Line 90:  
             table.insert(rows, format{
 
             table.insert(rows, format{
 
                 templates.node_pattern_row,
 
                 templates.node_pattern_row,
                 node_label = node_data.label or "?",
+
                 node_label = (pattern_data.final and "F" or "") .. (node_data.label or "?"),
 
                 pattern_id = i,
 
                 pattern_id = i,
 
                 formations_string = formations_string,
 
                 formations_string = formations_string,
Line 95: Line 98:  
                 hq = pattern_data.hq or "?",
 
                 hq = pattern_data.hq or "?",
 
                 background_color = type_style and type_style.background_color or "",
 
                 background_color = type_style and type_style.background_color or "",
 +
                color = pattern_data.final and "red" or "",
 
             })
 
             })
 
         end
 
         end
cssedit, gkautomate
7,064

edits