use of main.content.CONTENT_CONSTS.COLOR_THEME in project Eidolons by IDemiurge.
the class ImageManager method init.
public static void init() {
setPATH(PathFinder.getImagePath());
DEFAULT = "chars\\";
colorImgCache = new HashMap<>();
COLOR_THEME[] values = COLOR_THEME.values();
for (int i = 0, valuesLength = values.length; i < valuesLength; i++) {
COLOR_THEME c = values[i];
colorImgCache.put(c, new HashMap<>());
}
}
use of main.content.CONTENT_CONSTS.COLOR_THEME in project Eidolons by IDemiurge.
the class ShadeLightCell method initTeamColor.
public Color initTeamColor() {
// for each coordinate?
// default per dungeon
// Eidolons.getGame().getMaster().getObjCache()
// IlluminationRule.
COLOR_THEME colorTheme = null;
if (type == SHADE_LIGHT.LIGHT_EMITTER) {
for (Structure sub : Eidolons.game.getStructures()) {
if (sub.isLightEmitter()) {
// if (sub.getCoordinates().equals(new Coordinates(x,y)))
colorTheme = new EnumMaster<COLOR_THEME>().retrieveEnumConst(COLOR_THEME.class, sub.getProperty(PROPS.COLOR_THEME, true));
if (colorTheme != null)
break;
}
}
}
if (colorTheme == null) {
Dungeon obj = Eidolons.game.getDungeon();
colorTheme = obj.getColorTheme();
}
Color c = null;
if (colorTheme != null)
c = GdxColorMaster.getColorForTheme(colorTheme);
if (c != null)
return c;
return DEFAULT_COLOR;
}
Aggregations