Jump to content
Sign in to follow this  
kalasnikov471

New OFP GUI MOD

Recommended Posts

Hey guys, I'm makeing a OFP gui mod, and I was wondering if you have any ideas... SO far I have made this, its based on the arma gui:

guibk3.jpg

But Ialso thought i can make it wbut i dont get the ofp color system:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">colorBackground[]={0.0,0.3,0.0,0.3};

How to know what color I make with the numbers?

Share this post


Link to post
Share on other sites
Hey guys, I'm makeing a OFP gui mod, and I was wondering if you have any ideas... SO far I have made this, its based on the arma gui:

[im]http://img137.imageshack.us/img137/6803/guibk3.jpg[/img]

But Ialso thought i can make it wbut i dont get the ofp color system:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">colorBackground[]={0.0,0.3,0.0,0.3};

How to know what color I make with the numbers?

Those are RGB values followed by the alpha level.

The alpha level being the transparency , from 0 being invisible up to 1 for totally visible.

you have then

colorBackground[]={Level of Red,Level of Green,Level of Blue,Level of Alpha};

every colors are made from a mix between RGB

By example a color

1,0,0,0.5 would display something red and half transparent/translucent.

While a value of 1,1,0,1

would result in a totally visible Yellow (resulting from Red+Green)

0,0,0,1 is plain black 1,1,1,1 is plain white ... etc...

Works with tracers too by example if you want to define new tracer colors, the alpha level is usefull there to make from barely noticable tracer to nearly starwar visible ones.

EDIT : usually RGB values are defined from 0 to 255 , but BIS used 0 to 1 instead

So when looking at RGB values from a specific color (into MSPaint or your favorite image application) , you will just have to divide it by 255

Example, to find what are the values for OFP of this color in MSPaint from the screenshot i quickly took from google :

mb1yj4.jpg

I just divide each RGB number by 255 and i obtain (roughly)

Red = 0.58

Green = 0.58

Blue = 0.42

If i want to make them half translucent, my alpha level will be 0.5

So it would end into

{0.58,0.58,0.42,0.5}

Share this post


Link to post
Share on other sites

ahem, whats the difference ? oh wait, I just saw that green color. Yea, looks good smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×