src/codeandchords/ModuleMenu.java
public void addHideButtons(int xVal, int hideY)
	{
		int	hideWidth   = ( ( this.sidebarWidth - this.leftAlign - this.rightEdgeSpacer) / 3 ) - this.spacer;

		//		int	labelX		= 10;
		int	playButtonX	= xVal + this.leftAlign;
		int	menuButtonX	= xVal + this.leftAlign + hideWidth + this.spacer;
		int	scaleX		= xVal + this.leftAlign + (+ hideWidth + this.spacer) * 2;

		String[]	names	= new String[] { 
				"playButton",
				"menuButton",
				"legend"
		};
		String[]	labels	= new String[] {
				"Play Button",
				"Menu Button",
				"Legend"
		};
		int[]	xVals	= new int[] {
				playButtonX,
				menuButtonX,
				scaleX
		};

		this.controlP5.addTextlabel("hide")
		.setPosition(this.labelX, hideY + 4)
		.setValue("Hide");

		for(int i = 0; i < names.length; i++)
		{
			this.controlP5.addToggle(names[i])
			.setPosition(xVals[i], hideY)
			.setWidth(hideWidth);
			this.controlP5.getController(names[i]).getCaptionLabel().set(labels[i]).align(ControlP5.CENTER, ControlP5.CENTER);
		}

		this.showScale = true;
	}
/**
	 * Adds "hide buttons" - hide Menu, hide Play Button, and hide Legend
	 * TODO: maybe shouldn't add them to the LandingMenu Tab every time?
	 * 
	 * @param hideY	y value at which the row will be displayed
	 */


@param hideY y value at which the row will be displayed
@param hideY y value at which the row will be displayed
public void addHideButtons(int xVal, int hideY)
	{
		int	hideWidth   = ( ( this.sidebarWidth - this.leftAlign - this.rightEdgeSpacer) / 3 ) - this.spacer;
		int	playButtonX	= xVal + this.leftAlign;
		int	menuButtonX	= xVal + this.leftAlign + hideWidth + this.spacer;
		int	scaleX		= xVal + this.leftAlign + (+ hideWidth + this.spacer) * 2;
		String[]	names	= new String[] { 
				"playButton",
				"menuButton",
				"legend"
		};
		String[]	labels	= new String[] {
				"Play Button",
				"Menu Button",
				"Legend"
		};
		int[]	xVals	= new int[] {
				playButtonX,
				menuButtonX,
				scaleX
		};
		this.controlP5.addTextlabel("hide")
		.setPosition(this.labelX, hideY + 4)
		.setValue("Hide");
		for(int i = 0; i < names.length; i++)
		{
			this.controlP5.addToggle(names[i])
			.setPosition(xVals[i], hideY)
			.setWidth(hideWidth);
			this.controlP5.getController(names[i]).getCaptionLabel().set(labels[i]).align(ControlP5.CENTER, ControlP5.CENTER);
		}
		this.showScale = true;
	}
public void addHideButtons ( int xVal , int hideY ) { int hideWidth = ( ( this . sidebarWidth - this . leftAlign - this . rightEdgeSpacer ) / 3 ) - this . spacer ; int playButtonX = xVal + this . leftAlign ; int menuButtonX = xVal + this . leftAlign + hideWidth + this . spacer ; int scaleX = xVal + this . leftAlign + ( + hideWidth + this . spacer ) * 2 ; String [ ] names = new String [ ] { "playButton" , "menuButton" , "legend" } ; String [ ] labels = new String [ ] { "Play Button" , "Menu Button" , "Legend" } ; int [ ] xVals = new int [ ] { playButtonX , menuButtonX , scaleX } ; this . controlP5 . addTextlabel ( "hide" ) . setPosition ( this . labelX , hideY + 4 ) . setValue ( "Hide" ) ; for ( int i = 0 ; i < names . length ; i ++ ) { this . controlP5 . addToggle ( names [ i ] ) . setPosition ( xVals [ i ] , hideY ) . setWidth ( hideWidth ) ; this . controlP5 . getController ( names [ i ] ) . getCaptionLabel ( ) . set ( labels [ i ] ) . align ( ControlP5 . CENTER , ControlP5 . CENTER ) ; } this . showScale = true ; }
Adds "hide buttons" - hide Menu, hide Play Button, and hide Legend
 TODO: maybe shouldn't add them to the LandingMenu Tab every time?
Adds " hide buttons " - hide Menu hide Play Button and hide Legend TODO : maybe shouldn ' t add them to the LandingMenu Tab every time?
//		int	labelX		= 10;