X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_UIImplementation.pde;h=e72d76b598976e164a04c78a0e9cb1fe7bd48627;hb=179b1fb4846e67cbbcc868ffaec59aadace5893d;hp=226c68a124655f5312c8d2fdcb58734e25086d96;hpb=a8d55ade10d68a95188105282c2c453816b20708;p=SugarCubes.git diff --git a/_UIImplementation.pde b/_UIImplementation.pde index 226c68a..e72d76b 100644 --- a/_UIImplementation.pde +++ b/_UIImplementation.pde @@ -480,7 +480,8 @@ class UISpeed extends UIWindow { class UIMidi extends UIWindow { - final private UIToggleSet deckMode; + private final UIToggleSet deckMode; + private final UIButton logMode; UIMidi(List midiListeners, float x, float y, float w, float h) { super("MIDI", x, y, w, h); @@ -489,8 +490,13 @@ class UIMidi extends UIWindow { for (MidiListener ml : midiListeners) { scrollItems.add(ml); } - new UIScrollList(1, titleHeight, w-2, 80).setItems(scrollItems).addToContainer(this); - (deckMode = new UIToggleSet(4, 110, w-9, 20)).setOptions(new String[] { "A", "B" }).addToContainer(this); + new UIScrollList(1, titleHeight, w-2, 100).setItems(scrollItems).addToContainer(this); + (deckMode = new UIToggleSet(4, 130, 90, 20)).setOptions(new String[] { "A", "B" }).addToContainer(this); + (logMode = new UIButton(98, 130, w-103, 20)).setLabel("LOG").addToContainer(this); + } + + public boolean logMidi() { + return logMode.isActive(); } public Engine.Deck getFocusedDeck() {