AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Having two colors in a hud message? (https://forums.alliedmods.net/showthread.php?t=40669)

schnitzelmaker 07-01-2006 10:57

Having two colors in a hud message?
 
I want have 2 colors in a Hudmessage,it is possible?

Throstur 07-01-2006 11:01

Re: Having two colors in a hud message?
 
It doesnt look like it, but untill you get it, may I suggest using multiple hud messages and cycling fast through them.

schnitzelmaker 07-01-2006 13:05

Re: Having two colors in a hud message?
 
I can overlay the message,with another,but the problem is that the numbers dont have the same lenght/width,and the second hudmessage is not at the same position.

Give there a way to change the font,or format it so,that every number has the same width??

Hawk552 07-01-2006 13:08

Re: Having two colors in a hud message?
 
Quote:

Originally Posted by schnitzelmaker
I can overlay the message,with another,but the problem is that the numbers dont have the same lenght/width,and the second hudmessage is not at the same position.

Give there a way to change the font,or format it so,that every number has the same width??

Add spaces.

schnitzelmaker 07-01-2006 15:53

Re: Having two colors in a hud message?
 
Haha very funny,spaces are the most problem:

Here what i mean Hudmessage 2 is not at same position as hudmessage 1:
Hudmessage 1:345ABCD
Hudmessage 2: 45AB

Throstur 07-01-2006 16:42

Re: Having two colors in a hud message?
 
change the value of the position on the i axis (x axis for vectors and such)

schnitzelmaker 07-01-2006 17:06

Re: Having two colors in a hud message?
 
yes,but i need >20 mathematic calculation to fix the fully string position.

Throstur 07-01-2006 17:28

Re: Having two colors in a hud message?
 
calculator? excel? they all do it!

schnitzelmaker 07-01-2006 18:07

Re: Having two colors in a hud message?
 
lol,but not automated in a plugin,in a plugin the caculation need 30~50 lines.
I must check every number/alphabetic in the string,and my string is >50 long.
And i must check how many pixel the number/alphabetic have in width.In hudmessage i must check in 0.0001 steps.So its need a little long to check >50
number/alphabetic in 0.0001 steps to test how width they are.

Anyone has a usefull Idee?

I have also heard from somone he have the same problems since he has upgraded to Amxx 1.75.I also use amxx 1.75 and i know there are some bugs inside amxx 1.75 version,but i dont know if this also an bug.

shino 07-03-2006 16:15

Re: Having two colors in a hud message?
 
try to overlay it with hud message generator in AMXX-Studio - it should do.

EDIT: when i woke up, i realized, that is impossible either. my bad.


All times are GMT -4. The time now is 08:05.

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