• 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
no edit summary
Line 61: Line 61:  
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
 
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
 
| style="width: 36px; height: 36px; background-color: ${color};${extra_style}" | ${icon}
 
| style="width: 36px; height: 36px; background-color: ${color};${extra_style}" | ${icon}
| colspan="4" style="width: 190px;" | ${equipment}
+
| colspan="4" style="width: 190px;" | ${equipment}${stars}
 
| style="width: 50px;" | ${slot_size}
 
| style="width: 50px;" | ${slot_size}
 
]],
 
]],
Line 422: Line 422:  
end
 
end
 
for i = 1, slots_to_show do
 
for i = 1, slots_to_show do
local disabled, equipment, size, estimation, icon, color, equipment_type = num_of_enabled_slots and i > num_of_enabled_slots
+
local disabled, equipment, stars, size, estimation, icon, color, equipment_type = num_of_enabled_slots and i > num_of_enabled_slots
 
if num_of_slots and i > num_of_slots then
 
if num_of_slots and i > num_of_slots then
 
equipment, size, estimation, icon, color, equipment_type = "- Locked -", false, false, "", 0, false
 
equipment, size, estimation, icon, color, equipment_type = "- Locked -", false, false, "", 0, false
 
else
 
else
equipment, size, estimation = self._ship:slot(i)
+
equipment, size, estimation, eqStars = self._ship:slot(i)
 
if equipment then
 
if equipment then
 
icon = equipment:icon()
 
icon = equipment:icon()
Line 432: Line 432:  
equipment_type = equipment:type()
 
equipment_type = equipment:type()
 
equipment = Formatting:format_link(equipment:link())
 
equipment = Formatting:format_link(equipment:link())
 +
if eqStars then
 +
    stars = " " .. Formatting:format_stars(eqStars)
 +
end
 
else
 
else
 
icon = disabled and "" or false
 
icon = disabled and "" or false
Line 444: Line 447:  
table.insert(slots, format{self._slot_template,  
 
table.insert(slots, format{self._slot_template,  
 
icon = icon,  
 
icon = icon,  
equipment = equipment,  
+
equipment = equipment,
 +
stars = stars or "",
 
slot_size = Formatting:format_slot_size(size, estimation),  
 
slot_size = Formatting:format_slot_size(size, estimation),  
 
color = "whitesmoke", --Formatting:format_equipment_back(color),  
 
color = "whitesmoke", --Formatting:format_equipment_back(color),  
cssedit, gkautomate
6,941

edits

Navigation menu