Fixed cursor-close out freeze and replaced hall of fame background
This commit is contained in:
parent
3bc91e4562
commit
08efc32fa7
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
|
@ -90,8 +90,10 @@ export default class RunHistoryUiHandler extends MessageUiHandler {
|
||||||
if (button === Button.ACTION || button === Button.CANCEL) {
|
if (button === Button.ACTION || button === Button.CANCEL) {
|
||||||
if (button === Button.ACTION) {
|
if (button === Button.ACTION) {
|
||||||
const cursor = this.cursor + this.scrollCursor;
|
const cursor = this.cursor + this.scrollCursor;
|
||||||
if (this.runs[cursor].hasData) {
|
if (this.runs[cursor]) {
|
||||||
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;
|
||||||
|
@ -135,6 +137,7 @@ export default class RunHistoryUiHandler extends MessageUiHandler {
|
||||||
if (timestamps.length > 1) {
|
if (timestamps.length > 1) {
|
||||||
timestampsNo.sort((a, b) => a - b);
|
timestampsNo.sort((a, b) => a - b);
|
||||||
}
|
}
|
||||||
|
console.log(timestamps);
|
||||||
const entryCount = timestamps.length;
|
const entryCount = timestamps.length;
|
||||||
for (let s = 0; s < entryCount; s++) {
|
for (let s = 0; s < entryCount; s++) {
|
||||||
const entry = new RunEntry(this.scene, response, timestampsNo[s].toString(), s);
|
const entry = new RunEntry(this.scene, response, timestampsNo[s].toString(), s);
|
||||||
|
|
|
@ -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