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-23-2012, 02:03 AM #29
Choco
Respect my authoritah!!
Originally posted by IELIITEMODZX View Post
im not flaming daft as his menu is good but i dont like how his looks. that's just my opinion. :wub:


With your menu base how can I get the text & scrollbar smaller? I try but whatever I do makes the text huge and the scroller small :\
01-23-2012, 02:10 AM #30
Originally posted by .Choco View Post
With your menu base how can I get the text & scrollbar smaller? I try but whatever I do makes the text huge and the scroller small :\
add me on skype and ill do it for you tomoz kk im going to bed now lolz
01-23-2012, 03:40 AM #31
1337HaXaLoT
Bounty hunter
Originally posted by DlBSY993 View Post
"fight your battles"??? this is a battle ok .... you sunk my battle ship now its my go :dumb:
go for it then:pedo:
01-23-2012, 04:12 PM #32
IVI40A3Fusionz
Former Gaming Squad Member
WOW why is there so much hatred in Elites thread when he releases something? Elite doesn't even start it O.o.
01-23-2012, 07:40 PM #33
your gay or sumet i dont care

The following user thanked nZxMikeeeyx for this useful post:

IELIITEMODZX
01-23-2012, 08:21 PM #34
Karoolus
I'm the W@W Menu Guy !
what's with all the hatred anyway..
write your own codes, look at other people's codes if you want
don't say yours is better, it might be better in your opinion, someone else might have a totally different view on the matter...

imo my menu base is best, cause i wrote it myself & it has everything i need.. that doesn't mean everyone has to think mine is best.. i've seen some pretty nice bases out there, most of them are great.. i just like my own, cause i know every line of code in it, so i know how it works, why it works, how to change it..

ppl who wrote their own base will understand what i'm saying Winky Winky


Originally posted by IELIITEMODZX View Post
im not flaming daft as his menu is good but i dont like how his looks. that's just my opinion. :wub:


his menu = my menu :p
he never wrote a menu Winky Winky

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

these are mine: made them a while ago

looks like sh*t

probably overflow
01-23-2012, 08:39 PM #35
Originally posted by Karoolus View Post
..


Originally posted by another user
what's with all the hatred anyway..
write your own codes, look at other people's codes if you want
don't say yours is better, it might be better in your opinion, someone else might have a totally different view on the matter...


^ This what happens here now. No one has any imagination. They wait for someone to post something and then rip it apart like a bunch of coding hyenas. It's pretty sad if you ask me..

Originally posted by another user
his menu = my menu
he never wrote a menu

I've never claimed to have written a menu. I wouldn't even try it. But you have to learn to translate what these people mean here. By "menu" he means "patch".

And to any one who says my scripting/coding is :puke:

I never got taught any programming at all, I am completely self taught. I got thrown out of school and had to get a job to pay my way.

So if you don't like the way I write my patch because it's not to your 1337 standards, well feel free to go and make a better patch and then kiss my arse :dance:
01-23-2012, 08:53 PM #36
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
^ This what happens here now. No one has any imagination. They wait for someone to post something and then rip it apart like a bunch of coding hyenas. It's pretty sad if you ask me..


I've never claimed to have written a menu. I wouldn't even try it. But you have to learn to translate what these people mean here. By "menu" he means "patch".

And to any one who says my scripting/coding is :puke:

I never got taught any programming at all, I am completely self taught. I got thrown out of school and had to get a job to pay my way.

So if you don't like the way I write my patch because it's not to your 1337 standards, well feel free to go and make a better patch and then kiss my arse :dance:


I'd have to admit your coding is pretty scruffy if i could say that (My opinion) but tbh i dunno what everyone is moaning about i can read it just fine :s.
01-23-2012, 08:56 PM #37
Originally posted by IVI40A3Fusionz View Post
I'd have to admit your coding is pretty scruffy if i could say that (My opinion) but tbh i dunno what everyone is moaning about i can read it just fine :s.



Read the above.

a) Of course it's scruffy, I have never had a single lesson. I make it up as I go along..

b) I don't write it to be judged by a load of internet bad boy coders. I wrote it for the patch to be used on a PS3 and enjoyed..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo