OgreTextAreaOverlayElement alignment

Problems building or running the engine, queries about how to use features etc.
Post Reply
Posts: 92
Joined: Sat Jul 22, 2017 2:32 pm
x 4

OgreTextAreaOverlayElement alignment

Post by Owl53 »

Ogre Version: 1.11
Operating System: Windows 10
Render System: OpenGL


I have a TextAreaOverlayElement which, when created, is offset to one side. I wanted the text to be centred at the position I specified for it. Upon looking at the member functions for this class, I found the alignment functions. I tried the following function:

Code: Select all

This successfully aligned the text to the centre horizontally, but vertically the text did not move. After trying this, I instead tried using the following functions:

Code: Select all

Neither of these functions seem to have any effect: the text remains where it was before.

Could anyone clarify what I'm doing wrong? The setAlignment function only seems to center horizontally, and the horizontal and vertical functions don't seem to have any effect full stop.

Thanks in advance.

Post Reply