AlertBox and DialogBox do not show a Message

Hi,

i’ve updatet to latest available version of tonegod and noticed that :

[java]
DialogBox dialogBox = new DialogBox (screen, new Vector2f(screen.getWidth() * 0.5f, screen.getHeight() * 0.5f)){

};
dialogBox.setMsg(“Do you really want to research ?”);
screen.addElement(dialogBox);
[/java]

is not working anymore… I only see a Window with ok and cancle button and a tiny scrollbar at the right

@b00n
Ugh… sorry for the long ass delay in responding. Post got et’ again because I quoted you. I had responded, just didn’t notice the post was gone.

This has to be a caching issue. Have you tried running Clean & Build on the project?

Hmm i tried it today, but it changed nothing.

I also noticed that the chatbox changed his layout.

Here is a Screenshot (yellow square point onto it ;)):
http://imgur.com/RWXWMP5

Ah… I think I see the issue. There was an overhaul of the default styles. A few of the changes effected custom style defs, however… they were impossible to avoid.

The tab control has changed completely (style and layout wise)
ScrollPanel was added
Alert & Dialog now use the new ScrollPanel control

Likely it is discrepancies between the custom style xml files and what is expected.

The good news is, there are very few changes.
The bad news is, they would have this effect.

If you want, post the xml files for the controls you are seeing issues with and I’ll point out the differences between them and the updated versions.

I *believe the ones tht you’ll want to post are:

Window.gui.xml
Scrolling.gui.xml
Tab.gui.xml

after rechecking these files and all other ;)… I found out that i forgot to add all new cool properties :smiley:

Thank you

1 Like