Update Phaser version

This commit is contained in:
Flashfyre committed 2023-11-10 16:41:02 -05:00
1 parent 83fae68abf
commit 55a61158cf
6 files changed
+29 -26

No files matched your search

+15 -16
View File
@@ -255,23 +255,22 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
onComplete: () => options.forEach(o => o.destroy())
});
if (this.transferButtonContainer.visible) {
this.scene.tweens.add({
targets: [ this.rerollButtonContainer, this.transferButtonContainer ],
alpha: 0,
duration: 250,
ease: 'Cubic.easeIn',
onComplete: () => {
if (!this.options.length) {
this.rerollButtonContainer.setVisible(false);
this.transferButtonContainer.setVisible(false);
} else {
this.rerollButtonContainer.setAlpha(1);
this.transferButtonContainer.setAlpha(1);
[ this.rerollButtonContainer, this.transferButtonContainer ].forEach(container => {
if (container.visible) {
this.scene.tweens.add({
targets: container,
alpha: 0,
duration: 250,
ease: 'Cubic.easeIn',
onComplete: () => {
if (!this.options.length)
container.setVisible(false);
else
container.setAlpha(1);
}
}
})
}
});
}
});
}
eraseCursor() {
+1 -1
View File
@@ -221,7 +221,7 @@ export default class PartyUiHandler extends MessageUiHandler {
let filterResult: string;
if (option !== PartyOption.TRANSFER && option !== PartyOption.SPLICE) {
filterResult = (this.selectFilter as PokemonSelectFilter)(pokemon);
if (option === PartyOption.TRANSFER && filterResult === null && this.partyUiMode === PartyUiMode.MOVE_MODIFIER)
if (filterResult === null && this.partyUiMode === PartyUiMode.MOVE_MODIFIER)
filterResult = this.moveSelectFilter(pokemon.moveset[this.optionsCursor]);
} else {
const transferPokemon = this.scene.getParty()[this.transferCursor];