From 86b6eda1a62df444fd28fa353bed6b339a1702d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 21 Feb 2016 22:57:20 +0100 Subject: Widget: remove update(), fix setPosition(float, float) --- core/src/ch/asynk/rustanddust/ui/Widget.java | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.1-2-g2b99