mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
bug fix: updates move description correctly
viewing the description of move slot 1 in a pokemon's move summary UI only updated the first time it was viewed per session, exiting the party UI and re-entering caused the moves in a pokemon's summary screen to not automatically populate the description box unless you moved the cursor down to move 2 and then back up to move 1
This commit is contained in:
parent
c7bd99b345
commit
fefc6341f6
@ -426,11 +426,9 @@ export default class SummaryUiHandler extends UiHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setCursor(cursor: integer, overrideChanged: boolean = false): boolean {
|
setCursor(cursor: integer, overrideChanged: boolean = false): boolean {
|
||||||
let changed: boolean;
|
let changed: boolean = overrideChanged || this.moveCursor !== cursor;
|
||||||
|
|
||||||
if (this.moveSelect) {
|
if (this.moveSelect) {
|
||||||
changed = overrideChanged || this.moveCursor !== cursor;
|
|
||||||
if (changed) {
|
|
||||||
this.moveCursor = cursor;
|
this.moveCursor = cursor;
|
||||||
|
|
||||||
const selectedMove = this.getSelectedMove();
|
const selectedMove = this.getSelectedMove();
|
||||||
@ -462,7 +460,6 @@ export default class SummaryUiHandler extends UiHandler {
|
|||||||
y: `-=${14.83 * (moveDescriptionLineCount - 3)}`
|
y: `-=${14.83 * (moveDescriptionLineCount - 3)}`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.moveCursorObj) {
|
if (!this.moveCursorObj) {
|
||||||
this.moveCursorObj = this.scene.add.sprite(-2, 0, 'summary_moves_cursor', 'highlight');
|
this.moveCursorObj = this.scene.add.sprite(-2, 0, 'summary_moves_cursor', 'highlight');
|
||||||
|
Loading…
Reference in New Issue
Block a user