//Button for navigating between scenes.
//Imported from my JavaGame project.
public class NavButton extends Button {
  
  private int scene_val;
  
  public NavButton(int x_pos, int y_pos, int wid, int hei, int a) {
    super(x_pos, y_pos, wid, hei, a);
  }
  
  public NavButton(int x_pos, int y_pos, int wid, int hei, int a, String t, int ts) {
    super(x_pos, y_pos, wid, hei, a, t, ts);
  }
  
  public void onRelease() {
    gameManager.setCurrentScene(scene_val);
  }
  
  public Button setVal(int v) {
    scene_val = v;
    return this;
  }
  
}
