var quotenSinglePopup={create:function(t={displayScene:"none",category:"none",cbScene:"none",text:"...",callback:null,betData:null}){let e=t.displayScene;return this.sc=e,this.ePop=e.add.group(),this.popData=t,cEmitter.once("gameOver",(()=>{this.kill()}),this),this.newQuote=sData.screens.main[t.category].quoten[0],this.derTipp=0,log(),this.BGZone=e.add.zone(0,0,width,height).setOrigin(0).setInteractive().on("pointerup",(function(){})),this.popTopBG=e.add.image(centerX,centerY/2,"popupBG").setOrigin(.5).setScale(.9),this.popBottomBG=e.add.image(centerX,centerY+centerY/2,"popupBG").setOrigin(.5).setScale(.9),this.betText=e.add.text(centerX,centerY/2-150,this.popData.text,{align:"center",fontFamily:"Impact",color:"Black",stroke:"White",strokeThickness:1,fontSize:"34px",wordWrap:{width:750}}).setOrigin(.5),this.quotenText=e.add.text(centerX,centerY/2,"x 0",{align:"center",fontFamily:"Impact",color:"#FFCE06",stroke:"#C96C0B",strokeThickness:9,fontSize:"124px",wordWrap:{width:750}}).setShadow(0,4,"rgba(0,0,0,0.25)",5).setOrigin(.5),this.einsatzText=e.add.text(centerX,centerY+centerY/2,this.derTipp,{align:"center",fontFamily:"Impact",color:"Black",stroke:"White",strokeThickness:1,fontSize:"104px",wordWrap:{width:450}}).setOrigin(.5),this.increaseBtn=e.add.image(centerX+300,centerY+centerY/2,"BackBtn").setOrigin(.5),this.increaseBtn.setScale(-1,1),this.increaseBtn.setInteractive({useHandCursor:!0}),this.increaseBtn.on("pointerdown",(function(t){this.derTipp+=1,this.einsatzText.text=this.derTipp,this.updateQuote()}),this),this.increaseBtn.on("pointerover",(function(t){e.audioplayer.playSFX("ButtonHover"),this.increaseBtn.setScale(-1.2,1.2)}),this),this.increaseBtn.on("pointerout",(function(t){this.increaseBtn.setScale(-1,1)}),this),this.decreaseBtn=e.add.image(centerX-300,centerY+centerY/2,"BackBtn").setOrigin(.5),this.decreaseBtn.setInteractive({useHandCursor:!0}),this.decreaseBtn.on("pointerdown",(function(t){this.derTipp>0&&(this.derTipp-=1),this.einsatzText.text=this.derTipp,this.updateQuote()}),this),this.decreaseBtn.on("pointerover",(function(t){e.audioplayer.playSFX("ButtonHover"),this.decreaseBtn.setScale(1.2)}),this),this.decreaseBtn.on("pointerout",(function(t){this.decreaseBtn.setScale(1)}),this),this.enterBtn=e.add.image(centerX,height-100,"buttonSmall").setOrigin(.5),this.enterBtn.setInteractive({useHandCursor:!0}),this.enterBtn.on("pointerdown",(function(e){null!=t.callback&&(this.popData.cbScene[this.popData.callback.arg]=[this.popData.category,this.newQuote,this.derTipp],this.popData.cbScene.tmpFunc=new Function(this.popData.callback.func),log("this.popData.cbScene: ",this.popData.cbScene),this.popData.cbScene.tmpFunc()),this.kill()}),this),this.enterBtn.on("pointerover",(function(t){e.audioplayer.playSFX("ButtonHover"),this.enterBtn.setScale(1.2),this.enterBtnText.setScale(1.2)}),this),this.enterBtn.on("pointerout",(function(t){this.enterBtn.setScale(1),this.enterBtnText.setScale(1)}),this),this.enterBtnText=e.add.text(this.enterBtn.x,this.enterBtn.y-4,"Tipp abgeben",{align:"center",fontFamily:"Impact",color:"Black",stroke:"White",strokeThickness:1,fontSize:"34px",wordWrap:{width:450}}).setOrigin(.5),this.ePop.addMultiple([this.BGZone,this.popTopBG,this.popBottomBG,this.betText,this.quotenText,this.einsatzText,this.increaseBtn,this.decreaseBtn,this.enterBtn,this.enterBtnText]),this.ePop},updateQuote:function(){log(" > +++ quotenwette, this.derTipp: ",this.derTipp);try{this.newQuote=sData.screens.main[this.popData.category].quoten[this.derTipp][0]}catch{this.newQuote=sData.screens.main[this.popData.category].quoten.u[0]}this.quotenText.text="x"+this.newQuote,this.sc.tweens.add({targets:this.quotenText,scale:{from:1.4,to:1},ease:"Elastic.Out",repeat:0,duration:500})},kill:function(){log("KILL qs pop"),this.ePop.destroy(!0)}};
//# sourceMappingURL=index.38c195e7.js.map
