Fixed cursor freeze bug + changed hall of fame background
This commit is contained in:
parent
0bf15aff94
commit
88c3f44a97
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue