What's new

Discussion [RELEASE] My RGB Editor

  • Thread starter IELIITEMODZX
  • Start date
  • Views 4,927
IELIITEMODZX

IELIITEMODZX

Enthusiast
Seasoned Veteran
Messages
506
Reaction score
223
Points
125
Sin$
0
here they are hope you like.

credit to mikeeey <3 he helped me alot
thread it like this:
Code:
self thread colorEditor(<hud here>);
Code:
colorEditor(sHud)
{
 self endon("death");
 self endon("disconnect");
 for(k = 0; k < 3; k++)
 {
  curs["slide"][k] = 0;
  curs["coll"][k] = 0;
 }
 curs["scroll"] = 0;
 color["scrollBar"] = createRectangle("","",0,((curs["scroll"]*28)+30),230,24,(0,0,0),"white",20,1);
 color["backGround"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",10,(1/2.40));
 for(k = 0; k < 3; k++)
 {
  color["slide"][k] = createRectangle("","",(((curs["slide"][curs["scroll"]]*10)/5)-(100)),((28*k)+30),3,17,(1,1,1),"white",200,1);
  color["bar"][k] = createRectangle("","",0,((28*k)+30),200,2,(1,1,1),"white",150,.9);
 }
 for(k = 0; k < 3; k++)
  color["value"][k] = createValue("default",1.9,"","",((k*70)-70),((color["slide"][1].y)-65),1,13,0);
  
 color["foreground"] = createRectangle("","",0,color["slide"][1].y,230,94,(0,0,0),"white",11,(1/3.20));
 color["preview"] = createRectangle("","",0,((color["slide"][1].y)-65),230,30,(0,0,0),"white",12,1);
 wait .2;
 while(1)
 {
  self freezeControls(true);
  if(self attackButtonPressed() || self adsButtonPressed())
  {
   curs["slide"][curs["scroll"]] -= self adsButtonPressed();
   curs["slide"][curs["scroll"]] += self attackButtonPressed();
   if(curs["slide"][curs["scroll"]] > 100)
    curs["slide"][curs["scroll"]] = 0;
    
   if(curs["slide"][curs["scroll"]] < 0)
    curs["slide"][curs["scroll"]] = 100;
    
   color["slide"][curs["scroll"]] setPoint("","",(((curs["slide"][curs["scroll"]]*10)/5)-(100)),color["slide"][curs["scroll"]].y);
   curs["coll"][curs["scroll"]] = ((curs["slide"][curs["scroll"]]*2.55)/255);
   for(k = 0; k < color["value"].size; k++)
    color["value"][k] setValue(int(color["preview"].color[k]*255));
    
   color["preview"].color = (curs["coll"][0], curs["coll"][1], curs["coll"][2]);
  }
  if(self fragButtonPressed() || self secondaryOffHandButtonPressed())
  {
   curs["scroll"] -= self secondaryOffHandButtonPressed();
   curs["scroll"] += self fragButtonPressed();
   if(curs["scroll"] >= color["slide"].size)
    curs["scroll"] = 0;
    
   if(curs["scroll"] < 0)
    curs["scroll"] = color["slide"].size-1;
    
   color["scrollBar"].y = color["bar"][curs["scroll"]].y;
   wait .2;
  }
  if(self meleeButtonPressed())
   break;
   
  if(self useButtonPressed())
  {
   sHud.color = color["preview"].color;
   break;
  }
  wait .05;
 }
 self freezeControls(false);
 keys = getArrayKeys(color);
 for(k = 0; k < keys.size; k++)
  if(isDefined(color[keys[k]][0]))
   for(r = 0; r < color[keys[k]].size; r++)
    color[keys[k]][r] destroy();
  else
   color[keys[k]] destroy();
}

you will need these again.

Code:
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
 barElemBG = newClientHudElem(self);
 barElemBG.elemType = "bar";
 barElemBG.width = width;
 barElemBG.height = height;
 barElemBG.align = align;
 barElemBG.relative = relative;
 barElemBG.xOffset = 0;
 barElemBG.yOffset = 0;
 barElemBG.children = [];
 barElemBG.sort = sort;
 barElemBG.color = color;
 barElemBG.alpha = alpha;
 barElemBG setParent(level.uiParent);
 barElemBG setShader(shader, width, height);
 barElemBG.hidden = false;
 barElemBG setPoint(align, relative, x, y);
 thread destroyElemOnDeath(barElemBG);
 return barElemBG;
}
createValue(font,fontscale,align,relative,x,y,alpha,sort,value)
{
 hudValue = createFontString(font,fontscale,self);
 hudValue setPoint(align,relative,x,y);
 hudValue.alpha = alpha;
 hudValue.sort = sort;
 hudValue setValue(value);
 thread destroyElemOnDeath(hudValue);
 return hudValue;
}
destroyElemOnDeath(elem)
{
 self waittill("death");
 if(isDefined(elem.bar))
  elem destroyElem();
 else
  elem destroy();
}
 
iHax XeX

iHax XeX

Enthusiast
Messages
668
Reaction score
201
Points
125
Sin$
0
This is actually surprisingly coded similarly to my Zombie Dvar slider I made for waw lol.
 
iHax XeX

iHax XeX

Enthusiast
Messages
668
Reaction score
201
Points
125
Sin$
0
everyone is copying my ideas, lol :frown:
Well actually I coded my dvar editor before Mikey ever showed his preview for the RBG editor. Although I'm sure we were both working on coding our editors at the same time lol. I was just waiting to preview mine in my Redemption v1 menu.
 
IELIITEMODZX

IELIITEMODZX

Enthusiast
Seasoned Veteran
Messages
506
Reaction score
223
Points
125
Sin$
0
Well actually I coded my dvar editor before Mikey ever showed his preview for the RBG editor. Although I'm sure we were both working on coding our editors at the same time lol. I was just waiting to preview mine in my Redemption v1 menu.
no lol i made my sliders like 7months ago lol mikeeey copyed me, and now everyone is copying. no one makes original things now :frown:
 
iHax XeX

iHax XeX

Enthusiast
Messages
668
Reaction score
201
Points
125
Sin$
0
no lol i made my sliders like 7months ago lol mikeeey copyed me, and now everyone is copying. no one makes original things now :frown:
Well considering the fact that I never saw any type of preview for your RBG sliders before Mikey posted his preview and I barely ever come in this forum, I technically didn't copy you since I had no idea or knowledge of what you were doing. If I, or any one else for the matter, am copying anyone for making a slider it would be Kbrizzle since he was the first.
 
IELIITEMODZX

IELIITEMODZX

Enthusiast
Seasoned Veteran
Messages
506
Reaction score
223
Points
125
Sin$
0
no i made my dvar editors 7m ago lol and now everyone is copying me with them :frown: (and my style useing 2 shaders)
 
iHax XeX

iHax XeX

Enthusiast
Messages
668
Reaction score
201
Points
125
Sin$
0
no i made my dvar editors 7m ago lol and now everyone is copying Kbrizzle with them :frown: (and my style useing 2 shaders)

Besides, I didn't copy you which only leaves everyone as 2 people, Mikey and that guy from MW2 modding.
 
Liquid44

Liquid44

Banned
Programmer
Messages
1,158
Reaction score
691
Points
245
Sin$
0
Why does it even matter? As long as they did not use your code, an idea is just an idea...thats like saying all these modern FPS are a copycat of doom lol which is just dumb.

Who knows maybe they coded it in a more efficient way than yours.
 
Top Bottom
Login
Register