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--
05-01-2012, 09:48 PM #29
Originally posted by forflah123 View Post
you are abusing your power people have the right to post preview it not against the law


Well Said...
05-01-2012, 09:59 PM #30
Originally posted by forflah123 View Post
you are abusing your power people have the right to post preview it not against the law



Originally posted by COD5
Well Said..


You might notice that this is still open and one of my previews is closed..

You might also notice the :derp: I put in the post..

Jeez, you all need to lighten up a bit.. :derpette:

The following user thanked x_DaftVader_x for this useful post:

iiReFuZee
05-05-2012, 04:49 PM #31
Amanda
Can’t trickshot me!
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


This is really awesome and unique! It's very different from all these other Dvar Editors and that makes it so great! It should be released :wub:
05-05-2012, 05:04 PM #32
Correy
I'm the Original
my laptop is in the process off being fixed, i have it saved on there so when i get it back ill release straight away

The following user thanked Correy for this useful post:

Amanda
05-15-2012, 09:29 AM #33
Correy
I'm the Original
the codes been released, sorry for the long wait. Enzo
05-15-2012, 01:13 PM #34
Originally posted by Correy View Post
the codes been released, sorry for the long wait. Enzo
Happy this section is dead now :( but nice release Winky Winky
05-15-2012, 02:05 PM #35
Correy
I'm the Original
Originally posted by IELIITEMODZX View Post
Happy this section is dead now :( but nice release Winky Winky


lmfao, so will the black ops section soon :p. hello hotfix
05-15-2012, 02:06 PM #36
Originally posted by Correy View Post
lmfao, so will the black ops section soon :p. hello hotfix
good haha lol i hate black ops its soo bad.
05-15-2012, 02:18 PM #37
ᴠevo
Banned
Sexy UI bro.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo