//Screen for when you complete a successful order.
//Imported from my JavaGame project.
public class WinScreen extends Scene {
  
  public WinScreen() {
    addChild( new NavButton(width/2 - 150, height/2 + 200, 200, 50, CENTER, "Back to Menu", 24).setVal(0) );
    addChild( new NavButton(width/2 + 150, height/2 + 200, 200, 50, CENTER, "Play Again", 24).setVal(1) );
  }
  
  public void ready() {
    
  }
  
  public void process() {
    textAlign(CENTER);
    textSize(36);
    text(winner + " win!", width/2, 200);
    textSize(24);
  }
  
}
