Post: [SCRIPT] Easier way to change colors
09-06-2012, 12:40 PM #1
TOM DAINTY
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); I know some of you may find this pointless, but I find it quite useful + It's less functions.

    
colorRGB( Elem, RGB )
{
Elem.color = RGB;
}


I know you can just go "self.scrollbar.color = (1,1,0);" etc. but in this case you can thread it from one function instead of making constant ones for each color.
Thread it like this colorRBG( self.scrollbar, (0,0,1) );
Hope some people find this helpful Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to TOM DAINTY for this useful post:

Harry, IVI40A3Fusionz, Simple-_-Modz, xRaW

The following 2 users groaned at TOM DAINTY for this awful post:

247Yamato, Taylor
09-07-2012, 05:28 AM #11
Blackstorm
Veni. Vidi. Vici.
it's a lot easier just setting the color directly. just saying :p
09-07-2012, 08:42 AM #12
TOM DAINTY
Do a barrel roll!
Originally posted by The
The first one uses less characters than the second one :derp:


I used self.scrollbar as an example. Not everyone shaders are called that. colorRBG(self.scrollbar,(0,0,1)); is still small and only takes up 33 characters. Stop trying to show off, I'm only trying to help out fuck me!!

The following user thanked TOM DAINTY for this useful post:

Simple-_-Modz
09-07-2012, 03:52 PM #13
IVI40A3Fusionz
Former Gaming Squad Member
I think this would be more useful for changing the hud colour from the menu so you don't have to have a new function for each colour and/or hud :y: basic but good work Tom.

The following 2 users say thank you to IVI40A3Fusionz for this useful post:

Simple-_-Modz, TOM DAINTY
09-07-2012, 10:58 PM #14
TOM DAINTY
Do a barrel roll!
Originally posted by IVI40A3Fusionz View Post
I think this would be more useful for changing the hud colour from the menu so you don't have to have a new function for each colour and/or hud :y: basic but good work Tom.


Exactly what I created it for. I don't really see why people still groan and hate, I mean it's only something that might help people. I don't hate/groan anymore, but thanks anyway Ryan

The following 2 users say thank you to TOM DAINTY for this useful post:

IVI40A3Fusionz, Simple-_-Modz
09-08-2012, 12:54 AM #15
xRequiKz
Are you high?
LOL Random Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo