diff options
-rw-r--r-- | core/src/ch/asynk/rustanddust/ui/List.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/List.java b/core/src/ch/asynk/rustanddust/ui/List.java index c086082..af1ad76 100644 --- a/core/src/ch/asynk/rustanddust/ui/List.java +++ b/core/src/ch/asynk/rustanddust/ui/List.java @@ -38,6 +38,7 @@ public class List extends Widget public void unselect() { idx = null; } public Integer getIdx() { return idx; } + public ListElement getSelected() { return ((idx == null) ? null : items.get(idx)); } @Override public boolean hit(float x, float y) |