From 3ed148e88e425046e9af155393efb33f9a11c050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 17 May 2020 06:24:53 +0200 Subject: List : add setSpacing() --- core/src/ch/asynk/gdx/boardgame/ui/List.java | 6 ++++++ 1 file changed, 6 insertions(+) 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)); } -- cgit v1.1-2-g2b99