src/codeandchords/ModuleMenu.java
public void addOutsideButtons()
	{
		int	playX		= this.parent.width - 45;
		int	playY		= 15;
		int	playWidth	= 30;
		int	playHeight	= 30;

		// add play button:
		PImage[]	images	= { 
				this.parent.loadImage("playButton.png"),
				this.parent.loadImage("stopButton.png")
		};
		PImage	pauseImage	= this.parent.loadImage("pauseButton.png");

		images[0].resize(playWidth - 5, playHeight);
		images[1].resize(playWidth, playHeight);
		pauseImage.resize(playWidth, playHeight);

		this.outsideButtonsCP5.addToggle("play")
		.setPosition(playX, playY)
		.setImages(images)
		.updateSize();

		this.outsideButtonsCP5.addToggle("pause")
		.setPosition((playX - playWidth - 10), playY)
		.setImages(pauseImage, images[0])
		.updateSize()
		.setVisible(false);

		// Add hamburger and menuX:
		int	hamburgerX		= 10;
		int	hamburgerY		= 13;
		int	hamburgerWidth	= 30;
		int	hamburgerHeight	= 30;
		
		//int	menuXX			= 5;
		//int	menuXY			= 5;
		int	menuXWidth		= 15;
		
		PImage[]	hamXImages	= { 
				this.parent.loadImage("hamburger.png"),
				this.parent.loadImage("menuX.png")
		};
		hamXImages[0].resize(hamburgerWidth, hamburgerHeight);
		hamXImages[1].resize(menuXWidth, 0);


		PImage	hamburger	= this.parent.loadImage("hamburger.png");
		hamburger.resize(hamburgerWidth, hamburgerHeight);
		this.outsideButtonsCP5.addToggle
		("hamburger")
		.setPosition(hamburgerX, hamburgerY)
		.setImages(hamXImages)
		.setClickable(true)
		.moveTo("global")	// "global" means it will show in all tabs
		.updateSize();
	}
/**
	 * Adds "outside buttons": hamburger and play/pause/stop Buttons
	 */
Adds "outside buttons": hamburger and play/pause/stop Buttons
Adds " outside buttons " : hamburger and play / pause / stop Buttons
public void addOutsideButtons()
	{
		int	playX		= this.parent.width - 45;
		int	playY		= 15;
		int	playWidth	= 30;
		int	playHeight	= 30;
		PImage[]	images	= { 
				this.parent.loadImage("playButton.png"),
				this.parent.loadImage("stopButton.png")
		};
		PImage	pauseImage	= this.parent.loadImage("pauseButton.png");
		images[0].resize(playWidth - 5, playHeight);
		images[1].resize(playWidth, playHeight);
		pauseImage.resize(playWidth, playHeight);
		this.outsideButtonsCP5.addToggle("play")
		.setPosition(playX, playY)
		.setImages(images)
		.updateSize();
		this.outsideButtonsCP5.addToggle("pause")
		.setPosition((playX - playWidth - 10), playY)
		.setImages(pauseImage, images[0])
		.updateSize()
		.setVisible(false);
		int	hamburgerX		= 10;
		int	hamburgerY		= 13;
		int	hamburgerWidth	= 30;
		int	hamburgerHeight	= 30;
		int	menuXWidth		= 15;
		PImage[]	hamXImages	= { 
				this.parent.loadImage("hamburger.png"),
				this.parent.loadImage("menuX.png")
		};
		hamXImages[0].resize(hamburgerWidth, hamburgerHeight);
		hamXImages[1].resize(menuXWidth, 0);
		PImage	hamburger	= this.parent.loadImage("hamburger.png");
		hamburger.resize(hamburgerWidth, hamburgerHeight);
		this.outsideButtonsCP5.addToggle
		("hamburger")
		.setPosition(hamburgerX, hamburgerY)
		.setImages(hamXImages)
		.setClickable(true)
		.moveTo("global")	
		.updateSize();
	}
public void addOutsideButtons ( ) { int playX = this . parent . width - 45 ; int playY = 15 ; int playWidth = 30 ; int playHeight = 30 ; PImage [ ] images = { this . parent . loadImage ( "playButton.png" ) , this . parent . loadImage ( "stopButton.png" ) } ; PImage pauseImage = this . parent . loadImage ( "pauseButton.png" ) ; images [ 0 ] . resize ( playWidth - 5 , playHeight ) ; images [ 1 ] . resize ( playWidth , playHeight ) ; pauseImage . resize ( playWidth , playHeight ) ; this . outsideButtonsCP5 . addToggle ( "play" ) . setPosition ( playX , playY ) . setImages ( images ) . updateSize ( ) ; this . outsideButtonsCP5 . addToggle ( "pause" ) . setPosition ( ( playX - playWidth - 10 ) , playY ) . setImages ( pauseImage , images [ 0 ] ) . updateSize ( ) . setVisible ( false ) ; int hamburgerX = 10 ; int hamburgerY = 13 ; int hamburgerWidth = 30 ; int hamburgerHeight = 30 ; int menuXWidth = 15 ; PImage [ ] hamXImages = { this . parent . loadImage ( "hamburger.png" ) , this . parent . loadImage ( "menuX.png" ) } ; hamXImages [ 0 ] . resize ( hamburgerWidth , hamburgerHeight ) ; hamXImages [ 1 ] . resize ( menuXWidth , 0 ) ; PImage hamburger = this . parent . loadImage ( "hamburger.png" ) ; hamburger . resize ( hamburgerWidth , hamburgerHeight ) ; this . outsideButtonsCP5 . addToggle ( "hamburger" ) . setPosition ( hamburgerX , hamburgerY ) . setImages ( hamXImages ) . setClickable ( true ) . moveTo ( "global" ) . updateSize ( ) ; }
Adds "outside buttons": hamburger and play/pause/stop Buttons
Adds " outside buttons " : hamburger and play / pause / stop Buttons
// add play button: // Add hamburger and menuX: //int	menuXX			= 5; //int	menuXY			= 5; // "global" means it will show in all tabs