mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
[Adventure] Refactor GameHud
Make GameHud controls/layout for Android landscape mode identical to Android portrait mode. Desktop Adventure mode retains previous layout and controls.
This commit is contained in:
@@ -30,7 +30,8 @@ public class Controls {
|
||||
return new Rectangle(actor.getX(),actor.getY(),actor.getWidth(),actor.getHeight());
|
||||
}
|
||||
static public boolean actorContainsVector (Actor actor, Vector2 point) {
|
||||
|
||||
if (!actor.isVisible())
|
||||
return false;
|
||||
return getBoundingRect(actor).contains(point);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user