Unwanted "default" tab in controlP5 library
in
Contributed Library Questions
•
2 years ago
Hey, I'm having a little trouble. I'm trying to add some tabs to a window. They're added ok, but I also get a "default" tab proceeding them:
A snippet of my code:
A snippet of my code:
- ControlP5 controlP5 = new ControlP5(this);
- // add a new controller window.
- ControlWindow cw = controlP5.addControlWindow("Controls", 250, 250);
- cw.setLocation(10, 10);
- cw.hideCoordinates();
- // add some tabs
- cw.addTab("noise");
- cw.addTab("cliffs");
- // start adding controls to noise tab
- controlP5.begin(controlP5.getTab("noise"), 20, 20);
- controlP5.addSlider("division width", 0, 30).linebreak();
- controlP5.addSlider("noise height", 0, height).linebreak();
- controlP5.addSlider("noise factor", 0, 0.1f).linebreak();
- controlP5.addSlider("noise detail", 0, 10).linebreak();
- controlP5.end();
What have I missed in the way I did this? I'm sure it's something silly.
1