Add capability to view Pokemon Status screen when learning moves
parent
acb61d6fb7
commit
fe85a5519f
|
@ -464,20 +464,16 @@ export default class SummaryUiHandler extends UiHandler {
|
|||
}
|
||||
break;
|
||||
case Button.LEFT:
|
||||
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE)
|
||||
break;
|
||||
if (this.cursor)
|
||||
success = this.setCursor(this.cursor - 1);
|
||||
break;
|
||||
case Button.RIGHT:
|
||||
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) {
|
||||
this.setCursor(Page.MOVES);
|
||||
this.moveSelect = true;
|
||||
success = true;
|
||||
break;
|
||||
}
|
||||
if (this.cursor < pages.length - 1)
|
||||
if (this.cursor < pages.length - 1) {
|
||||
success = this.setCursor(this.cursor + 1);
|
||||
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE && this.cursor === Page.MOVES) {
|
||||
this.moveSelect = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -584,13 +580,7 @@ export default class SummaryUiHandler extends UiHandler {
|
|||
onComplete: () => {
|
||||
if (forward){
|
||||
this.populatePageContainer(this.summaryPageContainer);
|
||||
if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) {
|
||||
this.moveCursorObj = null;
|
||||
this.extraMoveRowContainer.setVisible(true);
|
||||
this.setCursor(0, true);
|
||||
this.showMoveEffect();
|
||||
}
|
||||
else if (this.cursor===Page.MOVES) {
|
||||
if (this.cursor===Page.MOVES) {
|
||||
this.moveCursorObj = null;
|
||||
this.showMoveSelect();
|
||||
this.showMoveEffect();
|
||||
|
|
Loading…
Reference in New Issue