Search in sources :

Example 1 with COLOR_THEME

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<>());
    }
}
Also used : COLOR_THEME(main.content.CONTENT_CONSTS.COLOR_THEME)

Example 2 with COLOR_THEME

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;
}
Also used : COLOR_THEME(main.content.CONTENT_CONSTS.COLOR_THEME) EnumMaster(main.system.auxiliary.EnumMaster) Dungeon(eidolons.game.battlecraft.logic.dungeon.universal.Dungeon) Color(com.badlogic.gdx.graphics.Color) Structure(eidolons.entity.obj.Structure)

Aggregations

COLOR_THEME (main.content.CONTENT_CONSTS.COLOR_THEME)2 Color (com.badlogic.gdx.graphics.Color)1 Structure (eidolons.entity.obj.Structure)1 Dungeon (eidolons.game.battlecraft.logic.dungeon.universal.Dungeon)1 EnumMaster (main.system.auxiliary.EnumMaster)1