summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/hud
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/game/hud
parentcd0cd844fbe1b4812ba211567276ca3074d32f17 (diff)
downloadRustAndDust-09f2b2d01df9c7ae51391c361042fb29239cc538.zip
RustAndDust-09f2b2d01df9c7ae51391c361042fb29239cc538.tar.gz
UI: use setBtnRight and setBtnLeft
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/hud')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java
index bac418f..6a0762e 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java
@@ -130,7 +130,7 @@ public class EngagementPanel extends Patch implements Animation
float y = position.getY(height) + (okBtn.getHeight() / 2.0f);
setPosition(x, y, width, height);
- okBtn.setPosition((x + width - (okBtn.getWidth() / 2.0f)), (y - (okBtn.getHeight() / 2.0f)));
+ setBtnRight(okBtn);
x += PADDING;
y += PADDING;
diff --git a/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java b/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java
index a0a27b6..a5e3ada 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java
@@ -62,7 +62,7 @@ public class StatisticsPanel 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)));
+ setBtnRight(okBtn);
y += PADDING;
x += PADDING;