QuoteResults in the text being off-centered, almost as if the origin to the text didn't get set right.Not being perfectly centered is a known issue on my todo list, but it only differs a few pixels and isn't that bad so its an entirely different issue here.
I just tested the code you posted and it seems like the mistake is with setting the font. The button is only given a font when you call m_resourcesGui.add so at the time you set its text and size it has no font yet. Moving the add line to before the load call (right after it also works, it just has to be before the other functions) should solve the problem.
It seems like this bug exists in all widgets. I'm not planning on fixing it though (due to a redesign it was already fixed in v0.7-dev), you should just add the widget to its parent before calling text related functions. This order was expected by design (hence add function is automatically called in widget constructor when constructing like in example codes).
You might even want to use the following code instead:
Code (cpp) Select
m_resourcesInterface.tilesTab = tgui::Button::Ptr(m_resourcesGui);
m_resourcesInterface.tilesTab->load("widgets/White.conf");
// other functions like setText
// no need to call add function, already done in constructorQuoteI decided to see what would happen if I created the form in the form-builder and load from the file, and it actually just resulted in no text appearing at allDid you set a global font before loading the file?
If you did, could you send the file so I can check it?
. But that's probably not what you want.
