main menu particles now fades instead of instantly disappearing when

music pauses;
This commit is contained in:
2018-09-06 15:07:12 -05:00
parent 7130d9872c
commit 4b10f23f0b
4 changed files with 11 additions and 12 deletions

View File

@@ -159,12 +159,13 @@ public class ScrollingText extends Widget {
coords.x = getX();
coords.y = getY();
getStage().stageToScreenCoordinates(coords);
clipBounds.setX(coords.x+1);
clipBounds.setY(coords.y - 0.5f*getHeight());
getStage().calculateScissors(clipBounds, scissors);
batch.flush();
getStage().calculateScissors(clipBounds, scissors);
if (ScissorStack.pushScissors(scissors)) {
font.draw(batch, text1, coords.x + text1Offset, coords.y + getFontHeight() + 4);
font.draw(batch, text2, coords.x + text2Offset, coords.y + getFontHeight() + 4);