Post: [RELEASE] Dvar Editors
01-22-2012, 09:30 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); i was bord so i made these.



thread this
    self thread slider( "< dvar name >", < the dvars max value > );


add this to a .gsc
    slider( dvar, max )
{
curs = 0;
slider["bar"] = createProBar((1,1,1),250,15,"","",0,-20);
slider["value"] = createValue("default",2,"","",0,-40,1,1,curs);
slider["BG"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",-200,.7);
//if you add more huds use slider[- your hud here -] you dont need to add a destroy it will just destroy by its self.
for(;Winky Winky
{
self freezeControls(true);
if(self attackButtonPressed() || self adsButtonPressed())
{
curs += (max/100*self attackButtonPressed());
curs -= (max/100*self adsButtonPressed());
if(curs > max)
curs = 0;

if(curs < 0)
curs = max;

setDvar( dvar, curs );
}
if(self meleeButtonPressed())
break;

slider["bar"] updateBar( curs/max );
slider["value"] setValue( curs );
wait .05;
}
self freezeControls(false); //you dont need this in if your entering your menu.
key = getArrayKeys(slider);
for(k = 0; k < key.size; k++)
slider[key[k]] destroyElem();
}


you need to add these
    
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 );
self thread destroyElemOnDeath( HudValue );
return HudValue;
}
createProBar( Color, Width, Height, Align, Relative, X, Y )
{
Bar = createBar( Color, Width, Height, self );
Bar setPoint( Align, Relative, X, Y );
self thread destroyElemOnDeath( Bar );
return Bar;
}
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);
self thread destroyElemOnDeath( barElemBG );
return barElemBG;
}
destroyElemOnDeath( elem )
{
self waittill("death");
if(isDefined(elem.bar))
elem destroyElem();
else
elem destroy();
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 14 users say thank you to IELIITEMODZX for this useful post:

Woof, 1337HaXaLoT, Choco, Correy, iiReFuZee, ImDUB, IVI40A3Fusionz, Jeremy, Kush Friendly, Cmd-X, Taylor, xMrCheatVisionx

The following user groaned IELIITEMODZX for this awful post:

Kandy-MAN
01-22-2012, 11:15 PM #11
Originally posted by DlBSY993 View Post
Have a look at vaders and see for yourself.. and why am i a fanboy?
im not flaming daft as his menu is good but i dont like how his looks. that's just my opinion. :wub:
01-22-2012, 11:17 PM #12
DlBSY993
There's 0nly 1..
Originally posted by 1337HaXaLoT View Post
I have looked they are not better than elites, im not saying there shit they are good


Its my opinion .. why do you give a flying rats ass what i think? i said elitemodz was good but thourhgt vaders was better (I think vaders is smoother and visually far better.) Now before you get Your knickers in a twist i thought i would state that MR.1337 :dumb: before you start dribbling all over my floor.

The following user thanked DlBSY993 for this useful post:

iiReFuZee
01-22-2012, 11:20 PM #13
DlBSY993
There's 0nly 1..
Originally posted by IELIITEMODZX View Post
im not flaming daft as his menu is good but i dont like how his look. that's just my opinion. :wub:


I tell him all the time his menus looks shit .... but he is persistent and at the end off the day its his patch he can do what ever he wants with it... but he should defo make the text and shaders blue and black *cough*
01-22-2012, 11:36 PM #14
Originally posted by IELIITEMODZX View Post
i was bord so i made these.


My version of this is better. Your other one with the hud element slider looks better..
01-22-2012, 11:42 PM #15
Originally posted by x. View Post
My version of this is better. Your other one with the hud element slider looks better..


i dont like yours the bar is to small and the iPrintlnBold is ugly :wub:
01-22-2012, 11:46 PM #16
1337HaXaLoT
Bounty hunter
LMFAO i just found out that dibsy993 is a Pus*y who thinks he's a big man over the internet Happy

The following 4 users groaned at 1337HaXaLoT for this awful post:

247Yamato, IELIITEMODZX, IVI40A3Fusionz, x_DaftVader_x
01-22-2012, 11:47 PM #17
Originally posted by IELIITEMODZX View Post
i dont like yours the bar is to small and the iPrintlnBold is ugly :wub:
looks good on the big TV IMO.. each to their own though..

You going to re write anything else from my patch? :lol: < jk
01-22-2012, 11:49 PM #18
iiReFuZee
MW3 + BO1 Recoveries
Originally posted by 1337HaXaLoT View Post
LMFAO i just found out that dibsy993 is a Pus*y who thinks he's a big man over the internet Happy


You tell em' 1337HaXaLoT stare
01-22-2012, 11:49 PM #19
Originally posted by 1337HaXaLoT View Post
LMFAO i just found out that dibsy993 is a Pus*y who thinks he's a big man over the internet Happy
You have serious problems. This might help You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo