mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-28 11:12:24 +02:00
Removed some more debug messages.
This commit is contained in:
parent
25e23decd4
commit
52e2a673e8
@ -715,9 +715,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
||||
}
|
||||
break;
|
||||
case Button.CANCEL:
|
||||
console.log(this.getUi().getModeChain());
|
||||
this.getUi().revertMode();
|
||||
console.log(this.getUi().getModeChain());
|
||||
success = true;
|
||||
break;
|
||||
case Button.UP:
|
||||
|
@ -97,7 +97,7 @@ export class FilterBar extends Phaser.GameObjects.Container {
|
||||
* Position the filter dropdowns evenly across the width of the container
|
||||
*/
|
||||
private calcFilterPositions(): void {
|
||||
const paddingX = 0;
|
||||
const paddingX = 6;
|
||||
const cursorOffset = 8;
|
||||
|
||||
let totalWidth = paddingX * 2 + cursorOffset;
|
||||
|
@ -574,19 +574,15 @@ export default class UI extends Phaser.GameObjects.Container {
|
||||
revertMode(): Promise<boolean> {
|
||||
return new Promise<boolean>(resolve => {
|
||||
|
||||
console.log("logging revert", this?.modeChain?.length, this?.modeChain);
|
||||
|
||||
if (!this?.modeChain?.length) {
|
||||
return resolve(false);
|
||||
}
|
||||
|
||||
const lastMode = this.mode;
|
||||
console.log("lastmode", lastMode);
|
||||
|
||||
const doRevertMode = () => {
|
||||
this.getHandler().clear();
|
||||
this.mode = this.modeChain.pop()!; // TODO: is this bang correct?
|
||||
console.log("mode", this.mode);
|
||||
(this.scene as BattleScene).updateGameInfo();
|
||||
const touchControls = document.getElementById("touchControls");
|
||||
if (touchControls) {
|
||||
|
Loading…
Reference in New Issue
Block a user