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, 08:59 PM #38
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
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..


I weren't hating btw i don't care if you never had a lesson half of us haven't, i weren't judging at all there's a difference in judging and stating an opinion.
01-23-2012, 08:59 PM #39
Karoolus
I'm the W@W Menu Guy !
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 know you never said that.. you told me straight away you used my base.. you even used my base-patch (i recognized the gsc names Happy ) but idc, i'm happy at least someone has a use for it (as i told you in PM the other day)

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.


ikr, i can read the scripts just fine.. it's not coded like i would code it, but that's normal.. i like my codes my way, someone else likes his codes his way, that's just the way it is, right ?
01-23-2012, 09:01 PM #40
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Karoolus View Post
i know you never said that.. you told me straight away you used my base.. you even used my base-patch (i recognized the gsc names Happy ) but idc, i'm happy at least someone has a use for it (as i told you in PM the other day)



ikr, i can read the scripts just fine.. it's not coded like i would code it, but that's normal.. i like my codes my way, someone else likes his codes his way, that's just the way it is, right ?


I like my codes neatly presented if i could say it just makes it easier for me to understand them if i go back to the script at a later date.
01-23-2012, 09:07 PM #41
Originally posted by IVI40A3Fusionz View Post
I weren't hating btw i don't care if you never had a lesson half of us haven't, i weren't judging at all there's a difference in judging and stating an opinion.
I know you weren't but I get tired of the attitude on here sometimes.
Eg: wait for someone to release a patch, look inside, re write one of the functions, release it as yours and then c**t off the original author for being a noob...

/facepalm

And btw. The .ff viewer has a "beautify gsc" button, if you really want to look at the patch just use it and stop moaning...

Rants over for tonight. And again, not aimed at you, just you got quoted Smile )
01-23-2012, 09:10 PM #42
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
I know you weren't but I get tired of the attitude on here sometimes.
Eg: wait for someone to release a patch, look inside, re write one of the functions, release it as yours and then **** off the original author for being a noob...

/facepalm

And btw. The .ff viewer has a "beautify gsc" button, if you really want to look at the patch just use it and stop moaning...

Rants over for tonight. And again, not aimed at you, just you got quoted Smile )


Well the attitude on here hasn't changed imo mainly because i started getting active about 3 months ago when i started to code so i probably chose the wrong time to start being active i guess :(.

I don't need to beautify your code to read it i can read it just fine it's just a little trickier than other peoples :p.

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

Woof, IELIITEMODZX
01-24-2012, 02:34 PM #43
Originally posted by IELIITEMODZX View Post
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();
}


is this stable on PS3?...
01-24-2012, 02:51 PM #44
Originally posted by sniipezZ View Post
is this stable on PS3?...
yes its not useing setText() so it will work fine on ps3 Happy
01-24-2012, 07:33 PM #45
Murt
< ^ > < ^ >
nice, i had this on my patch on cod5, duno if u remember me

The following user thanked Murt for this useful post:

chris2k7sears
01-24-2012, 08:42 PM #46
Originally posted by Murt View Post
nice, i had this on my patch on cod5, duno if u remember me


stare the only mod ive seen like this is on daft vaders menu.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo