Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Sebastian on Feb 26, 2017, 04:32 PM

Title: [Client] Label TextAlignment and Flags ???
Post by: Sebastian on Feb 26, 2017, 04:32 PM
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
Title: Re: [Client] Label TextAlignment and Flags ???
Post by: EK.IceFlake on Feb 26, 2017, 05:54 PM
Outline works for me on most fonts. Try changing the font to Corbel and size to 24, that works for me.
Title: Re: [Client] Label TextAlignment and Flags ???
Post by: Sebastian on Feb 26, 2017, 08:17 PM
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.
Title: Re: [Client] Label TextAlignment and Flags ???
Post by: DizzasTeR on Feb 27, 2017, 01:30 AM
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.
Title: Re: [Client] Label TextAlignment and Flags ???
Post by: KAKAN on Feb 27, 2017, 05:44 AM
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.