- Better place for a comment.

This commit is contained in:
Agetian
2014-02-15 17:12:17 +00:00
parent bcac77bd0d
commit dbabf696ce

View File

@@ -357,13 +357,14 @@ public enum TargetingOverlay {
Graphics2D g2d = (Graphics2D) g; Graphics2D g2d = (Graphics2D) g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
// Get arrow colors from the theme or use default colors if the theme does not have them defined
Color colorOther = FSkin.getColor(FSkin.Colors.CLR_NORMAL_TARGETING_ARROW).getColor(); Color colorOther = FSkin.getColor(FSkin.Colors.CLR_NORMAL_TARGETING_ARROW).getColor();
if (colorOther.getAlpha() == 0) { if (colorOther.getAlpha() == 0) {
colorOther = FSkin.getColor(FSkin.Colors.CLR_ACTIVE).alphaColor(153).getColor(); colorOther = FSkin.getColor(FSkin.Colors.CLR_ACTIVE).alphaColor(153).getColor();
} }
Color colorCombat = FSkin.getColor(FSkin.Colors.CLR_COMBAT_TARGETING_ARROW).getColor(); Color colorCombat = FSkin.getColor(FSkin.Colors.CLR_COMBAT_TARGETING_ARROW).getColor();
if (colorCombat.getAlpha() == 0) { if (colorCombat.getAlpha() == 0) {
colorCombat = new Color(255, 0, 0, 153); // default color if the theme does not have it defined colorCombat = new Color(255, 0, 0, 153);
} }
drawArcs(g2d, colorOther, arcsOther); drawArcs(g2d, colorOther, arcsOther);