use of com.talosvfx.talos.editor.widgets.FloatInputWidget in project talos by rockbite.
the class StaticValueModuleWrapper method configureSlots.
@Override
protected void configureSlots() {
floatInput = new FloatInputWidget("Number", getSkin());
contentWrapper.add(floatInput).left().padLeft(4);
contentWrapper.add().expandX();
addOutputSlot("output", 0);
floatInput.setListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
float value = floatInput.getValue();
module.setStaticValue(value);
}
});
}
use of com.talosvfx.talos.editor.widgets.FloatInputWidget in project talos by rockbite.
the class RibbonModuleWrapper method configureSlots.
@Override
protected void configureSlots() {
addInputSlot("main texture", RibbonModule.MAIN_REGION);
addInputSlot("ribbon texture", RibbonModule.RIBBON_REGION);
addInputSlot("thickness", RibbonModule.THICKNESS);
addInputSlot("transparency", RibbonModule.TRANSPARENCY);
addInputSlot("color", RibbonModule.COLOR);
addOutputSlot("output", RibbonModule.OUTPUT);
detailCount = new IntegerInputWidget("detail count:", getSkin());
detailCount.setValue(20);
leftWrapper.add(detailCount).left().expandX().row();
detailCount.setListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
module.setDetailCount(detailCount.getValue());
}
});
memoryDuration = new FloatInputWidget("memory:", getSkin());
memoryDuration.setValue(1);
leftWrapper.add(memoryDuration).left().expandX().padLeft(3);
memoryDuration.setListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
module.setMemoryDuration(memoryDuration.getValue());
}
});
}
use of com.talosvfx.talos.editor.widgets.FloatInputWidget in project talos by rockbite.
the class FlipbookModuleWrapper method configureSlots.
@Override
protected void configureSlots() {
super.configureSlots();
dropWidget = new TextureDropWidget<AbstractModule>(defaultRegion, getSkin(), 100f);
addInputSlot("phase", FlipbookModule.PHASE);
rows = new IntegerInputWidget("Rows", getSkin());
cols = new IntegerInputWidget("Cols", getSkin());
duration = new FloatInputWidget("Duration", getSkin());
rows.setValue(1);
cols.setValue(1);
duration.setValue(1f);
leftWrapper.add(rows).padTop(5f).left().expandX().row();
leftWrapper.add(cols).left().expandX().row();
leftWrapper.add(duration).padLeft(5).left().expandX().row();
rightWrapper.add(dropWidget).size(100).right().row();
rightWrapper.add().growY().row();
addOutputSlot("output", FlipbookModule.OUTPUT);
rows.setListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
module.setRows(rows.getValue());
}
});
duration.setListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
module.duration = duration.getValue();
}
});
cols.setListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
module.setCols(cols.getValue());
}
});
}
Aggregations