-
Notifications
You must be signed in to change notification settings - Fork 128
GridGroup
Pawel Pastuszak edited this page Dec 7, 2018
·
8 revisions
GridGroup
(source) is as widget group that arranges multiple widgets into grid. Item size and spacing can be specified in constructors. GridGroup
is available since VisUI 0.7.2
GridGroup group = new GridGroup(64, 4); //item size 64px, spacing 4px
group.addActor(actor1)
group.addActor(actor2)
//...
Grid group can be embedded in scroll pane. However in such case scrolling in X direction must be disabled.
VisScrollPane scrollPane = new VisScrollPane(group);
scrollPane.setScrollingDisabled(true, false); //disable X scrolling
See README for VisUI introduction.