summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-05-14 15:32:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-05-14 15:32:28 +0200
commit639f146d92e0e2503f4360e40f79b885db6d1ba5 (patch)
tree7ca0df15a9b86a18ff0aaaf89c613bcfae0658b7 /test
parentbb280894c14b9dbf7747a97fcd78714628100fd8 (diff)
downloadgdx-boardgame-639f146d92e0e2503f4360e40f79b885db6d1ba5.zip
gdx-boardgame-639f146d92e0e2503f4360e40f79b885db6d1ba5.tar.gz
UI : introduce abstract Element.drawReal(batch)
Diffstat (limited to 'test')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/UiScreen.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java b/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java
index ef153aa..58ad764 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java
@@ -222,12 +222,10 @@ class MyList extends Patch
return scrollable.drag(x, y, dx, dy);
}
- @Override public void draw(Batch batch)
+ @Override public void drawReal(Batch batch)
{
- if (!visible) return;
- if (dirty) computeGeometry();
- super.draw(batch);
- title.draw(batch);
+ super.drawReal(batch);
+ title.drawReal(batch);
scrollable.draw(batch);
}