var dialogManager;class MainMenu extends Wrapper{constructor(){super("MainMenu")}preload(){this.audioplayer=this.scene.get("Audio")}create(){this.newGameTexts=[],dialogManager=this.scene.get("DialogManager"),this.menuBG=this.add.image(0,0,"gameBG").setDisplaySize(this.sys.canvas.width,this.sys.canvas.height).setOrigin(0),this.Logo=this.add.image(centerX+6,centerY-385,"Logo"),this.startBtn=this.add.image(centerX+8,centerY+10,"sdStart"),this.startBtn.setScale(1.2),this.startBtn.setInteractive({useHandCursor:!0}),this.listenerManager(this)}update(){}listenerManager(t){this.startBtn.on("pointerover",(function(t){this.audioplayer.playSFX("ButtonHover"),this.startBtn.setDisplaySize(this.startBtn.displayWidth+10,this.startBtn.displayHeight+10)}),this),this.startBtn.on("pointerout",(function(t){this.startBtn.setDisplaySize(this.startBtn.displayWidth-10,this.startBtn.displayHeight-10)}),this),this.startBtn.on("pointerdown",(function(s){this.audioplayer.playSFX("clapSnd"),tutorialSeen?(log("Runs: "+runs),runs>9?(log("Schowing Final Gametext"),hintbox.create(t,{posX:.19*this.sys.canvas.width,posY:.3*this.sys.canvas.height,text:"Hast du schon die goldene Dauerkarte gewonnen? Komm schon, du schaffst es das nächste mal!",audioplayer:this.audioplayer,startGame:!0})):(log("Schowing Gametext"),hintbox.create(t,{posX:.19*this.sys.canvas.width,posY:.3*this.sys.canvas.height,text:sData.NewGame[runs],audioplayer:this.audioplayer,startGame:!0}),this.newGameTexts.shift())):hintboxTutorial.create(t,this.audioplayer,sData,{posX:.35*centerX,posY:centerY}),tutorialSeen=!0}),this)}}
//# sourceMappingURL=index.a090714c.js.map
