• 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
Generalize align, omit special stat
Line 18: Line 18:  
_column_header_cell_template = "!${value}",
 
_column_header_cell_template = "!${value}",
 
_column_cell_templates = {
 
_column_cell_templates = {
name = [[| colspan="1" rowspan="${rowspan}" style="background-color: ${bg_color};" |${values.name}<br />${values.icon} ${values.japanese_name}]]
+
name = [[| colspan="1" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color};" |${values.name}<br />${values.icon} ${values.japanese_name}]]
 
},
 
},
 
_icons = {
 
_icons = {
Line 76: Line 76:  
ammo = "palegoldenrod",
 
ammo = "palegoldenrod",
 
},
 
},
_cell = [[| colspan="1" rowspan="${rowspan}" style="text-align:center; background-color: ${bg_color};" |${values.value}]],
+
_cell = [[| colspan="1" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color};" |${values.value}]],
 
_transparent = "transparent",
 
_transparent = "transparent",
 +
_start_align = "start",
 +
_center_align = "center",
 
_notes_suffix = "_notes",
 
_notes_suffix = "_notes",
 
_stats_column_label = "Stats",
 
_stats_column_label = "Stats",
Line 90: Line 92:     
function EquipmentListKai:id(equipment)
 
function EquipmentListKai:id(equipment)
return {values = {value = Formatting:format_stat(equipment:id())}, bg_color = self._transparent}
+
return {values = {value = Formatting:format_stat(equipment:id())}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
    
function EquipmentListKai:stars(equipment)
 
function EquipmentListKai:stars(equipment)
return {values = {value = Formatting:format_stars(equipment:stars())}, bg_color = self._transparent}
+
return {values = {value = Formatting:format_stars(equipment:stars())}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
   Line 103: Line 105:  
},  
 
},  
 
bg_color = self._transparent,
 
bg_color = self._transparent,
 +
text_align = self._start_align,
 
}
 
}
 
end
 
end
    
function EquipmentListKai:equipment_type(equipment)
 
function EquipmentListKai:equipment_type(equipment)
return {values = {value = Formatting:format_equipment_type(equipment:type())}, bg_color = self._transparent}
+
return {values = {value = Formatting:format_equipment_type(equipment:type())}, bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
   Line 125: Line 128:  
luck = equipment:luck(),
 
luck = equipment:luck(),
 
range = Formatting:format_range(equipment:range()),
 
range = Formatting:format_range(equipment:range()),
 +
special = false,
 
}, "<br />"),
 
}, "<br />"),
 
},  
 
},  
bg_color = self._transparent
+
bg_color = self._transparent,
 +
text_align = self._start_align,
 
}
 
}
 
end
 
end
    
function EquipmentListKai:compatibility(equipment)
 
function EquipmentListKai:compatibility(equipment)
return {values = {value = Formatting:format_stat("placeholder2")}, bg_color = self._transparent}
+
return {values = {value = Formatting:format_stat("placeholder2")}, bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
    
function EquipmentListKai:buildable(equipment)
 
function EquipmentListKai:buildable(equipment)
return {values = {value = Formatting:format_stat(equipment:buildable())}, bg_color = self._transparent}
+
return {values = {value = Formatting:format_stat(equipment:buildable())}, bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
    
function EquipmentListKai:notes(equipment)
 
function EquipmentListKai:notes(equipment)
return {values = {value = ""}, bg_color = self._transparent}
+
return {values = {value = ""}, bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
  
Anonymous user

Navigation menu