Displaying the default caption in Overlay TextArea?

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
blitzcoder
Halfling
Posts: 99
Joined: Wed Oct 09, 2019 4:06 am
x 18

Displaying the default caption in Overlay TextArea?

Post by blitzcoder »

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!
   		}
New Blitz3D/BlitzBasic/BlitzMax Home - https://blitzcoder.org