AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do you align a HUD message with text aligned to left while the message is not (https://forums.alliedmods.net/showthread.php?t=252684)

Cv3 12-07-2014 11:29

How do you align a HUD message with text aligned to left while the message is not
 
1 Attachment(s)
I've attached an example of my question.
So far when I align the whole HUD on the right, the text is also aligned to the right. How could I make it aligned to the left ?

https://forums.alliedmods.net/attach...7&d=1417969725

zmd94 12-07-2014 12:13

Re: How do you align a HUD message with text aligned to left while the message is not
 
Sorry, what do you mean by "HUD" and "text"? As far as I know that both of them are the same things.

NiHiLaNTh 12-07-2014 15:50

Re: How do you align a HUD message with text aligned to left while the message is not
 
Quote:

Originally Posted by zmd94 (Post 2232216)
Sorry, what do you mean by "HUD" and "text"? As far as I know that both of them are the same things.

actually not really. HUD stands for "Heads-up-display". Its everything on the screen, including health, armor, ammo icons, radar, damage indicators and all kinds of text.

Anyway, what do you mean by aligning? If you your text to be at left, just play with the X coord or whatever native you use (set_hudmessage/set_dhudmessage).

Cv3 12-07-2014 16:01

Re: How do you align a HUD message with text aligned to left while the message is not
 
The problem is that there are 2 lines of text there

Pts: #NICKNAME# (where the nickname's length might vary)
Weapon: glock18* (* just as example, might be other aswel)

I was just wondering if there is something tricky to pass the align to the message, but it's okay. I guess the players will get used to it :)

Thanks.

zmd94 12-07-2014 21:43

Re: How do you align a HUD message with text aligned to left while the message is not
 
Quote:

HUD stands for "Heads-up-display". Its everything on the screen, including health, armor, ammo icons, radar, damage indicators and all kinds of text.
I appreciate the explanation. ;)


All times are GMT -4. The time now is 15:23.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.