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-10-2012, 03:36 AM #29
Originally posted by x. View Post
Funny that. They both have the same (ie: incorrect) spelling Awesome face


It allows for smaller code size, no?
02-12-2012, 09:55 AM #30
MeowDev
Power to the Premium
Still, looks a lot like an edit & getting someone to watch you code it.. seriously?
02-12-2012, 12:15 PM #31
Correy
I'm the Original
Originally posted by Telepot View Post
Still, looks a lot like an edit & getting someone to watch you code it.. seriously?


no i didnt do that, he was just teamviewing me at the time.. problem?
02-12-2012, 03:05 PM #32
MeowDev
Power to the Premium
Originally posted by Correy View Post
no i didnt do that, he was just teamviewing me at the time.. problem?

Teamviewing you.. while you were writing code.. on your slow pc.. You sure it could handle that? I just think you've run in to a brick wall here,

The following user thanked MeowDev for this useful post:

247Yamato
02-12-2012, 04:16 PM #33
247Yamato
< ^ > < ^ >
Originally posted by Telepot View Post
Teamviewing you.. while you were writing code.. on your slow pc.. You sure it could handle that? I just think you've run in to a brick wall here,


I have seen many leechers saying the same thing: he saw me coding it.

The following user thanked 247Yamato for this useful post:

x_DaftVader_x
02-12-2012, 04:52 PM #34
Correy
I'm the Original
Originally posted by Telepot View Post
Teamviewing you.. while you were writing code.. on your slow pc.. You sure it could handle that? I just think you've run in to a brick wall here,


Originally posted by 247Yamato View Post
I have seen many leechers saying the same thing: he saw me coding it.


yes cause i have a pc, its a laptop and it's not slow..
yes okay im a leecher, shut your mouth. i dont give a shit about what you think, go tell someone who's bothered.

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

247Yamato, MeowDev, x_DaftVader_x
02-12-2012, 06:10 PM #35
Originally posted by 247Yamato View Post
I have seen many leechers saying the same thing: he saw me coding it.
It's the internet equivalent of "ask my mate, he saw me do it " :carling:

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

247Yamato, iiReFuZee

The following user groaned x_DaftVader_x for this awful post:

Correy
02-12-2012, 07:26 PM #36
Blackstorm
Veni. Vidi. Vici.
Originally posted by Badman.
You're all getting so vexed over him 'apparently' leeching, who gives a shit, after all I thought this game was old and 'nothing is new'... Happy
I don't see how you act it's not possible for him to have made this though, Correy is one of the most intelligent programmers I know.

I mean you get the programmers who just do it by the books and the ones who experiment more, which I respect.
Plus the fact that Correy is not totally 'self taught', being he does not lack basic knowledge (like I do :().



There is no tutorial for GSC besides teaching you VERY basic scripting techniques. Most people who are good with GSC are self taught. :p

The following user thanked Blackstorm for this useful post:

IELIITEMODZX
02-12-2012, 07:40 PM #37
Correy
I'm the Original
Originally posted by Badman.
You're all getting so vexed over him 'apparently' leeching, who gives a shit, after all I thought this game was old and 'nothing is new'... Happy
I don't see how you act it's not possible for him to have made this though, Correy is one of the most intelligent programmers I know.

I mean you get the programmers who just do it by the books and the ones who experiment more, which I respect.
Plus the fact that Correy is not totally 'self taught', being he does not lack basic knowledge (like I do :().


exactly, thanks alot for this.
but i have to say, im about 70% self taught.. plus i dont think you lack knowledge at all

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo