This commit is contained in:
James Diefenbach 2024-09-09 17:36:06 +10:00
parent fe3a93c799
commit 3e6e4ebee2
2 changed files with 2 additions and 8 deletions

View File

@ -43,11 +43,10 @@ export class EggSummaryPhase extends Phase {
}
end() {
// this.scene.time.delayedCall(250, () => this.scene.setModifiersVisible(true));
this.scene.time.delayedCall(250, () => this.scene.setModifiersVisible(true));
this.scene.ui.setModeForceTransition(Mode.MESSAGE).then(() => {
console.log("ui transitioned");
super.end();
});
// console.log("phase ending");
}
}

View File

@ -91,9 +91,7 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
clear() {
super.clear();
console.log("starting to clear");
this.cursor = 0;
this.cursor = -1;
this.summaryContainer.setVisible(false);
this.pokemonIconSpritesContainer.removeAll(true);
this.pokemonIconsContainer.removeAll(true);
@ -258,11 +256,8 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
let success = false;
const error = false;
console.log("processing input" + button);
if (button === Button.CANCEL) {
const phase = this.scene.getCurrentPhase();
// ui.revertMode();
// this.clear();
if (phase instanceof EggSummaryPhase) {
phase.end();
}