Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default [RELEASE-SC7E52] Make your own Menu Elements

    Code:
    init()
    {
    	self.editValues = 0;
    	self.Cursor = 0;
    }
    makeAMenu()
    {
    	for(;;)
    	if( fragButtonPressed() == true && self.editValues == 0 )
    	{
    		self.textShader.alpha = 1;
    		self.editValues = 1;
    		if( jumpButtonPressed() == true  && self.editValues == 1 )
    		{
    			self.Cursor++;
    			if( self.Cursor >= self.Text.size )
    			{
    				self.Cursor = 0;
    			}
    		}
    		if( meleeButtonPressed() == true && self.editValues == 1 )
    		{
    			self.Cursor--;
    			if( self.Cursor >= self.Text.size )
    			{
    				self.Cursor = 0;
    			}
    		}
    		if( adsButtonPressed() == true && self.editValues == 1 )
    		{
    			if( self.Cursor == 0 )
    			{
    				self.xValue++;
    				self thread Refresh();
    			}
    			else if( self.Cursor == 1 )
    			{
    				self.yValue++;
    				self thread Refresh();
    			}
    			else if( self.Cursor == 2 )
    			{
    				self.h++;
    				self thread Refresh();
    			}
    			else if( self.Cursor == 3 )
    			{
    				self.w++;
    				self thread Refresh();
    			}
    		}
    		if( secondaryOffHandButtonPressed() == true && self.editValues == 1 )
    		{
    			if( self.Cursor == 0 )
    			{
    				self.xValue--;
    				self thread Refresh();
    			}
    			else if( self.Cursor == 1 )
    			{
    				self.yValue--;
    				self thread Refresh();
    			}
    			else if( self.Cursor == 2 )
    			{
    				self.h--;
    				self thread Refresh();
    			}
    			else if( self.Cursor == 3 )
    			{
    				self.w--;
    				self thread Refresh();
    			}
    
    		}
    		if( useButtonPressed() == true && self.editValues == 1 )
    		{
    			self.textShader.alpha = 0;
    			self.editValues = 0;
    		}
    	}
    }
    
    Refresh()
    {
    	BoxCord = NewClientHudElem(self);
    	BoxCord SetShader( "white", self.h, self.w );
    	BoxCord.alignX = "CENTER";
    	BoxCord.alignY = "CENTER";
    	BoxCord.x = self.xValue;
    	BoxCord.y = self.yValue;
    	self.Text[0] setText("X Value: " + self.xValue);
    	self.Text[1] setText("Y Value: " + self.yValue);
    	self.Text[2] setText("Height Value: " + self.h);
    	self.Text[3] setText("Width Value: " + self.w);
    }
    
    DIV()
    {
    	for( i = 0; i < 3; i++ )
    	{
    		self.Text[i] = self createFontString( "objective", 1.9 );
    		self.Text[i] createElement( ( 1, 1, 1 ), true, "left", "top", 300, 55 + ( 22 * i ), 1, 2 );
    		self.textShader = newClientHudElem( self );
    		self.textShader createElement( ( 1, .5, 0 ), true, "left", "top", 265, 77, 0, 1 );
    		self.textShader setShader( "white", 400, 22 );
    		if( self.Cursor == i )	
    		{
    			self.textShader moveOverTime( .2 );
    			self.textShader.y = 55 + ( i * 22 );
    		}
    	}
    }
    
    createElement( color, hideWhenInMenu, alignX, alignY, xOffset, yOffset, alpha, sort )
    {
    	self.color = color;
    	self.hideWhenInMenu = hideWhenInMenu;
    	self.x = xOffset;
    	self.y = yOffset;
    	self.alignX = alignX;
    	self.alignY = alignY;
    	self.horzAlign = alignX;
    	self.vertAlign = alignY;
    	self.alpha = alpha;
    	self.sort = sort;
    }
    Press frag to allow editing.
    Press Up to move the Cursor up
    Press Down to move the Cursor down
    Press ADS while over the value desired to edit to increase the value
    Press Minus while over the value desired to edit to decrease the value
    Press Use to exit

    0 Not allowed! Not allowed!

  2. #2
    Gymshark Outlaw's Avatar
    Join Date
    Oct 2011
    Location
    somewhere in the abyss
    Posts
    4,982
    Points
    5,119
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Location
    somewhere in the abyss
    Posts
    4,982
    Points
    5,119
    Gamer IDs

    PSN ID: TheAdmiral303

    Contact info:

    Youtube Channel: http://www.youtube.com/channel/UCREc2hm6GvtwKn3l0eJ2dwA

    Default

    What would you do with this? I'm sorry for asking , but I'm new to making my own mods.

    0 Not allowed! Not allowed!
    Go to http://bit.ly/1C01ZFM for custom modded controllers for Xbox One, PS4, Xbox 360 and PS3! Use the promo code: THEADMIRAL303 for your discount!

    Get a pair of the best gaming glasses: http://bit.ly/1AKk3El

    Bitcoin:
    16SeT5wqZRHoxPyEwD8HqjCa3xq5858RD4


  3. #3
    EXTREME PS3 Fanatic
    PSN: allmine64
    Wiz Khalifa's Avatar
    Join Date
    Jun 2012
    Location
    ▓░░░░ 15% Attempting to give a fuck.
    Posts
    1,216
    Points
    1,045
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    ▓░░░░ 15% Attempting to give a fuck.
    Posts
    1,216
    Points
    1,045
    Gamer IDs

    PSN ID: xWIZx_xKHALIFAx

    Contact info:

    Youtube Channel: http://www.youtube.com/user/wEsLeYkAlAnDyK696969?feature=guide

    Default

    I think its good man. Ive never heard of this before. The only thing ive ever done to a mod menu was add modify text

    0 Not allowed! Not allowed!

  4. #4
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Well, you know the Background for mod menu's? Well this allow's you to adjust it's size, and position, and give's you all you need.

    0 Not allowed! Not allowed!

  5. #5
    Gymshark Outlaw's Avatar
    Join Date
    Oct 2011
    Location
    somewhere in the abyss
    Posts
    4,982
    Points
    5,119
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Location
    somewhere in the abyss
    Posts
    4,982
    Points
    5,119
    Gamer IDs

    PSN ID: TheAdmiral303

    Contact info:

    Youtube Channel: http://www.youtube.com/channel/UCREc2hm6GvtwKn3l0eJ2dwA

    Default

    Ok, well in that case thank you. This will definately help me out a lot.

    0 Not allowed! Not allowed!
    Go to http://bit.ly/1C01ZFM for custom modded controllers for Xbox One, PS4, Xbox 360 and PS3! Use the promo code: THEADMIRAL303 for your discount!

    Get a pair of the best gaming glasses: http://bit.ly/1AKk3El

    Bitcoin:
    16SeT5wqZRHoxPyEwD8HqjCa3xq5858RD4


  6. #6
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by Outlaw View Post
    Ok, well in that case thank you. This will definately help me out a lot.
    Just helping out, feel free to thank me.

    0 Not allowed! Not allowed!

  7. #7
    silenthitman7
    Zombie Modder
    BaTMaN's Avatar
    Join Date
    Feb 2012
    Posts
    235
    Points
    520
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    235
    Points
    520

    Default

    Cool! This will definitely come in handy! Thanks for sharing!

    0 Not allowed! Not allowed!

  8. #8
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    No problem.

    0 Not allowed! Not allowed!

  9. #9
    ✝ Pursuit of Happiness ✝ Sh0x's Avatar

    Badge

    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
    Gamer IDs

    Gamertag: iiSh0x

    Contact info:

    Youtube Channel: http://www.youtube.com/zSh0x

    Default

    Great job Morder, amazing release.

    0 Not allowed! Not allowed!





  10. #10
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    I saw teh1337 make something similar to this.
    I always thought about replicating it and or creating a program for it.

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:11 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.