Search in sources :

Example 1 with GRAPHIC_OPTION

use of eidolons.system.options.GraphicsOptions.GRAPHIC_OPTION in project Eidolons by IDemiurge.

the class OptionsMaster method applyGraphicsOptions_.

// OR LET THOSE CLASSES GET() OPTIONS?
private static void applyGraphicsOptions_(GraphicsOptions graphicsOptions) {
    for (Object sub : graphicsOptions.getValues().keySet()) {
        new EnumMaster<GRAPHIC_OPTION>().retrieveEnumConst(GRAPHIC_OPTION.class, graphicsOptions.getValues().get(sub).toString());
        GRAPHIC_OPTION key = graphicsOptions.getKey((sub.toString()));
        if (key == null)
            continue;
        String value = graphicsOptions.getValue(key);
        boolean bool = Boolean.valueOf(value.toLowerCase());
        try {
            applyOption(key, value, bool);
        } catch (Exception e) {
            main.system.ExceptionMaster.printStackTrace(e);
        }
    }
}
Also used : GRAPHIC_OPTION(eidolons.system.options.GraphicsOptions.GRAPHIC_OPTION)

Aggregations

GRAPHIC_OPTION (eidolons.system.options.GraphicsOptions.GRAPHIC_OPTION)1