From 52e2a673e847b6817c34c5a0635de5624392141e Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:58:24 +0100 Subject: [PATCH] Removed some more debug messages. --- src/ui/egg-gacha-ui-handler.ts | 2 -- src/ui/filter-bar.ts | 2 +- src/ui/ui.ts | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index 4354456fe5f..b14f5381a84 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -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: diff --git a/src/ui/filter-bar.ts b/src/ui/filter-bar.ts index eeee7b90793..a02f340f88c 100644 --- a/src/ui/filter-bar.ts +++ b/src/ui/filter-bar.ts @@ -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; diff --git a/src/ui/ui.ts b/src/ui/ui.ts index 05015b72390..d5c08668f05 100644 --- a/src/ui/ui.ts +++ b/src/ui/ui.ts @@ -574,19 +574,15 @@ export default class UI extends Phaser.GameObjects.Container { revertMode(): Promise { return new Promise(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) {