Jump to content

NormalTextColor Checkbox Property


KenXeiko

Recommended Posts

Posted (edited)

Hi,

I tried to change the text color of my checkbox with

guiSetProperty(mainGUI["checkbox"][i], "NormalTextColour", tocolor(255, 127, 0)) 

On another topic it says that I'd need to use 'tocolor' for the third argument.

So I did that one, it's supposed to change the color of the checkbox into 'orange' (as seen here), but somehow, the function changed the color into 'pink' instead of 'orange'.

Any idea about this one? #-o

RESOLVED Thanks to MR.S3D for the clue :)

guiSetProperty(mainGUI["checkbox"][i], "NormalTextColour", "FFFF7F00") 

The color is supposed to be:

AARRGGBB -- A = Alpha, R = Red, G = Green, B = Blue 

Regards,

Ken X.

Edited by Guest

Multi Theft Auto: San Andreas - DM/DD Race Server

350x20.png

Multi Theft Auto: San Andreas - Freeroam Server (WIP)

350x20.png

Wolfenstein: Enemy Territory Server

350x20.png

Mafia II Multiplayer Server

350x20.png

More Insane-Players Server

Posted
Hi,

I tried to change the text color of my checkbox with

guiSetProperty(mainGUI["checkbox"][i], "NormalTextColour", tocolor(255, 127, 0)) 

On another topic it says that I'd need to use 'tocolor' for the third argument.

So I did that one, it's supposed to change the color of the checkbox into 'orange' (as seen here), but somehow, the function changed the color into 'pink' instead of 'orange'.

Any idea about this one? #-o

Regards,

Ken X.

  
guiSetProperty(mainGUI["checkbox"][i],"NormalTextColour","FFFF7F00") 
  

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Posted

Oh, I see. Thank you, it's working well now.

Would you mind to explain me the differences?

Multi Theft Auto: San Andreas - DM/DD Race Server

350x20.png

Multi Theft Auto: San Andreas - Freeroam Server (WIP)

350x20.png

Wolfenstein: Enemy Territory Server

350x20.png

Mafia II Multiplayer Server

350x20.png

More Insane-Players Server

Posted
Oh, I see. Thank you, it's working well now.

Would you mind to explain me the differences?

guiSetProperty(mainGUI["checkbox"],"NormalTextColour","FFFF7F00")

FF 

is the main

FF7F00 

color code without #

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Posted

So, it's actually

AARRGGBB 

I tried to do 00FF7F00 to make sure if the first 2 letters is the alpha, and it's working.

Uhm, oh well, thanks for the help.

Multi Theft Auto: San Andreas - DM/DD Race Server

350x20.png

Multi Theft Auto: San Andreas - Freeroam Server (WIP)

350x20.png

Wolfenstein: Enemy Territory Server

350x20.png

Mafia II Multiplayer Server

350x20.png

More Insane-Players Server

Posted
So, it's actually

AARRGGBB 

I tried to do 00FF7F00 to make sure if the first 2 letters is the alpha, and it's working.

Uhm, oh well, thanks for the help.

You're welcome.

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...