Page 1 of 1

Setting text alignment in event sheet

PostPosted: Tue Jun 09, 2015 9:30 pm
by briggybros
From what I can see, there is no way to set the vertical and horizontal alignment of text from an event sheet. Can this be a thing?

Re: Setting text alignment in event sheet

PostPosted: Tue Jun 09, 2015 10:31 pm
by paulscottrobson
I haven't tried this, so apologies if it doesn't work. You can't do it directly, but you can access textHeight and textWidth of the actual displayed text.

So if you want to set it at position(x,y) anchored centrally and it is anchored at (say) top/left you can do this by subtracting textWidth/2 from the x position and textHeight/2 from the y position

Re: Setting text alignment in event sheet

PostPosted: Tue Jun 09, 2015 10:52 pm
by eli0s
@briggybros , try the Text Properties Behavior by rexrainbow.

Re: Setting text alignment in event sheet

PostPosted: Wed Jun 10, 2015 4:33 pm
by briggybros
Would be nice just to have it as part of the text object, but this will do :P