Post: [Release] - RGB Editor
02-02-2012, 04:50 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({});
here's a preview.


this will need to be edited to suit your menu

call it like this.
    
self thread EditColor( <element> );


and here's the coding.
    
EditColor( element )
{
self endon( "death" );
self.RGB["Init"] = true;
self.RGB["Curs"] = 0;
self thread ExitMenu();
wait .1;
self.RGB["Value"][0] = 0; self.RGB["Value"][1] = 0; self.RGB["Value"][2] = 0;
self.RGB["Bar"][0] = self createProgresBar((1,1,1), 255, 15, "RIGHT", "CENTER", 75, 0);
self.RGB["Bar"][1] = self createProgresBar((1,1,1), 255, 15, "RIGHT", "CENTER", 75, 17);
self.RGB["Bar"][2] = self createProgresBar((1,1,1), 255, 15, "RIGHT", "CENTER", 75, 34);
while( self.RGB["Init"] && !self.M["Init"])
{
//self freezeControls( true );
for( s=0; s<2; s++ ) self thread destroyOnEvent( self.RGB["Bar"][s], "death|disconnect|exit_editor" );
if( self.RGB["Curs"] < 0 ) self.RGB["Curs"] = 2;
if( self.RGB["Curs"] > 2 ) self.RGB["Curs"] = 0;
self.RGB["Value"][self.RGB["Curs"]] += self FragButtonPressed();
self.RGB["Value"][self.RGB["Curs"]] -= self SecondaryOffHandButtonPressed();
if( self AttackButtonPressed() ){ self.RGB["Curs"]++; wait 1; }
if( self ADSButtonPressed() ){ self.RGB["Curs"]--; wait 1; }
if( self.RGB["Value"][self.RGB["Curs"]] > 255 ) self.RGB["Value"][self.RGB["Curs"]] = 0;
if( self.RGB["Value"][self.RGB["Curs"]] < 0 ) self.RGB["Value"][self.RGB["Curs"]] = 255;
self.RGB["Bar"][self.RGB["Curs"]] updateBar( self.RGB["Value"][self.RGB["Curs"]]/255 );
self.RGB["RGBValue"] = ((self.RGB["Value"][0])/255,(self.RGB["Value"][1])/255,(self.RGB["Value"][2])/255);
for( x=0; x<3; x++ ) self.RGB["Bar"][x].color = self.RGB["RGBValue"];
for( i=0; i<self.RGB["Bar"].size; i++ ) self.RGB["Bar"][i].alpha = .35;
self.RGB["Bar"][self.RGB["Curs"]].alpha = 1;
if( self UseButtonPressed() ){
self iPrintln( "New color : " + self.RGB["RGBValue"] );
element.color = self.RGB["RGBValue"];
self.RGB["Init"] = false;
for( x=0; x<3; x++ )
self.RGB["Bar"][x] destroyElem();
self notify( "exit_editor" );
}
if( self UseButtonPressed() ){
self.RGB["Init"] = false;
for( x=0; x<3; x++ )
self.RGB["Bar"][x] destroyElem();
self notify( "exit_editor" );
}
wait .01;
}
self freezeControls( false );
self.RGB["Init"] = false;
for( x=0; x<3; x++ )
self.RGB["Bar"][x] destroyElem();
self notify( "exit_editor" );
}

createProgresBar(color, width, height, xAlign, yAlign, x, y)
{
Bar = self createBar(color, width, height);
Bar setPoint(xAlign, yAlign, x, y);
return Bar;
}

destroyOnEvent( element, events )
{
event = strTok( events, "|" );
for( x=0; x<event.size; x++ )
{
self waittill( event[x] );
element destroyElem();
}
}


yes its big coding, but it functions perfect.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Correy for this useful post:

FM|T xR3PMz, FourzerotwoFAILS, IVI40A3Fusionz, Taylor, xMrCheatVisionx

The following 2 users groaned at Correy for this awful post:

247Yamato, x_DaftVader_x
02-12-2012, 07:40 PM #38
Blackstorm
Veni. Vidi. Vici.
Originally posted by Badman.
I'm talking about the general syntax, I don't really mean tutorials either, I mean research and understand what he is doing in depth. :p

---------- Post added at 02:32 PM ---------- Previous post was at 02:29 PM ----------


Also I would argue people who have good experience in javascript would be better then a self taught individual.


Javascript is the most similar but not completely the same, and experience with GSC is what determines your skill level.
02-12-2012, 07:42 PM #39
Correy
I'm the Original
Originally posted by x. View Post
It's the internet equivalent of "ask my mate, he saw me do it " :carling:


yes okay vader.
it has nothing to do with you so stay put.
02-12-2012, 07:45 PM #40
Correy
I'm the Original
Originally posted by Badman.
I'm a failure when it comes to programming, we all know it :p


i think you're actually good, you taught me some stuff i never knew..
02-12-2012, 07:45 PM #41
Originally posted by Correy View Post
yes okay vader.
it has nothing to do with you so stay put.
Uh oh. Another internet badboy /facepalm
02-12-2012, 09:04 PM #42
Default Avatar
Gizmo
Guest
You must login or register to view this content.

Stay on topic guys stare

The following user thanked Gizmo for this useful post:

Correy
02-12-2012, 09:34 PM #43
Correy
I'm the Original
Originally posted by x. View Post
Uh oh. Another internet badboy /facepalm


uh wait, another guy with no life. oh yeah. /facepalm

---------- Post added at 09:34 PM ---------- Previous post was at 09:33 PM ----------

Originally posted by Badman.
I did????? YOU MUST SUCK!
lol jk jk


the regex, before you teaching me i didnt knew it existed :whistle:
02-12-2012, 10:52 PM #44
little_legz
SleepinIsCheatin
Reading the posts on this thread.

Got the lolz like FUARRRRRRK.
02-13-2012, 09:05 AM #45
Karoolus
I'm the W@W Menu Guy !
Originally posted by Gizmo View Post
You must login or register to view this content.


You must login or register to view this content.
Drowzeeeeeee
02-13-2012, 09:10 AM #46
Blackstorm
Veni. Vidi. Vici.
Originally posted by Karoolus View Post
You must login or register to view this content.
Drowzeeeeeee


You must login or register to view this content.

The following 6 users say thank you to Blackstorm for this useful post:

Amanda, Complete Speed, Karoolus, little_legz, Rainbow Gravity

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo