Nifty labels inside a scrollPanel control

Just for the record it looks like this:

(I’ve added the button and label outside the scrollpanel where it renders ok)

The problem seems to be the blendMode=“multiply” which is applied in the standard-style for the scrollpanel. This somehow makes anything inside the scrollpanel to render without texturing enabled and/or missing texture coordinates when used in jme3.

I don’t know why (yet). I’m pretty sure we had that problem before but I can’t remember what we did the last time it occured :wink:

There is a workaround however. Just add that snippet to your xml somewhere before the screen tag:

[java]

[/java]

And then apply that style to your scrollpanel control:

[java][/java]

3 Likes