• 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
Fix text-align, fix no bg color when no data
Line 64: Line 64:  
return self:name(self._left)
 
return self:name(self._left)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 72: Line 72:  
return self:name(self._right)
 
return self:name(self._right)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 80: Line 80:  
return self:firepower_mod(self._left_modernization)
 
return self:firepower_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 88: Line 88:  
return self:firepower_mod(self._right_modernization)
 
return self:firepower_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 96: Line 96:  
return self:torpedo_mod(self._left_modernization)
 
return self:torpedo_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 104: Line 104:  
return self:torpedo_mod(self._right_modernization)
 
return self:torpedo_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 112: Line 112:  
return self:aa_mod(self._left_modernization)
 
return self:aa_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 120: Line 120:  
return self:aa_mod(self._right_modernization)
 
return self:aa_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 128: Line 128:  
return self:armor_mod(self._left_modernization)
 
return self:armor_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 136: Line 136:  
return self:armor_mod(self._right_modernization)
 
return self:armor_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 144: Line 144:  
return self:luck_mod(self._left_modernization)
 
return self:luck_mod(self._left_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 152: Line 152:  
return self:luck_mod(self._right_modernization)
 
return self:luck_mod(self._right_modernization)
 
else
 
else
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._start_align}
+
return {values = {value = self._dash}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
 
end
 
end
Line 167: Line 167:     
function ShipModernizationListKai:firepower_mod(modernization)
 
function ShipModernizationListKai:firepower_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.firepower, nil, self._dash)}, bg_color = self._column_bg_colors.firepower, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.firepower, nil, self._dash)}, bg_color = modernization.firepower and self._column_bg_colors.firepower or self._transparent, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:torpedo_mod(modernization)
 
function ShipModernizationListKai:torpedo_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.torpedo, nil, self._dash)}, bg_color = self._column_bg_colors.torpedo, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.torpedo, nil, self._dash)}, bg_color = modernization.torpedo and self._column_bg_colors.torpedo or self._transparent, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:aa_mod(modernization)
 
function ShipModernizationListKai:aa_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.aa, nil, self._dash)}, bg_color = self._column_bg_colors.aa, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.aa, nil, self._dash)}, bg_color = modernization.aa and self._column_bg_colors.aa or self._transparent, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:armor_mod(modernization)
 
function ShipModernizationListKai:armor_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.armor, nil, self._dash)}, bg_color = self._column_bg_colors.armor, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.armor, nil, self._dash)}, bg_color = modernization.armor and self._column_bg_colors.armor or self._transparent, text_align = self._center_align}
 
end
 
end
    
function ShipModernizationListKai:luck_mod(modernization)
 
function ShipModernizationListKai:luck_mod(modernization)
return {values = {value = Formatting:format_bonus(modernization.luck, nil, self._dash, true)}, bg_color = self._column_bg_colors.luck, text_align = self._center_align}
+
return {values = {value = Formatting:format_bonus(modernization.luck, nil, self._dash, true)}, bg_color = modernization.luck and self._column_bg_colors.luck or self._transparent, text_align = self._center_align}
 
end
 
end
  
Anonymous user

Navigation menu