KenXeiko Posted January 12, 2013 Posted January 12, 2013 (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? 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 January 12, 2013 by Guest Multi Theft Auto: San Andreas - DM/DD Race Server Multi Theft Auto: San Andreas - Freeroam Server (WIP) Wolfenstein: Enemy Territory Server Mafia II Multiplayer Server More Insane-Players Server
MR.S3D Posted January 12, 2013 Posted January 12, 2013 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? Regards, Ken X. guiSetProperty(mainGUI["checkbox"][i],"NormalTextColour","FFFF7F00") Welcom to my server Q.5 Current game type in my server Drift my Email : [email protected] Programming level: 90%
KenXeiko Posted January 12, 2013 Author Posted January 12, 2013 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 Multi Theft Auto: San Andreas - Freeroam Server (WIP) Wolfenstein: Enemy Territory Server Mafia II Multiplayer Server More Insane-Players Server
MR.S3D Posted January 12, 2013 Posted January 12, 2013 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 my Email : [email protected] Programming level: 90%
KenXeiko Posted January 12, 2013 Author Posted January 12, 2013 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 Multi Theft Auto: San Andreas - Freeroam Server (WIP) Wolfenstein: Enemy Territory Server Mafia II Multiplayer Server More Insane-Players Server
MR.S3D Posted January 12, 2013 Posted January 12, 2013 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 my Email : [email protected] Programming level: 90%
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now