Search in sources :

Example 1 with DrawableValue

use of com.talosvfx.talos.runtime.values.DrawableValue in project talos by rockbite.

the class RibbonModule method defineSlots.

@Override
protected void defineSlots() {
    mainDrawableValue = (DrawableValue) createInputSlot(MAIN_REGION, new DrawableValue());
    ribbonDrawableValue = (DrawableValue) createInputSlot(RIBBON_REGION, new DrawableValue());
    thicknessValue = createInputSlot(THICKNESS);
    transparencyValue = createInputSlot(TRANSPARENCY);
    colorValue = createInputSlot(COLOR);
    RibbonRenderer renderer = new RibbonRenderer();
    outputValue = (DrawableValue) createOutputSlot(OUTPUT, new DrawableValue());
    outputValue.setDrawable(renderer);
}
Also used : RibbonRenderer(com.talosvfx.talos.runtime.render.drawables.RibbonRenderer) DrawableValue(com.talosvfx.talos.runtime.values.DrawableValue)

Example 2 with DrawableValue

use of com.talosvfx.talos.runtime.values.DrawableValue in project talos by rockbite.

the class ShadedSpriteModule method defineSlots.

@Override
protected void defineSlots() {
    outputValue = (DrawableValue) createOutputSlot(OUTPUT, new DrawableValue());
    outputValue.setDrawable(new ShadedDrawable());
}
Also used : ShadedDrawable(com.talosvfx.talos.runtime.render.drawables.ShadedDrawable) DrawableValue(com.talosvfx.talos.runtime.values.DrawableValue)

Example 3 with DrawableValue

use of com.talosvfx.talos.runtime.values.DrawableValue in project talos by rockbite.

the class TextureModule method defineSlots.

@Override
protected void defineSlots() {
    outputValue = (DrawableValue) createOutputSlot(OUTPUT, new DrawableValue());
    userDrawable = new DrawableValue();
    userDrawable.setEmpty(true);
}
Also used : DrawableValue(com.talosvfx.talos.runtime.values.DrawableValue)

Example 4 with DrawableValue

use of com.talosvfx.talos.runtime.values.DrawableValue in project talos by rockbite.

the class NinePatchModule method defineSlots.

@Override
protected void defineSlots() {
    inputDrawable = (DrawableValue) createInputSlot(INPUT, new DrawableValue());
    NinePatchDrawable patchDrawable = new NinePatchDrawable();
    outputValue = (DrawableValue) createOutputSlot(OUTPUT, new DrawableValue());
    outputValue.setDrawable(patchDrawable);
}
Also used : DrawableValue(com.talosvfx.talos.runtime.values.DrawableValue) NinePatchDrawable(com.talosvfx.talos.runtime.render.drawables.NinePatchDrawable)

Example 5 with DrawableValue

use of com.talosvfx.talos.runtime.values.DrawableValue in project talos by rockbite.

the class ParticleModule method defineSlots.

@Override
protected void defineSlots() {
    drawable = (DrawableValue) createInputSlot(DRAWABLE, new DrawableValue());
    offset = createInputSlot(OFFSET);
    life = createInputSlot(LIFE);
    velocity = createInputSlot(VELOCITY);
    gravity = createInputSlot(GRAVITY);
    rotation = createInputSlot(ROTATION);
    target = createInputSlot(TARGET);
    color = createInputSlot(COLOR);
    transparency = createInputSlot(TRANSPARENCY);
    angle = createInputSlot(ANGLE);
    mass = createInputSlot(MASS);
    size = createInputSlot(SIZE);
    position = createInputSlot(POSITION);
    pivot = createInputSlot(PIVOT);
    rotation.setFlavour(NumericalValue.Flavour.ANGLE);
    angle.setFlavour(NumericalValue.Flavour.ANGLE);
}
Also used : DrawableValue(com.talosvfx.talos.runtime.values.DrawableValue)

Aggregations

DrawableValue (com.talosvfx.talos.runtime.values.DrawableValue)7 NinePatchDrawable (com.talosvfx.talos.runtime.render.drawables.NinePatchDrawable)1 PolylineRenderer (com.talosvfx.talos.runtime.render.drawables.PolylineRenderer)1 RibbonRenderer (com.talosvfx.talos.runtime.render.drawables.RibbonRenderer)1 ShadedDrawable (com.talosvfx.talos.runtime.render.drawables.ShadedDrawable)1 SpriteAnimationDrawable (com.talosvfx.talos.runtime.render.drawables.SpriteAnimationDrawable)1