Removed some more debug messages.

This commit is contained in:
Wlowscha 2025-01-04 19:58:24 +01:00
parent 25e23decd4
commit 52e2a673e8
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
3 changed files with 1 additions and 7 deletions

View File

@ -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:

View File

@ -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;

View File

@ -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) {