X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_UIImplementation.pde;h=ae61d30a94870a2b2c09c0dfc6c994ccf4740f36;hb=9692dc7b2916817381bae28bf81abc50ef6d8bfa;hp=226c68a124655f5312c8d2fdcb58734e25086d96;hpb=a8d55ade10d68a95188105282c2c453816b20708;p=SugarCubes.git diff --git a/_UIImplementation.pde b/_UIImplementation.pde index 226c68a..ae61d30 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); @@ -490,7 +491,12 @@ class UIMidi extends UIWindow { 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); + (deckMode = new UIToggleSet(4, 110, 90, 20)).setOptions(new String[] { "A", "B" }).addToContainer(this); + (logMode = new UIButton(98, 110, w-103, 20)).setLabel("LOG").addToContainer(this); + } + + public boolean logMidi() { + return logMode.isActive(); } public Engine.Deck getFocusedDeck() {