UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Simple HUD Color Info

broken avatar :(
Created 9 years ago
by PROxFTW
0 Members and 1 Guest are viewing this topic.
3,062 views
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 5 years ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
Signature
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
So thanks to MakeCents I have decided to make a tut for people about color info for HUD's.
---------------------------------------------
First of all you will need an HUD.
Now how color info works, if you want to change an entire text or image, you would probably want to use
--------------------------------
HUD.color = ( ( Color1 / 255 ), ( Color2 / 255 ), ( Color3 / 255 )  );
Color1, Color2, and Color3 all specify the color you want.
Color1 would be Red, so change that as you want and you can modify how much red you want.
Color2 would be Green, so of course modify that as much as you want.
Color3 would be Blue, so again modify that as you want.
--------------------------------
Now lets say you wanted 255 out of 255 so completely 1 color. In this case rather than writing
HUD.color = ( ( 255 / 255 ), ( 163 / 255 ), ( 255 / 255 ) );
simply you can replace it with
HUD.color = ( 1, ( 163 / 255 ), 1 );
Also rather than writing ( 163 / 255 ) you could modify it as a decimal but probably better to just go out of 255 in this case.
Also something else if you want ( 0 / 255 ) replace it with 0 as you would do 1. Makes it easier as well.
--------------------------------
Now lets say you wanted to just change an individual letter or word or phrase or something that isn't an entire text.
You would use the up arrow + a number 0 to 9. There is to be no spaces between the up arrow and the number otherwise it will show both in the text.
Using ^7 will set the color back to its original color so if HUD.color is ( 1, 0, 0 ), once it sees ^7 it will go back to being red rather than white. I believe haven't used this in a while but I believe this is correct.
Also using these will override HUD.color until ^7 is used.
So now what each number means in terms of colors
Code Snippet
Plaintext
^1 - RED
^2 - GREEN
^3 - YELLOW
^4 - BLUE
^5 - CYAN
^6 - PINK
^7 - WHITE
^8 - DEFAULT MAP COLOR
^9 - GREY OR DEFAULT MAP COLOR
^0 - BLACK
----------------------------
Now an example of just modifying a small text
HUD Settext( "Press ^1&&1^7 to buy jugg" );
This will now print to screen
Press F to buy Jugg
----------------------------
Now an example using HUD.color + a color code
HUD.color = ( 1, 0, 0 );
HUD SetText( "Press ^4&&1^7 to buy Jugg" );
Press F to buy Jugg
----------------------------
Also a link for using ( R, G, B ) info
http://www.rapidtables.com/web/color/RGB_Color.htm
Last Edit: December 09, 2014, 03:13:47 pm by PROxFTW
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Nice, I like it, thanks.
broken avatar :(
  • rdvlpr
  • Deleted Member
×
broken avatar :(
rdvlpr
This user is deleted :(
I made a simple tool for it, https://www.mediafire.com/?kmy3jyb68vmufp3
You only have to select a color and the color codes will be calculated automatically.

 
Loading ...