• 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
Support Kai+ lines
Line 73: Line 73:  
local complete = true
 
local complete = true
   −
function insertRow(result, remodel, args, line)
+
function insertRow(result, remodel, args, line, count)
 
     local remodel_string = remodel and "/" .. remodel or ""
 
     local remodel_string = remodel and "/" .. remodel or ""
 
     local ja, en, note = args[line.name .. remodel_string], args[line.name .. remodel_string .. "/En"], args[line.name .. remodel_string .. "/Note"]
 
     local ja, en, note = args[line.name .. remodel_string], args[line.name .. remodel_string .. "/En"], args[line.name .. remodel_string .. "/Note"]
 
     local jaEn = args[line.name .. remodel_string .. "/Both"]
 
     local jaEn = args[line.name .. remodel_string .. "/Both"]
 
     local link = args[line.name .. remodel_string .. "/Link"]
 
     local link = args[line.name .. remodel_string .. "/Link"]
     if not remodel and not line.extra or jaEn or ja or en or note then
+
     if (not remodel and not line.extra or jaEn or ja or en or note) and ja ~= "hide" then
         local line_name = remodel or line.name
+
         local line_name = count == 0 and (remodel and line.name .. " (" .. remodel .. ")" or line.name) or remodel or line.name
 
         local ja_style = not jaEn and (not ja or ja == "" or ja == "?") and templates.incomplete_style
 
         local ja_style = not jaEn and (not ja or ja == "" or ja == "?") and templates.incomplete_style
 
         local en_style = not jaEn and (not en or en == "" or en == "?") and templates.incomplete_style
 
         local en_style = not jaEn and (not en or en == "" or en == "?") and templates.incomplete_style
Line 88: Line 88:  
         table.insert(result, format{
 
         table.insert(result, format{
 
             templates.row,
 
             templates.row,
             style = remodel and templates.remodel_row_style or "",
+
             style = remodel and count > 0 and templates.remodel_row_style or "",
 
             audio_button = args.no_audio and "" or format{
 
             audio_button = args.no_audio and "" or format{
 
                 templates.audio_button,
 
                 templates.audio_button,
Line 117: Line 117:  
     table.insert(result, format{templates.header, note_style = args.note_style or ""})
 
     table.insert(result, format{templates.header, note_style = args.note_style or ""})
 
     for _, line in pairs(lines) do
 
     for _, line in pairs(lines) do
         local added = insertRow(result, nil, args, line)
+
         local added = insertRow(result, nil, args, line, 0)
         added = added + insertRow(result, "Kai", args, line)
+
         added = added + insertRow(result, "Kai", args, line, added)
         added = added + insertRow(result, "Kai Ni", args, line)
+
         added = added + insertRow(result, "Kai Ni", args, line, added)
 
         if line.note and added > 0 then
 
         if line.note and added > 0 then
 
             table.insert(result, format{templates.note, note = line.note})
 
             table.insert(result, format{templates.note, note = line.note})
cssedit, gkautomate
7,064

edits

Navigation menu