- 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
Line 58:
Line 58:
+
+
Line 93:
Line 95:
+
+
+
+
+
+
+
+
+
+
+
+
+
Line 115:
Line 130:
− +
no edit summary
|}]],
|}]],
_abyssal_class = "Abyssal",
_abyssal_class = "Abyssal",
_common_background_color = "darkgrey",
_background_color = "grey",
_background_color = "grey",
_rare_background_color = "maroon",
_link_color = "black",
_link_color = "black",
_text_shadow_template = "0 0 ${radius} ${color}",
_text_shadow_template = "0 0 ${radius} ${color}",
function EnemyShipInfoKai:bg_color()
function EnemyShipInfoKai:bg_color()
local rarity = self._ship:rarity()
local bg_color
if rarity then
if rarity >= 4 and rarity <= 7 then
bg_color = self._background_color
elseif rarity < 4 then
bg_color = self._common_background_color
else
bg_color = self._rare_background_color
end
else
bg_color = self._common_background_color
end
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)
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})
end
end
self._vars.top_bg_color, self._vars.text_shadow = self._background_color, table.concat(text_shadows, ", ")
self._vars.top_bg_color, self._vars.text_shadow = bg_color, table.concat(text_shadows, ", ")
end
end