summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/ui
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-10 11:34:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-10 11:34:53 +0100
commit09f2b2d01df9c7ae51391c361042fb29239cc538 (patch)
treed3fbf519aa9b1e73099850c789466aa3f4d6039a /core/src/ch/asynk/rustanddust/ui
parentcd0cd844fbe1b4812ba211567276ca3074d32f17 (diff)
downloadRustAndDust-09f2b2d01df9c7ae51391c361042fb29239cc538.zip
RustAndDust-09f2b2d01df9c7ae51391c361042fb29239cc538.tar.gz
UI: use setBtnRight and setBtnLeft
Diffstat (limited to 'core/src/ch/asynk/rustanddust/ui')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/OkCancel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/OkCancel.java b/core/src/ch/asynk/rustanddust/ui/OkCancel.java
index a313173..c064102 100644
--- a/core/src/ch/asynk/rustanddust/ui/OkCancel.java
+++ b/core/src/ch/asynk/rustanddust/ui/OkCancel.java
@@ -54,8 +54,8 @@ public class OkCancel extends Patch
float y = position.getY(height);
setPosition(x, y, width, height);
- okBtn.setPosition((x + width - (okBtn.getWidth() / 2.0f)), (y - (okBtn.getHeight() / 2.0f)));
- cancelBtn.setPosition((x - (cancelBtn.getWidth() / 2.0f)), (y - (cancelBtn.getHeight() / 2.0f)));
+ setBtnRight(okBtn);
+ setBtnLeft(cancelBtn);
label.setPosition((x + PADDING), (y + PADDING + okBtn.getHeight() + VSPACING));
cancelBtn.visible = true;
visible = true;