UI file colors -1 reply

Please wait...

jk3editor

Retard Hungarian Modder

50 XP

21st August 2008

0 Uploads

1,520 Posts

0 Threads

#1 10 years ago

[COLOR=Navy]Hi! I want to change a few color in the ui menus...but there aren't RGB colors, there are four number, about this: .298 .305 .690 1 What does the numbers mean?[/COLOR]




iswer

Mapper, Modeller, Musician

50 XP

18th April 2004

0 Uploads

1,601 Posts

0 Threads

#2 10 years ago

Never been into menu scripting but I suppose those numbers are scales of red, green, blue, and brightness. Max is 1 and min is 0, so if you want pure green you write 1 0 0 1. And '.298' = '0.298' = '29,8%'.

Correct me if I'm wrong.




jk3editor

Retard Hungarian Modder

50 XP

21st August 2008

0 Uploads

1,520 Posts

0 Threads

#3 10 years ago

[COLOR=Navy]I'll try it, thanks :)[/COLOR]




Crazy Assassin

Overlord of Various Things

50 XP

25th August 2008

0 Uploads

428 Posts

0 Threads

#4 10 years ago

To change the color, take the RGB value that you want, and divide each number by 256. The decimal you get is the new value for the slot in question, with the exception that 255 = 1. So 64 128 255 becomes 0.25 0.5 1

Oh, and the fourth number is probably the alpha value, so leave it at one.




jk3editor

Retard Hungarian Modder

50 XP

21st August 2008

0 Uploads

1,520 Posts

0 Threads

#5 10 years ago

[COLOR=Navy]I tried what [COLOR=DarkOrange]iswer[/COLOR] wrote, and the numbers as working fine, and I tried the last value to, and I thing that's the transparent...I set it to .5, and the text and the picture was half-transparent:) Thanks the comments:D[/COLOR]