summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/List.java1
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)