Set display mode from APC buttons
[SugarCubes.git] / _UIImplementation.pde
index bd303ddac38f23581015b264fa9bfef19e0b253f..ac28fd6a9a96d00d333819809d2584cb71616ca9 100644 (file)
@@ -142,6 +142,11 @@ class UICrossfader extends UIWindow {
     (displayMode = new UIToggleSet(4, titleHeight + 36, w-9, 20)).setOptions(new String[] { "A", "COMP", "B" }).setValue("COMP").addToContainer(this);
   }
   
+  public UICrossfader setDisplayMode(String value) {
+    displayMode.setValue(value);
+    return this;
+  }
+  
   public String getDisplayMode() {
     return displayMode.getValue();
   }