* @throws SlickException
*/
protected void createBackButton(GameContainer container, Sound buttonSound)
throws SlickException {
TextButton button = new TextButton(
10,
10 + (this._levelButtons.size()) * (BUTTON_HEIGHT + 2),
STR_BACK,
buttonSound
);
this._buttonListener.add(button);
this._backButton = button;
button.addListener(new ClickListener() {
@Override
public void onClick(Button arg0, float arg1, float arg2) {
// enters the menu state:
_stateBasedGame.enterState(VisualBurglar.STATE_MENU);