• 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 25: Line 25:  
     _ship_text_template = [[| rowspan="4" style="background: ${bg_color}; text-align: center; width: 165px;" |${ship_name}]],
 
     _ship_text_template = [[| rowspan="4" style="background: ${bg_color}; text-align: center; width: 165px;" |${ship_name}]],
 
     _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}]],
 
     _equip_text_template = [[| style="background-color: ${icon_bg_color}; width: 15px; text-align: center;" | -
 
     _equip_text_template = [[| style="background-color: ${icon_bg_color}; width: 15px; text-align: center;" | -
    | 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}]],
 
      
 
      
 
     _header_bg = "#98D2F0",
 
     _header_bg = "#98D2F0",
Line 44: Line 44:  
     _hq_lvl = 0,
 
     _hq_lvl = 0,
 
}
 
}
  −
function NanaminFleetKai:customize_colors()
  −
    --[[
  −
    self._header_bg = self._args["header_bg"] or self._header_bg
  −
    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_cells_bg
  −
    ]]--
  −
    --Temporarily removing functionality because peoples' custom colors are causing eye strain for some
  −
    self._header_bg = self._header_bg
  −
    self._ship_card_bg = self._ship_card_bg
  −
    self._equip_icon_bg = self._equip_icon_bg
  −
    self._equip_bg = self._equip_bg
  −
    self._equip_locked_bg = self._equip_locked_bg
  −
    self._extra_cells_bg = self._extra_cells_bg
  −
end
      
function NanaminFleetKai:process_hq_level()
 
function NanaminFleetKai:process_hq_level()
Line 160: Line 142:  
         local equip = Equipment(Functions.process_legacy_name(entry[slot + 3]))
 
         local equip = Equipment(Functions.process_legacy_name(entry[slot + 3]))
 
         self:process_equipment(equip, select(2, ship:slot(slot)))
 
         self:process_equipment(equip, select(2, ship:slot(slot)))
         equip_icon = Formatting:format_image{ Formatting:format_equipment_icon(equip:icon()), size = "22x22px" }
+
         equip_icon = Formatting:format_image{ Formatting:format_equipment_icon(equip:icon()), size = "22x22px", link = "" }
 
         equip_bg_color = self._equip_bg
 
         equip_bg_color = self._equip_bg
 
         equip_link = Formatting:format_link(equip:link())
 
         equip_link = Formatting:format_link(equip:link())
Line 265: Line 247:  
     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)
48

edits

Navigation menu