diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-05-17 06:24:53 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-05-17 06:24:53 +0200 |
commit | 3ed148e88e425046e9af155393efb33f9a11c050 (patch) | |
tree | bd7ff5f17c7a17cc7c3b7963eb466e28bc23b1f6 | |
parent | dbffd363b3ca68c02ebfca89a9f90dfaa57f38e2 (diff) | |
download | gdx-boardgame-3ed148e88e425046e9af155393efb33f9a11c050.zip gdx-boardgame-3ed148e88e425046e9af155393efb33f9a11c050.tar.gz |
List : add setSpacing()
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/List.java | 6 |
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)); } |