diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/hud')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java | 2 |
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; |