summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-21 22:57:20 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-21 22:57:20 +0100
commit86b6eda1a62df444fd28fa353bed6b339a1702d1 (patch)
tree8e0d5815c9689689886a764b3d3d4c831dbc7fee /core
parent41260eeabca45c96eb2dcc5450d8ce1366889be6 (diff)
downloadRustAndDust-86b6eda1a62df444fd28fa353bed6b339a1702d1.zip
RustAndDust-86b6eda1a62df444fd28fa353bed6b339a1702d1.tar.gz
Widget: remove update(), fix setPosition(float, float)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/Widget.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/Widget.java b/core/src/ch/asynk/rustanddust/ui/Widget.java
index a776cf7..585b011 100644
--- a/core/src/ch/asynk/rustanddust/ui/Widget.java
+++ b/core/src/ch/asynk/rustanddust/ui/Widget.java
@@ -31,8 +31,6 @@ public abstract class Widget implements Disposable, Drawable
public float getHeight() { return rect.height; }
public float getTop() { return rect.y + rect.height; }
- public void update() { }
-
public void translate(float dx, float dy)
{
rect.x += dx;
@@ -46,7 +44,7 @@ public abstract class Widget implements Disposable, Drawable
public void setPosition(float x, float y)
{
- rect.set(x, y, rect.width, rect.height);
+ setPosition(x, y, rect.width, rect.height);
}
// override this if needed