summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-05-17 06:24:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-05-17 06:24:53 +0200
commit3ed148e88e425046e9af155393efb33f9a11c050 (patch)
treebd7ff5f17c7a17cc7c3b7963eb466e28bc23b1f6
parentdbffd363b3ca68c02ebfca89a9f90dfaa57f38e2 (diff)
downloadgdx-boardgame-3ed148e88e425046e9af155393efb33f9a11c050.zip
gdx-boardgame-3ed148e88e425046e9af155393efb33f9a11c050.tar.gz
List : add setSpacing()
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/List.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/List.java b/core/src/ch/asynk/gdx/boardgame/ui/List.java
index 4b0d388..0d4a97e 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/List.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/List.java
@@ -35,6 +35,12 @@ public class List extends Element
this.selected.visible = false;
}
+ public void setSpacing(float spacing)
+ {
+ this.spacing = spacing;
+ taint();
+ }
+
public void unselect() { idx = null; }
public Integer getIdx() { return idx; }
public Item getSelected() { return ((idx == null) ? null : items.get(idx)); }