czyzby/gdx-lml

Window element disappears when changing skin

flippy1345 opened this issue · 5 comments

When you change the skin in a view, the window element is not visible.
Everything else uses the new skin with its fonts and so on.
Is the window element generated once before everything, because it is a must have root element ?

//Not visible
TestText //Visible
TestButton //Visible

It's hard to tell without the LML code, could you paste it? Screenshots could also help.

I meant screenshots of the application. ;)

Anyway, the only thing that seems suspicious in the LML template is the width of the window - table pads and button widths are greater than the width you set for the whole window, but I don't think it would cause such issues.

Skin changing code might cause the problem, try debugging that. Is the window still on the stage after the skin is changed? Does the new skin define a window style? If you made a typo, it's possible that the window defaults to no background and is simply transparent.

You can paste the skin changing code (just the code) and I'll check if there are any issues.

I had a logic error in it.
It now works.
Sorry for not responding in a long time.

It's OK, glad you worked it out.