Post: [RELEASE]Dvar Editor
06-19-2012, 12:06 AM #1
INSAN3LY_D34TH
INSAN3LY GAMING
(adsbygoogle = window.adsbygoogle || []).push({}); Ok guys, this has been done before but I am going through with a new menu base I created today and am coding the whole thing without the use of others codes.

How to use:
    thread: AddSlider 
input of function: set to your dvar your editing such as jump_height

I already have an example in there as i used jump_height

To add more:
    if(dvar=="[COLOR="#FF0000"]put your dvar name here[/COLOR]")
{
self.min=[COLOR="#FF0000"]put your dvar minimum[/COLOR];
self.max=[COLOR="#FF0000"]put your dvar maximum[/COLOR];
if(self.lastvalue!="")
{
self.current=self.lastvalue;
}
else
{
self.current=[COLOR="#FF0000"]set the current number for the dvar[/COLOR];
}
self.dvars=dvar;
self thread EditValue(self.min, self.max, self.current, self.dvars);
}


    AddSlider(dvar)
{
self.MenuLock=true;
self.MenuOptionsText destroy();
if(dvar=="[COLOR="#FF0000"]jump_height[/COLOR]")
{
self.min=1;
self.max=1000;
if(self.lastvalue!="")
{
self.current=self.lastvalue;
}
else
{
self.current=39;
}
self.dvars=dvar;
self thread EditValue(self.min, self.max, self.current, self.dvars);
}
}
EditValue(min,max,cur,editing)
{
self endon("stopdvar");
self.valuebar = self createBar((1,1,1),150,11,self);
self.valuebar setPoint("","",170,-170);
self.value=cur;
self.valuetext=CreateFontString("objective",1.Cool Man (aka Tustin);
self.valuetext SetPoint("LEFT","",90,-170);
self.valuetext.alpha=1;
self.valuetext.sort=100;
self.valuetext SetText("\n" + cur);
wait .2;
for(;Winky Winky
{
if(self AttackButtonPressed())
{
self.value ++;
if(self.value>max)
{
self.value=0;
}
}
if(self AdsButtonPressed())
{
self.value --;
if(self.value<0)
{
self.value=max;
}
}
if(self UseButtonPressed())
{
setDvar(editing, self.value);
self iprintlnbold(editing + " : " + self.value);
self.valuebar destroy();
self.valuetext destroy();
self MenuExit();
self.MenuLock=false;
self.lastvalue=self.value;
self notify("stopdvar");
}
if(self MeleeButtonPressed())
{
self.valuebar destroy();
self.valuetext destroy();
[COLOR="#FF0000"]self MenuExit();[/COLOR]//change this for your menu
[COLOR="#FF0000"]self.MenuLock=false;[/COLOR]//change this for your menu
self notify("stopdvar");
}
self.valuebar updateBar(self.value/1000);
self.valuetext SetText("\n" + self.value);
wait .2;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to INSAN3LY_D34TH for this useful post:

247Yamato, FaSt_FrEEdOm, Harry, IELIITEMODZX, IVI40A3Fusionz, Taylor
06-19-2012, 05:58 PM #11
Newelly
Can’t trickshot me!
Originally posted by IELIITEMODZX View Post
Winky Winky make a fun mod to use, there is not alot of them, there is to much editors around now.


Originally posted by 247Yamato View Post
I dont like it but anyway nice job. Originality is what this section needs Smile


You must login or register to view this content. that's a first :y:

The following user thanked Newelly for this useful post:

INSAN3LY_D34TH
06-19-2012, 06:18 PM #12
Harry
Former Staff
well done on this, its sweet =D Great to see you are releasing stuff again, keep it up! :love:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo