[Client] Label TextAlignment and Flags ???

Started by Sebastian, Feb 26, 2017, 04:32 PM

Previous topic - Next topic

Sebastian

I've tried to center the text with mygui.TextAlignment = GUI_ALIGN_CENTER; but it is not working...
Is there anybody else facing the same problem ?
It's not just that constant, but all of them are giving any effect.

Also the same goes for GUI_FFLAG_OUTLINE

EK.IceFlake

Outline works for me on most fonts. Try changing the font to Corbel and size to 24, that works for me.

Sebastian

Quote from: EK.IceFlake on Feb 26, 2017, 05:54 PMTry changing the font

Ah, right. Forgot that every font reacts differently.



.TextAlignment is still not working.

PS: Is there some list of fonts that everybody should have on windows ? even on windows xp
The most usual.

DizzasTeR

I don't understand the point of TextAlignment because there is no bounding box to define the start and end of the text and hence the alignment has no reference point on which it will get aligned.

KAKAN

Quote from: Doom_Kill3R on Feb 27, 2017, 01:30 AMI don't understand the point of TextAlignment because there is no bounding box to define the start and end of the text and hence the alignment has no reference point on which it will get aligned.
You can create those boundary boxes.
For ex: Setting the X at 0 will do something like that.
oh no