Update to LXEffect enabled function
[SugarCubes.git] / _UIImplementation.pde
index 32c654e2b0f269939c1c1b5d4682de4856f5b02a..3f0c630b8fa2f37c7c0ad39cc4498fd113a0c1ac 100644 (file)
@@ -197,7 +197,7 @@ class UIOutput extends UIWindow {
     }
     
     public void onMousePressed() {
-      output.enabled.setOn(!isSelected());
+      output.enabled.setValue(!isSelected());
     }
   } 
 }
@@ -273,7 +273,7 @@ class UIMapping extends UIWindow {
       protected void onValueChange(int value) {
         mappingTool.setChannel(value-1);
       }
-    }).setRange(0, mappingTool.numChannels()).addToContainer(this);
+    }).setRange(1, mappingTool.numChannels()).addToContainer(this);
     yp += 24;
     
     new UILabel(4, yp+8, w-10, 20).setLabel("CUBE ID").addToContainer(this);
@@ -282,7 +282,7 @@ class UIMapping extends UIWindow {
       protected void onValueChange(int value) {
         mappingTool.setCube(value-1);
       }
-    }).setRange(1, glucose.model.cubes.size()).addToContainer(this);
+    }).setRange(1, model.cubes.size()).addToContainer(this);
     yp += 24;
     
     yp += 10;