main menu particles now fades instead of instantly disappearing when
music pauses;
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user