class UIBlendMode extends UIWindow {
public UIBlendMode(float x, float y, float w, float h) {
super(lx.ui, "BLEND MODE", x, y, w, h);
class UIBlendMode extends UIWindow {
public UIBlendMode(float x, float y, float w, float h) {
super(lx.ui, "BLEND MODE", x, y, w, h);
- final UIScrollList tList;
- (tList = new UIScrollList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 60)).setItems(items).addToContainer(this);
+ final UIItemList tList;
+ (tList = new UIItemList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 60)).setItems(items).addToContainer(this);
lx.engine.getDeck(RIGHT_DECK).addListener(new LXDeck.AbstractListener() {
public void faderTransitionDidChange(LXDeck deck, LXTransition transition) {
lx.engine.getDeck(RIGHT_DECK).addListener(new LXDeck.AbstractListener() {
public void faderTransitionDidChange(LXDeck deck, LXTransition transition) {
this.transition = transition;
this.label = className(transition, "Transition");
}
this.transition = transition;
this.label = className(transition, "Transition");
}
super(lx.ui, "FX", x, y, w, h);
int yp = UIWindow.TITLE_LABEL_HEIGHT;
super(lx.ui, "FX", x, y, w, h);
int yp = UIWindow.TITLE_LABEL_HEIGHT;
int i = 0;
for (LXEffect fx : effectsArr) {
items.add(new FXScrollItem(fx, i++));
}
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);
+ final UIItemList effectsList = new UIItemList(1, yp, w-2, 60).setItems(items);
super(lx.ui, "OUTPUT", x, y, w, h);
float yp = UIWindow.TITLE_LABEL_HEIGHT;
super(lx.ui, "OUTPUT", x, y, w, h);
float yp = UIWindow.TITLE_LABEL_HEIGHT;
- final UIScrollList outputs = new UIScrollList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 80);
+ final UIItemList outputs = new UIItemList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 80);
for (GrizzlyOutput grizzly : grizzlies) {
items.add(new GrizzlyScrollItem(grizzly));
grizzly.enabled.addListener(new LXParameterListener() {
for (GrizzlyOutput grizzly : grizzlies) {
items.add(new GrizzlyScrollItem(grizzly));
grizzly.enabled.addListener(new LXParameterListener() {
- new UIScrollList(1, yp, w-2, 60).setItems(Arrays.asList(new UIScrollList.Item[] {
+ new UIItemList(1, yp, w-2, 60).setItems(Arrays.asList(new UIItemList.Item[] {
new ColorScrollItem(ColorScrollItem.COLOR_RED),
new ColorScrollItem(ColorScrollItem.COLOR_GREEN),
new ColorScrollItem(ColorScrollItem.COLOR_BLUE),
new ColorScrollItem(ColorScrollItem.COLOR_RED),
new ColorScrollItem(ColorScrollItem.COLOR_GREEN),
new ColorScrollItem(ColorScrollItem.COLOR_BLUE),
super(lx.ui, "MIDI", x, y, w, h);
// Processing compiler doesn't seem to get that list of class objects also conform to interface
super(lx.ui, "MIDI", x, y, w, h);
// Processing compiler doesn't seem to get that list of class objects also conform to interface
- final UIScrollList scrollList;
- (scrollList = new UIScrollList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 100)).setItems(scrollItems).addToContainer(this);
+ final UIItemList scrollList;
+ (scrollList = new UIItemList(1, UIWindow.TITLE_LABEL_HEIGHT, w-2, 100)).setItems(scrollItems).addToContainer(this);
(deckMode = new UIToggleSet(4, 130, 90, 20) {
protected void onToggle(String value) {
midiEngine.setFocusedDeck(value == "A" ? 0 : 1);
(deckMode = new UIToggleSet(4, 130, 90, 20) {
protected void onToggle(String value) {
midiEngine.setFocusedDeck(value == "A" ? 0 : 1);