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:50 PM #20
Originally posted by x. View Post
looks good on the big TV IMO.. each to their own though..

You going to re write anything else from my patch? :lol: < jk
no lolz sorry :p just had 15mins of free time so i made this Happy
01-22-2012, 11:52 PM #21
1337HaXaLoT
Bounty hunter
Originally posted by x. View Post
You have serious problems. This might help You must login or register to view this content.
lol thanks this will come in handy one day
01-22-2012, 11:54 PM #22
Originally posted by IELIITEMODZX View Post
no lolz sorry :p just had 15mins of free time so i made this Happy
Did mine in 14 :fyea:
01-22-2012, 11:56 PM #23
Originally posted by x. View Post
Did mine in 14 :fyea:
lolz :PBJ:
01-23-2012, 12:02 AM #24
DlBSY993
There's 0nly 1..
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



Oh reli? Well considering you dont know where downing street is .. and you Live in Hull (which for americans this means he lives in the UK ) and someone rather important lives there none the less hes a cock but if you dont know that there are to choices you are one of those little 14 year old kids that walk around thinking theyre solid .. and start a fight with anyone , and stop when someone actually retaliates and punches them in the nose.... or you have mental issues.
01-23-2012, 12:05 AM #25
Originally posted by DlBSY993 View Post
Oh reli? Well considering you dont know where downing street is .. and you Live in Hull (which for americans this means he lives in the UK ) and someone rather important lives there none the less hes a cock but if you dont know that there are to choices you are one of those little 14 year old kids that walk around thinking theyre solid .. and start a fight with anyone , and stop when someone actually retaliates and punches them in the nose.... or you have mental issues.
i live in hull to :PBJ:
01-23-2012, 12:14 AM #26
DlBSY993
There's 0nly 1..
Originally posted by IELIITEMODZX View Post
i live in hull to :PBJ:


well then do everyone a favor and kick this 10 year old in his 1incher... sorry for having this on your thread but he is to blame.

---------- Post added at 07:14 PM ---------- Previous post was at 07:09 PM ----------

Originally posted by x. View Post
Did mine in 14 :fyea:


hahahhaa brilliant :black:
01-23-2012, 12:31 AM #27
1337HaXaLoT
Bounty hunter
Originally posted by DlBSY993 View Post
well then do everyone a favor and kick this 10 year old in his 1incher... sorry for having this on your thread but he is to blame.

---------- Post added at 07:14 PM ---------- Previous post was at 07:09 PM ----------



hahahhaa brilliant :black:
elite knows me and he wont dare tuch me so sorry find some one else to fight your battles,
01-23-2012, 01:17 AM #28
DlBSY993
There's 0nly 1..
Originally posted by 1337HaXaLoT View Post
elite knows me and he wont dare tuch me so sorry find some one else to fight your battles,


"fight your battles"??? this is a battle ok .... you sunk my battle ship now its my go :dumb:

The following user thanked DlBSY993 for this useful post:

247Yamato

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo