public CountButton(int x, int y, int width, int min, int max, int step, int value) {
		super(x, y, width, 32);
		this.min = min;
		this.max = max;
		this.step = step;
		this.value = value;
		
		minus = new ArrowButton(x, y, 326, 16);
		minus.addClickEvent(new ClickEvent() {
			@Override
			public void trigger() {
				CountButton.this.value = (CountButton.this.value - CountButton.this.step >= CountButton.this.min) ? CountButton.this.value - CountButton.this.step : CountButton.this.min;
			}
		});
		plus = new ArrowButton(x + width - 32, y, 363, 16);
		plus.addClickEvent(new ClickEvent() {
			@Override
			public void trigger() {
				CountButton.this.value = (CountButton.this.value + CountButton.this.step <= CountButton.this.max) ? CountButton.this.value + CountButton.this.step : CountButton.this.max;
			}
		});
	}