Hi Texus,
First I'd like to thank you for this amazing library. It helped me a lot that I didn't have to write my own gui logic for SFML.
Though I think I found a bug in MessageBox. In the cpp file on lines 65 and 195 when a button is clicked you send a "ButtonClicked" signal. However in the constructor (and according to the API documentation) you look for the "ButtonPressed" signal. And so if I click on the button it can't find the "ButtonClicked" signal and stops with an assert. I modified the code locally and it works for me. Could you please fix it in your dev version? Thanks in advance.
I also have another issue with messagebox (however don't know the reason). I'm setting my messagebox like this:
When the messagebox appears I can't see any text neither in the window nor on the buttons, just the blank placeholders. Is there anything else I should set? Either for sf::String or for the MessageBox?
Oh and I'm using Windows 7 with MinGW 4.8.
First I'd like to thank you for this amazing library. It helped me a lot that I didn't have to write my own gui logic for SFML.
Though I think I found a bug in MessageBox. In the cpp file on lines 65 and 195 when a button is clicked you send a "ButtonClicked" signal. However in the constructor (and according to the API documentation) you look for the "ButtonPressed" signal. And so if I click on the button it can't find the "ButtonClicked" signal and stops with an assert. I modified the code locally and it works for me. Could you please fix it in your dev version? Thanks in advance.
I also have another issue with messagebox (however don't know the reason). I'm setting my messagebox like this:
Code Select
tgui::MessageBox::Ptr exitMsg = tgui::MessageBox::create("Gui/Black.conf");
exitMsg->setText(sf::String("Are you sure you want to quit?"));
exitMsg->addButton(sf::String("Yes"));
exitMsg->addButton(sf::String("No"));
When the messagebox appears I can't see any text neither in the window nor on the buttons, just the blank placeholders. Is there anything else I should set? Either for sf::String or for the MessageBox?
Oh and I'm using Windows 7 with MinGW 4.8.