Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Gymshark Outlaw's Avatar
    Join Date
    Oct 2011
    Location
    somewhere in the abyss
    Posts
    4,981
    Points
    5,116
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Location
    somewhere in the abyss
    Posts
    4,981
    Points
    5,116
    Gamer IDs

    PSN ID: TheAdmiral303

    Contact info:

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

    Default A Few ModvMenu Questions

    I was wondering what these are and do:

    Code:
    MenuDis()
    {
    	self.title = [];
    	self.menuOption = [];
    	
    	self.title[0] = "Mods";
    	
    	self.menuOption[0] = "^3Master Chief";
    	self.menuOption[1] = "^3Master";
    	self.menuOption[2] = "^3Expirenced Chief";
    	self.menuOption[3] = "^3Expirenced";
    	self.menuOption[4] = "^3Learning Chief";
    	self.menuOption[5] = "^3Learning";
    	self.menuOption[6] = "^3Never Before";
    	self.menuOption[7] = "^3Never";
    }
    Code:
    doToggle()
    {
    	for(;;)
    	{
    		if( self getStance() == "crouch" && self meleeButtonPressed() == true )
    		{
    			self thread opt1();
    		}
    		else if( self getStance() == "crouch" && self fragButtonPressed() == true )
    		{
    			self thread opt2();
    		}
    		else if( self getStance() == "crouch" && self adsButtonPressed() == true )
    		{
    			self thread opt3();
    		}
    		else if( self getStance() == "prone" && self meleeButtonPressed() == true )
    		{	
    			self thread opt4();
    		}
    		else if( self getStance() == "prone" && self fragButtonPressed() == true )
    		{
    			self thread opt5();
    		}
    		else if( self getStance() == "prone" && self adsButtonPressed() == true )
    		{
    			self thread opt6();
    		}
    		else if( self getStance() == "stand" && self meleeButtonPressed() == true )
    		{
    			self thread opt7();
    		}
    		else if( self getStance() == "stand" && self fragButtonPressed() == true )
    		{
    			self thread opt8();
    		}
    		wait 0.01;
    	}
    }
    opt1()
    {
    	self iPrintlnBold( "^1Option 1" );
    }
    opt2()
    {
    	self iPrintlnBold( "^1Option 2" );
    }
    opt3()
    {
    	self iPrintlnBold( "^1Option 3" );
    }
    opt4()
    {
    	self iPrintlnBold( "^1Option 4" );
    }
    opt5()
    {
    	self iPrintlnBold( "^1Option 5" );
    }
    opt6()
    {
    	self iPrintlnBold( "^1Option 6" );
    }
    opt7()
    {
    	self iPrintlnBold( "^1Option 7" );
    }
    opt8()
    {
    	self iPrintlnBold( "^1Option 8" );
    }

    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


  2. #2
    Red x Clan xGANJAx's Avatar
    Join Date
    Sep 2011
    Posts
    366
    Points
    1,776
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Posts
    366
    Points
    1,776
    Gamer IDs

    Wii Code: xGANJAx

    Contact info:

    Youtube Channel: youtube.com/theronpaulkid

    Default

    First one is the base menu options.
    Second one is if-else statements and that navigates what you are selecting.

    0 Not allowed! Not allowed!
    Get a job, stay in school, read books.

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

    PSN ID: TheAdmiral303

    Contact info:

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

    Default

    Thank you!
    Whats this do:

    display()
    {
    self.menuText[0] setText( self.menuOption[0] );
    self.menuText[1] setText( self.menuOption[1] );
    self.menuText[2] setText( self.menuOption[2] );
    self.menuText[3] setText( self.menuOption[3] );
    self.menuText[4] setText( self.menuOption[4] );
    self.menuText[5] setText( self.menuOption[5] );
    self.menuText[6] setText( self.menuOption[6] );
    self.menuText[7] setText( self.menuOption[7] );
    self.menuText[8] setText( self.menuOption[8] );
    self.menuText[9] setText( self.menuOption[9] );
    self.menuText[10] setText( self.menuOption[10] );
    self.menuText[11] setText( self.menuOption[11] );
    self.menuTitle[0] setText( self.title[0] );
    }

    0 Not allowed! Not allowed!
    Last edited by Outlaw; 08-18-2012 at 04:19 PM.
    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


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

    PSN ID: TheAdmiral303

    Contact info:

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

    Default

    /bump

    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


  5. #5
    Banned
    Join Date
    Mar 2012
    Posts
    302
    Points
    756
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    302
    Points
    756

    Default

    Quote Originally Posted by Outlaw View Post
    Thank you!
    Whats this do:

    display()
    {
    self.menuText[0] setText( self.menuOption[0] );
    self.menuText[1] setText( self.menuOption[1] );
    self.menuText[2] setText( self.menuOption[2] );
    self.menuText[3] setText( self.menuOption[3] );
    self.menuText[4] setText( self.menuOption[4] );
    self.menuText[5] setText( self.menuOption[5] );
    self.menuText[6] setText( self.menuOption[6] );
    self.menuText[7] setText( self.menuOption[7] );
    self.menuText[8] setText( self.menuOption[8] );
    self.menuText[9] setText( self.menuOption[9] );
    self.menuText[10] setText( self.menuOption[10] );
    self.menuText[11] setText( self.menuOption[11] );
    self.menuTitle[0] setText( self.title[0] );
    }
    That displays the text of the option along with what menu your in.

    0 Not allowed! Not allowed!

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

    PSN ID: TheAdmiral303

    Contact info:

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

    Default

    Ok, thanks, Superman.

    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


  7. #7
    Banned
    Join Date
    Mar 2012
    Posts
    302
    Points
    756
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    302
    Points
    756

    Default

    Quote Originally Posted by Outlaw View Post
    Ok, thanks, Superman.
    Yup no problem my bad about earlier I been having a bad day and my fucking hide and seek mod keeps giving me a error and I can't find it.

    0 Not allowed! Not allowed!

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

    PSN ID: TheAdmiral303

    Contact info:

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

    Default

    Yep, I'm making a base, not done yet, but I hope no syntax!

    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


  9. #9
    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
    Yep, I'm making a base, not done yet, but I hope no syntax!
    I hardly doubt you can make a base, that hasn't already been made ( arrays, stroTok, ect )
    Code:
    self.menuText[0] setText( self.menuOption[0] );
    self.menuText[1] setText( self.menuOption[1] );
    self.menuText[2] setText( self.menuOption[2] );
    self.menuText[3] setText( self.menuOption[3] );
    self.menuText[4] setText( self.menuOption[4] );
    self.menuText[5] setText( self.menuOption[5] );
    self.menuText[6] setText( self.menuOption[6] );
    self.menuText[7] setText( self.menuOption[7] );
    self.menuText[8] setText( self.menuOption[8] );
    self.menuText[9] setText( self.menuOption[9] );
    self.menuText[10] setText( self.menuOption[10] );
    self.menuText[11] setText( self.menuOption[11] );
    self.menuTitle[0] setText( self.title[0] );
    menutext is storing position data for each data in that array. so menuText[0] is 55 and 1 is 110 and such. menuOption is the name you specify it to be.

    0 Not allowed! Not allowed!

  10. #10
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

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

    Default

    Morder, you can do a for loop, that loops through the thing. Like
    for(i = self.menuText; i > 0; i--)
    {
    self.menuText[i] setText( self.menuOption[i]);
    }

    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 05:08 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.