public UIBlendMode(float x, float y, float w, float h) {
super(lx.ui, "BLEND MODE", x, y, w, h);
List<UIScrollList.Item> items = new ArrayList<UIScrollList.Item>();
public UIBlendMode(float x, float y, float w, float h) {
super(lx.ui, "BLEND MODE", x, y, w, h);
List<UIScrollList.Item> items = new ArrayList<UIScrollList.Item>();
items.add(new TransitionScrollItem(t));
}
final UIScrollList tList;
(tList = new UIScrollList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 60)).setItems(items).addToContainer(this);
items.add(new TransitionScrollItem(t));
}
final UIScrollList tList;
(tList = new UIScrollList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 60)).setItems(items).addToContainer(this);
class TransitionScrollItem extends UIScrollList.AbstractItem {
private final LXTransition transition;
class TransitionScrollItem extends UIScrollList.AbstractItem {
private final LXTransition transition;
public UICrossfader(float x, float y, float w, float h) {
super(lx.ui, "CROSSFADER", x, y, w, h);
public UICrossfader(float x, float y, float w, float h) {
super(lx.ui, "CROSSFADER", x, y, w, h);
- new UISlider(4, UIWindow.TITLE_LABEL_HEIGHT, w-9, 32).setParameter(lx.engine.getDeck(GLucose.RIGHT_DECK).getFader()).addToContainer(this);
+ new UISlider(4, UIWindow.TITLE_LABEL_HEIGHT, w-9, 32).setParameter(lx.engine.getDeck(RIGHT_DECK).getFader()).addToContainer(this);
(displayMode = new UIToggleSet(4, UIWindow.TITLE_LABEL_HEIGHT + 36, w-9, 20)).setOptions(new String[] { "A", "COMP", "B" }).setValue("COMP").addToContainer(this);
}
(displayMode = new UIToggleSet(4, UIWindow.TITLE_LABEL_HEIGHT + 36, w-9, 20)).setOptions(new String[] { "A", "COMP", "B" }).setValue("COMP").addToContainer(this);
}
int yp = UIWindow.TITLE_LABEL_HEIGHT;
List<UIScrollList.Item> items = new ArrayList<UIScrollList.Item>();
int yp = UIWindow.TITLE_LABEL_HEIGHT;
List<UIScrollList.Item> items = new ArrayList<UIScrollList.Item>();
- for (LXEffect fx : glucose.lx.getEffects()) {
- items.add(new FXScrollItem(fx));
+ int i = 0;
+ for (LXEffect fx : effectsArr) {
+ items.add(new FXScrollItem(fx, i++));
}
final UIScrollList effectsList = new UIScrollList(1, yp, w-2, 60).setItems(items);
effectsList.addToContainer(this);
}
final UIScrollList effectsList = new UIScrollList(1, yp, w-2, 60).setItems(items);
effectsList.addToContainer(this);
- GLucose.EffectListener fxListener = new GLucose.EffectListener() {
- public void effectSelected(LXEffect effect) {
+ LXParameterListener fxListener = new LXParameterListener() {
+ public void onParameterChanged(LXParameter parameter) {