Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

How to set indent spacing of a tree in libGDX scene2d?

$
0
0

I’ve been trying to create a customized UI using scene2d library in libGDX. However I am having troubles as I’m trying to set a custom indent spacing on my Tree object.

I have tried to search for the answer but haven’t actually found any discussions about this on the internet.

Here is how the tree looks now

This is the current situation which I am having.

This is what it should look

This is how I would prefer it to look like.

All I want is that I could be able to change the size of the margin which is caused by nodes being on different levels. How can I achieve this?


Viewing all articles
Browse latest Browse all 434

Trending Articles