So the default overlay textarea caption doesn't get displayed unless you do a setCaption in your framelistener or render loop?
but when doing this it works, but the spaces gets doubled:
Code: Select all
std::string cap = OverlayManager::getSingleton().getOverlayElement("MyText")->getCaption();
OverlayManager::getSingleton().getOverlayElement("MyText")->setCaption(cap);
In my .overlay file
Code: Select all
element TextArea(MyText)
{
colour 0 1 0
font_name Arial
char_height 0.03
top 0.25
left 0.25
caption Hello, World!
}