The Dink Network

Text against the left border

November 24th 2013, 08:58 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
I want to place some text against the left border. I see two options, neither of which does what I want:

1. I use say_stop_xy. The x coordinate of this is the center of the text, and I want to align its left side. I tried setting the coordinate to -300, but that will actually position the text off-screen (well, half of it, obviously.) If I had a way to find out the width of the text this would work, but I don't think I do. I can't count on the font being the same for all engines (AFAIK), so using the number that looks right on my computer will not work either.

2. I create an invisible sprite for the purpose and make it say the text. This works, because said text does not go off-screen, but it is clipped to a rather narrow text width, so the line I want to show would be wrapping. I am more attached to non-wrapping than to the position.

So currently, I'm accepting the text to be in the center of the screen instead of against the border. But I'd really like it to be on the left. Is there a way to achieve this?
November 25th 2013, 11:26 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
This is something I've wanted to achieve too for a long time, to align new UI text. Unfortunately I don't think it can be done