use of com.talosvfx.talos.runtime.render.drawables.NinePatchDrawable 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);
}
use of com.talosvfx.talos.runtime.render.drawables.NinePatchDrawable in project talos by rockbite.
the class NinePatchModule method processValues.
@Override
public void processValues() {
NinePatchDrawable patchDrawable = (NinePatchDrawable) outputValue.getDrawable();
TextureRegion region = null;
if (!inputDrawable.isEmpty() && inputDrawable.getDrawable() != null) {
region = inputDrawable.getDrawable().getTextureRegion();
}
patchDrawable.setRegion(region, getSplits());
}
use of com.talosvfx.talos.runtime.render.drawables.NinePatchDrawable in project talos by rockbite.
the class NinePatchModule method resetPatch.
public void resetPatch() {
NinePatchDrawable patchDrawable = (NinePatchDrawable) outputValue.getDrawable();
patchDrawable.resetPatch(splits);
}
Aggregations