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-02-2012, 09:22 PM #11
Correy
I'm the Original
Originally posted by x. View Post
Funny that. They both have the same (ie: incorrect) spelling Awesome face


i actually forgot to include that function
02-02-2012, 09:23 PM #12
Originally posted by nZxMikeeeyx View Post
hahahaaaa well spotted,
This is Correy vvv :P
You must login or register to view this content.

---------- Post added at 09:21 PM ---------- Previous post was at 09:20 PM ----------


Jus sayin' you have a really cool life Winky Winky


One of the benefits of being a Grammar Nazi Cool Man (aka Tustin)
02-02-2012, 09:23 PM #13
Correy
I'm the Original
Originally posted by nZxMikeeeyx View Post
hahahaaaa well spotted,
This is Correy vvv :P
You must login or register to view this content.

---------- Post added at 09:21 PM ---------- Previous post was at 09:20 PM ----------


Jus sayin' you have a really cool life Winky Winky


you dont know nothing about me or life.
02-02-2012, 09:24 PM #14
IVI40A3Fusionz
Former Gaming Squad Member
To Everyone On This Thread.

02-02-2012, 09:28 PM #15
Originally posted by IVI40A3Fusionz View Post
To Everyone On This Thread.


hahhahaaaa this always jumps into the forum XD XD XD

---------- Post added at 09:28 PM ---------- Previous post was at 09:27 PM ----------

Originally posted by Correy View Post
you dont know nothing about me or life.

stare
im watching you.
02-02-2012, 09:28 PM #16
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by nZxMikeeeyx View Post
hahhahaaaa this always jumps into the forum XD XD XD


I just love posting it Dancing.
02-02-2012, 09:30 PM #17
Originally posted by IVI40A3Fusionz View Post
I just love posting it Dancing.

I just love listening to it Dancing.
02-02-2012, 11:06 PM #18
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Badman.
Just thought I would point out, you are calling the wrong function :p


lol i just noticed that too, he has EditorColor when its really editcolor
02-03-2012, 05:38 PM #19
Correy
I'm the Original
theres a video for you trolls.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo