mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 22:12:16 +02:00
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;
|
const cursor = this.cursor + this.scrollCursor;
|
||||||
if (this.runs[cursor].hasData) {
|
if (this.runs[cursor].hasData) {
|
||||||
this.scene.ui.setOverlayMode(Mode.RUN_INFO, this.runs[cursor].entryData, true);
|
this.scene.ui.setOverlayMode(Mode.RUN_INFO, this.runs[cursor].entryData, true);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
success = true;
|
success = true;
|
||||||
return success;
|
return success;
|
||||||
|
@ -564,7 +564,6 @@ export default class GameInfoUiHandler extends UiHandler {
|
|||||||
showParty(partyVisible: boolean): void {
|
showParty(partyVisible: boolean): void {
|
||||||
const allContainers = this.partyContainer.getAll("name", "PkmnInfo");
|
const allContainers = this.partyContainer.getAll("name", "PkmnInfo");
|
||||||
allContainers.forEach((c: Phaser.GameObjects.Container) => {
|
allContainers.forEach((c: Phaser.GameObjects.Container) => {
|
||||||
console.log(c.getByName("PkmnMoves"));
|
|
||||||
(c.getByName("PkmnMoves") as Phaser.GameObjects.Container).setVisible(partyVisible);
|
(c.getByName("PkmnMoves") as Phaser.GameObjects.Container).setVisible(partyVisible);
|
||||||
(c.getByName("PkmnInfoText") as Phaser.GameObjects.Container).setVisible(partyVisible);
|
(c.getByName("PkmnInfoText") as Phaser.GameObjects.Container).setVisible(partyVisible);
|
||||||
(c.getByName("PkmnStatsText") 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.runResultContainer.removeAll(true);
|
||||||
this.partyContainer.removeAll(true);
|
this.partyContainer.removeAll(true);
|
||||||
this.gameStatsContainer.removeAll(true);
|
this.gameStatsContainer.removeAll(true);
|
||||||
this.hallofFameContainer.removeAll(true);
|
if (this.victory) {
|
||||||
|
this.hallofFameContainer.removeAll(true);
|
||||||
|
}
|
||||||
super.clear();
|
super.clear();
|
||||||
this.gameStatsContainer.setVisible(false);
|
this.gameStatsContainer.setVisible(false);
|
||||||
ui.revertMode();
|
ui.revertMode();
|
||||||
|
Loading…
Reference in New Issue
Block a user