diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/ch/asynk/rustanddust/ui/Patch.java | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/core/src/ch/asynk/rustanddust/ui/Patch.java b/core/src/ch/asynk/rustanddust/ui/Patch.java index acff791..f07c44d 100644 --- a/core/src/ch/asynk/rustanddust/ui/Patch.java +++ b/core/src/ch/asynk/rustanddust/ui/Patch.java @@ -25,4 +25,14 @@ public class Patch extends Widget          if (!visible) return;          patch.draw(batch, rect.x, rect.y, rect.width, rect.height);      } + +    public void setBtnRight(Bg btn) +    { +        btn.setPosition((rect.x + rect.width - (btn.getWidth() * 0.666f)), (rect.y -  (btn.getHeight() * 0.333f))); +    } + +    public void setBtnLeft(Bg btn) +    { +        btn.setPosition((rect.x - (btn.getWidth() * 0.333f)), (rect.y -  (btn.getHeight() * 0.333f))); +    }  } | 
