Fixed cursor freeze bug + changed hall of fame background

This commit is contained in:
Frutescens 2024-08-02 11:28:56 -07:00
parent 0bf15aff94
commit 88c3f44a97
3 changed files with 5 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -92,6 +92,8 @@ export default class RunHistoryUiHandler extends MessageUiHandler {
const cursor = this.cursor + this.scrollCursor;
if (this.runs[cursor].hasData) {
this.scene.ui.setOverlayMode(Mode.RUN_INFO, this.runs[cursor].entryData, true);
} else {
return false;
}
success = true;
return success;

View File

@ -564,7 +564,6 @@ export default class GameInfoUiHandler extends UiHandler {
showParty(partyVisible: boolean): void {
const allContainers = this.partyContainer.getAll("name", "PkmnInfo");
allContainers.forEach((c: Phaser.GameObjects.Container) => {
console.log(c.getByName("PkmnMoves"));
(c.getByName("PkmnMoves") as Phaser.GameObjects.Container).setVisible(partyVisible);
(c.getByName("PkmnInfoText") as Phaser.GameObjects.Container).setVisible(partyVisible);
(c.getByName("PkmnStatsText") as Phaser.GameObjects.Container).setVisible(partyVisible);
@ -624,7 +623,9 @@ export default class GameInfoUiHandler extends UiHandler {
this.runResultContainer.removeAll(true);
this.partyContainer.removeAll(true);
this.gameStatsContainer.removeAll(true);
this.hallofFameContainer.removeAll(true);
if (this.victory) {
this.hallofFameContainer.removeAll(true);
}
super.clear();
this.gameStatsContainer.setVisible(false);
ui.revertMode();