calls super function of draw for scrolling text
This commit is contained in:
parent
c1be4043d2
commit
75387661d2
@ -153,8 +153,6 @@ public class ScrollingText extends Widget {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(Batch batch, float parentAlpha) {
|
public void draw(Batch batch, float parentAlpha) {
|
||||||
validate();
|
|
||||||
|
|
||||||
if (background != null) {
|
if (background != null) {
|
||||||
background.draw(batch, getX(), getY(), getWidth(), getHeight());
|
background.draw(batch, getX(), getY(), getWidth(), getHeight());
|
||||||
}
|
}
|
||||||
@ -172,6 +170,8 @@ public class ScrollingText extends Widget {
|
|||||||
batch.flush();
|
batch.flush();
|
||||||
ScissorStack.popScissors();
|
ScissorStack.popScissors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
super.draw(batch, parentAlpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user