Search in sources :

Example 1 with EMITTER_VALUE_GROUP

use of eidolons.libgdx.anims.particles.EmitterPresetMaster.EMITTER_VALUE_GROUP in project Eidolons by IDemiurge.

the class EmitterController method modify.

private void modify(SFX_MODIFICATION_PRESET preset) {
    EMITTER_VALUE_GROUP group = getValGroup(preset);
    String val = getValue(preset);
    String modVals = (val == null) ? "" : group + EmitterPresetMaster.value_separator + val;
    EmitterActor newActor = EmitterPresetMaster.getInstance().getModifiedEmitter(last.path, true, modVals);
    if (val == null) {
        newActor.getEffect().toggle(group.getFieldName());
    }
    add(newActor, new Vector2(last.getX() + // newActor.getEffect().getBoundingBox().getWidth()
    100, last.getY()));
}
Also used : Vector2(com.badlogic.gdx.math.Vector2) EmitterActor(eidolons.libgdx.anims.particles.EmitterActor) EMITTER_VALUE_GROUP(eidolons.libgdx.anims.particles.EmitterPresetMaster.EMITTER_VALUE_GROUP)

Aggregations

Vector2 (com.badlogic.gdx.math.Vector2)1 EmitterActor (eidolons.libgdx.anims.particles.EmitterActor)1 EMITTER_VALUE_GROUP (eidolons.libgdx.anims.particles.EmitterPresetMaster.EMITTER_VALUE_GROUP)1