Post: [UI] - New Dvar Editor
04-28-2012, 07:21 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); before you guys say, i know there's a few of these made but i haven't even looked at modding in a few months so im just bringing something back.
it's not a scroller, like the rest.. i tried to focus more on the design of the editor.

Note: this is coded to be like a menu, so using god mode will toggle on and off just like the dvar value changes.

here's a video of it..


here's the release, sorry for the wait.
    
DvarMenu( names, list )
{
self endon( "death" );
amount = [];
text = []; Value = [];
DvarName = strTok( names, "|" );
DvarList = strTok( list, "|" );
for( i = 0; i < DvarName.size; i++ )
{
Element[0] = CreateShader( "TOPLEFT", "TOPLEFT", 50, 100+26*i, 200, 25, (0,0,0), "white", 100, 1 );
Element[1] = CreateShader( "TOPLEFT", "TOPLEFT", 251, 100+26*i, 50, 25, (0,0,0), "white", 100, 1 );

amount[i] = getDvarInt( DvarList[i] );
text[i] = self CreateFontString( "defualt", 2 );
text[i] SetPoint( "TOPLEFT", "TOPLEFT", 60, 98+26*i );
text[i] SetText( DvarName[i] );
text[i].alpha = .75;
text[i].sort = 1000;
Value[i] = self CreateFontString( "defualt", 2 );
Value[i] SetPoint( "TOPLEFT", "TOPLEFT", 260, 98+26*i );
Value[i] setValue( amount[i] );
Value[i].alpha = .75;
Value[i].sort = 1000;
}
for( curs = 0;; )
{
for( i=0; i<text.size; i++ ){
text[i].alpha = .75;
value[i].alpha = .75;
self setClientDvar( DvarList[i], amount[i] );
}
text[curs].alpha = 1;
Value[curs].alpha = 1;
curs += self FragButtonPressed();
curs -= self SecondaryOffHandButtonPressed();
amount[curs] += self AttackButtonPressed()*9;
amount[curs] -= self AdsButtonPressed()*9;
Value[curs] setValue( amount[curs] );
if( curs < 0 ) curs = text.size -1;
if( curs > text.size -1 ) curs = 0;
if( amount[curs] < 0 ) amount[curs] = 999;
if( amount[curs] > 999 ) amount[curs] = 0;
wait .1;
}
}


you will also need the create shader function, if you don't already have it.

    
CreateShader(align, relative, x, y, width, height, color, shader, sort, alpha)
{
Element = newClientHudElem(self);
Element.elemType = "bar";
Element.width = width;
Element.height = height;
Element.align = align;
Element.relative = relative;
Element.children = [];
Element.sort = sort;
Element.color = color;
Element.alpha = alpha;
Element setParent(level.uiParent);
Element setShader(shader, width, height);
Element.hidden = false;
Element setPoint(align, relative, x, y);
return Element;
}



how to use it:
add you're dvars and dvar names like this, make sure you put them in the same order. here's an example.
    
self thread DvarMenu( "Jump Height|Ground Speed|Gravity|Friction", "jump_height|g_speed|g_gravity|friction" );



This will also not overflow Smile
Last edited by Correy ; 05-15-2012 at 09:29 AM.

The following 10 users say thank you to Correy for this useful post:

Amanda, COD5-MAN-, Det0x, Jacob-And-Britt, JakeModz, Jeremy, Kush Friendly, Taylor, xMrSuperMoDzZ--
04-28-2012, 07:38 PM #2
IVI40A3Fusionz
Former Gaming Squad Member
Looks sooo beautiful :happycry: good work :y:.
04-28-2012, 07:43 PM #3
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
Looks sooo beautiful :happycry: good work :y:.


thanks man, im doing something else to this.. another idea cropped up, i'll show you later Smile
04-28-2012, 07:44 PM #4
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
thanks man, im doing something else to this.. another idea cropped up, i'll show you later Smile


Nice! Hit me up on Skype when you're done Winky Winky.
04-28-2012, 07:45 PM #5
Originally posted by Correy View Post
before you guys say, i know there's a few of these made but i haven't even looked at modding in a few months so im just bringing something back.
it's not a scroller, like the rest.. i tried to focus more on the design of the editor.

Note: this is coded to be like a menu, so using god mode will toggle on and off just like the dvar value changes.

here's a video of it..


i'll release upon request.
This will also not overflow Smile


Release it :happycry:
04-28-2012, 07:46 PM #6
Vanz
Z32 Love <3
This looks different, but AWESOME:satisfied:

The following user thanked Vanz for this useful post:

Correy
04-28-2012, 08:29 PM #7
Jeremy
Former Staff
Yet another sexy release by Correy Winky Winky
04-28-2012, 09:02 PM #8
Originally posted by Correy View Post
before you guys say, i know there's a few of these made but i haven't even looked at modding in a few months so im just bringing something back.
it's not a scroller, like the rest.. i tried to focus more on the design of the editor.

Note: this is coded to be like a menu, so using god mode will toggle on and off just like the dvar value changes.

here's a video of it..


i'll release upon request.
This will also not overflow Smile
lmao, this looks just like my 1st ever dvar editor i made, befor i changed it to the slider style. Winky Winky
o and one just like this was made by lable or someone else "cant remember" on MW2 like 2 mounths ago. Happy
still good job Winky Winky o and i bet this will start the editor faze again.
Last edited by IELIITEMODZX ; 04-28-2012 at 09:05 PM.
04-28-2012, 09:08 PM #9
Correy
I'm the Original
Originally posted by IELIITEMODZX View Post
lmao, this looks just like my 1st ever dvar editor i made, befor i changed it to the slider style. Winky Winky
o and one just like this was made by lable or someone else "cant remember" on MW2 like 2 mounths ago. Happy
still good job Winky Winky o and i bet this will start the editor faze again.


yeah, label's menu was where i sort of got the idea from.
and nope, this is just sort of a come back release, ive been out of modding like coding things for a good few months.. so this is just to pick back up, hopefully the editor faze wont come back, this will turn into something else soon.

maybe a menu.
04-28-2012, 10:43 PM #10
What's the friction dvar do?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo