From 88c3f44a971d2411bf08493043687bee50a1b454 Mon Sep 17 00:00:00 2001 From: Frutescens Date: Fri, 2 Aug 2024 11:28:56 -0700 Subject: [PATCH] Fixed cursor freeze bug + changed hall of fame background --- public/images/ui/hall_of_fame.png | Bin 1728 -> 1531 bytes src/ui/run-history-ui-handler.ts | 2 ++ src/ui/run-info-ui-handler.ts | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/images/ui/hall_of_fame.png b/public/images/ui/hall_of_fame.png index fb5f7e6cfb86c89103435e8d59a36bdcabfbf2e6..5d4d5e41e9c0534689439afa962e02405a9e311e 100644 GIT binary patch literal 1531 zcmeAS@N?(olHy`uVBq!ia0y~yU~~Yow{Wll$)``g3IZv{;vjb?hIQv;UNSJS&h~V1 z45^5Fd)HC$fP#qg!AGLf5{|C5A`lHxXZxE6v@auV{Kdk6ARA*X$1!b z?F5F+SGoNf8W>BMSvXQyc@nl&9pn@+Xvk||Xk634cqUBWf{}^s0nb@3IW{L%0j zO%KH6hsKT1tuh%Oat>4$9*}Zl&|7L(ogKV!|&(6d9TkTQg2rGNj08H#evDB>87BH!^iZ;>JA{Tii7eDSx2w}2$#kR z4!nH-yL?~G+~bEYKQ1VhFL_|AF_$@gTe~DWM4fGVfY# diff --git a/src/ui/run-history-ui-handler.ts b/src/ui/run-history-ui-handler.ts index aa8d9cbf103..771c281807e 100644 --- a/src/ui/run-history-ui-handler.ts +++ b/src/ui/run-history-ui-handler.ts @@ -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; diff --git a/src/ui/run-info-ui-handler.ts b/src/ui/run-info-ui-handler.ts index 61ffb8500bc..bac841f0da0 100644 --- a/src/ui/run-info-ui-handler.ts +++ b/src/ui/run-info-ui-handler.ts @@ -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();