mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 15:00:55 +00:00
[BUG] Fix Move Info Overlay Scroll Bug (#1856)
* Added "Skip Dialogues" option (if at least 1 classic win) * Removed error sound and hide option instead when classic wins = 0 * Add skip dialogues option to Unlockables and show unlocked message on first classic win * Only skips seen dialogues, removed dialogue option from unlockables, seen dialogues get saved to local storage * oops * dont show charSprite when skipping a dialogue, small fixes * correctly reset move description scrolling when changing move * override fix --------- Co-authored-by: Frederik Hobein <frederik.hobein@nterra.com>
This commit is contained in:
parent
0e9bcfb4fd
commit
40328d5712
@ -142,10 +142,11 @@ export default class MoveInfoOverlay extends Phaser.GameObjects.Container implem
|
|||||||
|
|
||||||
this.desc.setText(move?.effect || "");
|
this.desc.setText(move?.effect || "");
|
||||||
|
|
||||||
// stop previous scrolling effects
|
// stop previous scrolling effects and reset y position
|
||||||
if (this.descScroll) {
|
if (this.descScroll) {
|
||||||
this.descScroll.remove();
|
this.descScroll.remove();
|
||||||
this.descScroll = null;
|
this.descScroll = null;
|
||||||
|
this.desc.y = (this.options?.top ? EFF_HEIGHT : 0) + BORDER - 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// determine if we need to add new scrolling effects
|
// determine if we need to add new scrolling effects
|
||||||
|
Loading…
x
Reference in New Issue
Block a user