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 1pull/356/head
parent
8e64eaea3f
commit
7f03d1ecdf
|
|
@ -426,11 +426,9 @@ export default class SummaryUiHandler extends UiHandler {
|
|||
}
|
||||
|
||||
setCursor(cursor: integer, overrideChanged: boolean = false): boolean {
|
||||
let changed: boolean;
|
||||
let changed: boolean = overrideChanged || this.moveCursor !== cursor;
|
||||
|
||||
if (this.moveSelect) {
|
||||
changed = overrideChanged || this.moveCursor !== cursor;
|
||||
if (changed) {
|
||||
this.moveCursor = cursor;
|
||||
|
||||
const selectedMove = this.getSelectedMove();
|
||||
|
|
@ -462,7 +460,6 @@ export default class SummaryUiHandler extends UiHandler {
|
|||
y: `-=${14.83 * (moveDescriptionLineCount - 3)}`
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.moveCursorObj) {
|
||||
this.moveCursorObj = this.scene.add.sprite(-2, 0, 'summary_moves_cursor', 'highlight');
|
||||
|
|
|
|||
Loading…
Reference in New Issue