Longer descriptions don't stuck shorter ones anymore
parent
06ae04abad
commit
6f446324db
|
@ -441,6 +441,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||||
const selectedMove = this.getSelectedMove();
|
const selectedMove = this.getSelectedMove();
|
||||||
|
|
||||||
if (selectedMove) {
|
if (selectedMove) {
|
||||||
|
this.moveDescriptionText.setY(84);
|
||||||
this.movePowerText.setText(selectedMove.power >= 0 ? selectedMove.power.toString() : '---');
|
this.movePowerText.setText(selectedMove.power >= 0 ? selectedMove.power.toString() : '---');
|
||||||
this.moveAccuracyText.setText(selectedMove.accuracy >= 0 ? selectedMove.accuracy.toString() : '---');
|
this.moveAccuracyText.setText(selectedMove.accuracy >= 0 ? selectedMove.accuracy.toString() : '---');
|
||||||
this.moveCategoryIcon.setFrame(MoveCategory[selectedMove.category].toLowerCase());
|
this.moveCategoryIcon.setFrame(MoveCategory[selectedMove.category].toLowerCase());
|
||||||
|
@ -457,7 +458,6 @@ export default class SummaryUiHandler extends UiHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (moveDescriptionLineCount > 3) {
|
if (moveDescriptionLineCount > 3) {
|
||||||
this.moveDescriptionText.setY(84);
|
|
||||||
this.descriptionScrollTween = this.scene.tweens.add({
|
this.descriptionScrollTween = this.scene.tweens.add({
|
||||||
targets: this.moveDescriptionText,
|
targets: this.moveDescriptionText,
|
||||||
delay: Utils.fixedInt(2000),
|
delay: Utils.fixedInt(2000),
|
||||||
|
|
Loading…
Reference in New Issue