(solved) GUI label align

Started by Radiant, Thu 17/10/2013 20:23:34

Previous topic - Next topic

Radiant

Is it possible to set the alignment (left/right/center) of a GUI label at runtime?

Crimson Wizard

#1
Hmm... I think not. ???
This strikes me why it was never added.

I think a workaround is to fill the label with spaces, or, better, get Gui's drawing surface and draw string yourself as you like.

Khris

Or use two labels, one invisible.
Or get the text's width, and resize and/or reposition the label.

Should be relatively simple to add to the engine though, I guess.

Radiant

Yeah, I can reposition the label as a workaround. I promised myself to stop sending more feature requests to the 3.3 team :P

SMF spam blocked by CleanTalk