• 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 66: Line 66:  
"0.6em",
 
"0.6em",
 
"0.9em",
 
"0.9em",
 +
},
 +
_basic_glow_colors = {
 +
"#A0F6D9",
 +
"#8BECD5",
 
},
 
},
 
_kai_glow_colors = {
 
_kai_glow_colors = {
 
"darkturquoise",
 
"darkturquoise",
 
"dodgerblue",
 
"dodgerblue",
 +
},
 +
_late_model_basic_glow_colors = {
 +
"#E6E6E6",
 +
"#E6E6E6",
 
},
 
},
 
_late_model_glow_colors = {
 
_late_model_glow_colors = {
"lightgrey",
+
"#8BECD5",
"lightgrey",
+
"#E6E6E6",
"lightgrey",
+
"#E6E6E6",
 
},
 
},
 
_boss_glow_colors = {
 
_boss_glow_colors = {
"white",
+
"floralwhite",
"white",
+
"floralwhite",
 
},
 
},
 
_link_color_template = [[<span style="color: ${color};">${text}</span>]]
 
_link_color_template = [[<span style="color: ${color};">${text}</span>]]
Line 86: Line 94:  
local back = self._ship:back()
 
local back = self._ship:back()
 
local back_color = Formatting:format_ship_back(back)
 
local back_color = Formatting:format_ship_back(back)
 +
local glow_colors = false
 +
if back then
 +
if back == -1 then
 +
glow_colors = sel._basic_glow_colors
 +
elseif back > -7 and back < -3 then
 +
glow_colors = self._kai_glow_colors
 +
elseif back > -10 and back < -6 then
 +
glow_colors = (back == -7) and self._late_model_basic_glow_colors or self._late_model_glow_colors
 +
elseif back < -9 then
 +
glow_colors = self._boss_glow_colors
 +
end
 +
end
 
local text_shadows = {}
 
local text_shadows = {}
 
for index, radius in ipairs(self._text_shadows) do
 
for index, radius in ipairs(self._text_shadows) do
 
local color = back_color
 
local color = back_color
if back and back > -7 and back < -3 then
+
if index <= glow_colors then
if index <= #self._kai_glow_colors then
+
color = glow_colors[index]
color = self._kai_glow_colors[index]
  −
end
  −
elseif back and back > -10 and back < -6 then
  −
if index <= #self._late_model_glow_colors then
  −
color = self._late_model_glow_colors[index]
  −
end
  −
elseif back and back < -9 then
  −
if index <= #self._boss_glow_colors then
  −
color = self._boss_glow_colors[index]
  −
end
   
end
 
end
 
table.insert(text_shadows, format{self._text_shadow_template, radius = radius, color = color})
 
table.insert(text_shadows, format{self._text_shadow_template, radius = radius, color = color})
Anonymous user

Navigation menu