mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 22:02:18 +02:00
touchup
This commit is contained in:
parent
fe3a93c799
commit
3e6e4ebee2
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user