public Button(int x, int y, int id, boolean hidden, boolean imageBg, String text, Font font){
		if(text.length() > 12) throw new RuntimeException("Button text length is greater than 12.");
		this.x = x;
		this.y = y;
		this.id = id;
		this.hidden = hidden;
		this.imageBg = imageBg;
		this.text = text;	
		this.font = font;
		this.image = null;

		w = text.length() * font.getSPACING();
		h = 20;
	}