mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-28 19:22:29 +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;
|
break;
|
||||||
case Button.CANCEL:
|
case Button.CANCEL:
|
||||||
console.log(this.getUi().getModeChain());
|
|
||||||
this.getUi().revertMode();
|
this.getUi().revertMode();
|
||||||
console.log(this.getUi().getModeChain());
|
|
||||||
success = true;
|
success = true;
|
||||||
break;
|
break;
|
||||||
case Button.UP:
|
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
|
* Position the filter dropdowns evenly across the width of the container
|
||||||
*/
|
*/
|
||||||
private calcFilterPositions(): void {
|
private calcFilterPositions(): void {
|
||||||
const paddingX = 0;
|
const paddingX = 6;
|
||||||
const cursorOffset = 8;
|
const cursorOffset = 8;
|
||||||
|
|
||||||
let totalWidth = paddingX * 2 + cursorOffset;
|
let totalWidth = paddingX * 2 + cursorOffset;
|
||||||
|
@ -574,19 +574,15 @@ export default class UI extends Phaser.GameObjects.Container {
|
|||||||
revertMode(): Promise<boolean> {
|
revertMode(): Promise<boolean> {
|
||||||
return new Promise<boolean>(resolve => {
|
return new Promise<boolean>(resolve => {
|
||||||
|
|
||||||
console.log("logging revert", this?.modeChain?.length, this?.modeChain);
|
|
||||||
|
|
||||||
if (!this?.modeChain?.length) {
|
if (!this?.modeChain?.length) {
|
||||||
return resolve(false);
|
return resolve(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
const lastMode = this.mode;
|
const lastMode = this.mode;
|
||||||
console.log("lastmode", lastMode);
|
|
||||||
|
|
||||||
const doRevertMode = () => {
|
const doRevertMode = () => {
|
||||||
this.getHandler().clear();
|
this.getHandler().clear();
|
||||||
this.mode = this.modeChain.pop()!; // TODO: is this bang correct?
|
this.mode = this.modeChain.pop()!; // TODO: is this bang correct?
|
||||||
console.log("mode", this.mode);
|
|
||||||
(this.scene as BattleScene).updateGameInfo();
|
(this.scene as BattleScene).updateGameInfo();
|
||||||
const touchControls = document.getElementById("touchControls");
|
const touchControls = document.getElementById("touchControls");
|
||||||
if (touchControls) {
|
if (touchControls) {
|
||||||
|
Loading…
Reference in New Issue
Block a user