From 08efc32fa7a4b85ee75270dc9e779cc000030e7b Mon Sep 17 00:00:00 2001 From: Frutescens Date: Fri, 2 Aug 2024 11:12:42 -0700 Subject: [PATCH] Fixed cursor-close out freeze and replaced hall of fame background --- public/images/ui/hall_of_fame.png | Bin 0 -> 1531 bytes src/ui/run-history-ui-handler.ts | 5 ++++- src/ui/run-info-ui-handler.ts | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 public/images/ui/hall_of_fame.png diff --git a/public/images/ui/hall_of_fame.png b/public/images/ui/hall_of_fame.png new file mode 100644 index 0000000000000000000000000000000000000000..5d4d5e41e9c0534689439afa962e02405a9e311e 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(og 1) { timestampsNo.sort((a, b) => a - b); } + console.log(timestamps); const entryCount = timestamps.length; for (let s = 0; s < entryCount; s++) { const entry = new RunEntry(this.scene, response, timestampsNo[s].toString(), s); 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();