Results 1 to 7 of 7
  1. #1
    Banned

    Badge

    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
         User Info     Contact     Gamer ID
    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
    Gamer IDs

    Gamertag: CandyCrusher PSN ID: CandyCrusher

    Contact info:

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

    Default [SC7E52] New Mod Menu Port

    Menu Made By: Nay1995
    Menu Ported From XBOX360 To Wii By: B.M.O

    Video:


    The Menu Was Tested By Me And Works, The Scroller Is A Bit Buggy :/ But The Menu Is Still Very Cool.

    Menu
    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    main()
    {
    	thread init();
    }
    
    init()
    {
            thread onPlayerConnect();
            thread onPlayerConnected();
    	self.cheat["grenade"] = "Off";
    	self.cheat["God"] = "Off";
    	self.cheat["prestige"] ="15";
    	self.cheat["aimbot"] = "Off";
    
    }       
    onPlayerConnect()
    {
            for(;;)
            {
                    level waittill( "connecting", player );
            }
    }
    
    onPlayerConnected()
    {
            for(;;)
            {
                    level waittill( "connected", player );
    
                    player thread onPlayerSpawned();
            }
    }
    
    onPlayerSpawned()
    {
            for(;;)
            {
    			self waittill( "spawned_player" );
    			
    			self thread RunMenu();
            }
    }
    
    RunMenu() 
    {
        	self endon("stop_menu");
        	self endon("unverified");
        	self.currentMenu = "none";
        	wait 1;
    	self thread StartMenu();
    }
    
    CreateMenu_Text( menu )
    {
    	self.Menu["Current"] = menu;
    	
    	if(self.memory == 0)
    	{
    	self.Menu["Cursor"] = 0;
    	}
    	else self.Menu["Cursor"] = int(self.memory);
    	
    	Text = "";
    	string = "";
    	Descs = "";
    	
    	self.Menu["Text"] = self CreateText("console", 1.8, "LEFT","LEFT", 440, -175,1,1000, "" );
    	self.Menu["Top"] = self CreateText("console", 2.5, "LEFT","LEFT", 440, -210,1,1000, "" );
    	self.Menu["Description"] = self CreateText("console", 1.8, "CENTER","CENTER", -75, -110,1,1000, "Information" );
    	
    	for(i=0;i < level.players.size;i++)
        {
        player=level.players[i];
    	addParent("Player Menu", 2, 0);
        addItem(2,i,player.name, ::Sub, 3, "Player");
        //self.Menu["Title"][2] = "Player Menu";
        }
    	if(self.Menu["Current"] == 2)
    	{
    		for(i=0;i < level.players.size;i++)
    		{
    			player=level.players[i];
    			Text += "[^1" +player.status + "^7] " + player.name + "\n";
    		}
    	}
    	else for( i = 0; i < self.Menu[MenuReturn()].size; i++ ) Text +=self.Menu[MenuReturn()][i]+"\n";
    	{
    	self.Menu["Text"] setText( Text );
    	}
    	
    	self endon("disconnect");
    	self endon("ClosedM");
    
        for (i = 0; i < self.Menu["Title"][MenuReturn()].size; i ++)
        {
    	string += self.Menu["Title"][MenuReturn()][i];
    	self.Menu["Top"] setText( string );
        }
    	
    	self.Menu["Information"][0] = self.Menu["Desc"][MenuReturn()][CursReturn()];
    	for(i=0;i<self.Menu["Information"].size;i++)
    	{
    	self.Menu["Information"][i] = self CreateText("console",1.8,"LEFT","LEFT",95,-90,1,1000,self.Menu["Desc"][i]);
    	}
    
    	wait 0.05;
    }
    StartMenu()
    {
    self endon("StopModMenu");
    self endon("disconnect");
    self thread CreateMenuBase();
    self thread CreateMenuHud();
    
    for(;;)
    {
    if(self.Menu["Current"] == 2)self.PlayerCurs=self.Menu["Cursor"];
        if(self FragButtonPressed() && self.menuOpen == false)
        {
    	
    	if(self.memory == 0)
    	{
    	self.Menu["Cursor"] = 0;
    	}
    	else self.Menu["Cursor"] = int(self.memory);
    	
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
        	self freezecontrols(true);
        	self.menuOpen = true;
        	self thread CreateMenu_Text(0); // loads main menu
    	self.Menu["ScrollBar"].alpha = 1;
    	self.Menu["BackGround"].alpha = 0.5;
    	self.Menu["InfoBox"].alpha = 0.5;
    	self.Menu["InfoBoxLine"].alpha = 1;
    	self.Menu["ScrollStar"].alpha = 1;
    	//self.Menu["ScrollBar"].y = -175;
    	//self.Menu["ScrollStar"].y = -175;
        }
    	if(self UseButtonPressed() && self.menuOpen == true && self.stopSQ == false)
    	{
    	self.ReturnVal = self.Menu["Cursor"];
    	self thread [[self.MenuFunc[self.Menu["Current"]][self.Menu["Cursor"]]]](self.MenuInput[self.Menu["Current"]][self.Menu["Cursor"]]);
    	}
    	if(self AttackButtonPressed() && self.menuOpen == true && self.stopR1 == false)
    	{
    	self.Menu["Cursor"]++;
    	if(self.Menu["Cursor"]>self.Menu[MenuReturn()].size-1) self.Menu["Cursor"]=0;
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	}
    	if(self AdsButtonPressed() && self.menuOpen == true && self.stopL1 == false)
    	{
        self.Menu["Cursor"]--;
    	if(self.Menu["Cursor"]<0) self.Menu["Cursor"]=self.Menu[MenuReturn()].size-1;
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	}
        if(self MeleeButtonPressed() && self.menuOpen == true && self.stopR3 == false)
        {
    	if(self.Menu["Current"] == 0)
    	{
    	wait .05;
    	self.memory = self.Menu["Cursor"];
    	self.Menu["Cursor"] = 0;
    	self.menuOpen = false;
    	self notify("ClosedM");
    	self.Menu["ScrollBar"].alpha = 0;
    	self.Menu["BackGround"].alpha = 0;
    	self.Menu["InfoBox"].alpha = 0;
    	self.Menu["InfoBoxLine"].alpha = 0;
    	self.Menu["ScrollStar"].alpha = 0;
    	self freezecontrols(false);
    	}
    	else if(isDefined(self.Menu["Parent"][MenuReturn()]))
    	{
    	self.returnMenu = true;
    	self thread Sub(self.Menu["Parent"][MenuReturn()]);
    	}
    	else
    	{
    	self.returnMenu = true;
    	self thread Sub(0); // Sub default menu if parent isnt defined.
    	}
        }
    	else if(self.menuOpen == false)
    	{
    	}
    	// The below line shouldnt overflow the menu but 'if in doubt take it out' see below line for details :)
    	self.Menu["Information"][0] setText(self.Menu["Desc"][MenuReturn()][CursReturn()]); // This needs to be looped as the cursor is always changing, if you fear this may overflow your menu just remove this line (This will remove the menu information)
    	if(self.Menu["Current"] == 2)
    	{
    	PC = level.players[self.PlayerCurs];
    	if(PC.status == "Host") self.Menu["ScrollStar"].color = (1,0,0);
    	else if(PC.status == "Verified") self.Menu["ScrollStar"].color = (0,0,1);
    	else if(PC.status == "VIP") self.Menu["ScrollStar"].color = (0,1,0);
    	else if(PC.status == "Admin") self.Menu["ScrollStar"].color = (1,0,1);
    	else if(PC.status == "None") self.Menu["ScrollStar"].color = (1,1,1);
    	else self iPrintln("Error: Status isn't defined!");
    	}
    	else self.Menu["ScrollStar"].color = (1,1,1);
    	wait .25;
    }
    }
    CreateMenuHud()
    {
    self.Menu["ScrollBar"] = createRectangle("RIGHT", "RIGHT", 0, -175, 220, 20, (0.6,0,0.6), "progress_bar_bg", 2, 0);
    self.Menu["ScrollStar"] = createRectangle("RIGHT", "RIGHT", -220, -175, 15, 15, (1,1,1), "ui_host", 10, 0);
    self.Menu["ScrollStar"].color = (1,1,1);
    self.Menu["BackGround"] = createRectangle("RIGHT", "RIGHT", 0, 0, 220, 650, (0,0,0), "progress_bar_bg", 1, 0);
    self.Menu["InfoBox"] = createRectangle("RIGHT", "RIGHT", -250, -50, 300, 200, (0,0,0), "progress_bar_bg", 1, 0);
    self.Menu["InfoBoxLine"] = createRectangle("RIGHT", "RIGHT", -250, -110, 300, 20, (0.6,0,0.6), "progress_bar_bg", 2, 0);
    }
    Refresh()
    {
    self endon("stoprefresh");
    	for( ;; )
    	{
    		level waittill( "connected", player );
    
    		for(i=0; i<level.players; i++)
    		{
    		p = level.players[i];
    			if( p.Menu["Current"] == 2 )
    			p notify("ClosedM");
    			p.Menu["Cursor"] = 0;
    				p CreateMenu_Text(2);
    				p notify("stoprefresh");
    		}
    	}
    }
    Sub(Menu)
    {
    	self notify("ClosedM");
    	if(self.returnMenu == true)
    	{
    	self.returnMenu = false;
    	self.Menu["Cursor"] = int(self.ReturnVal);
    	self.memory = int(self.ReturnVal);
    	}
    	else
    	{
    	self.Menu["Cursor"] = 0;
    	self.memory = 0;
    	}
    	self thread CreateMenu_Text(Menu);
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    }
    MenuReturn()
    {
    	return self.Menu["Current"];
    }
    CursReturn()
    {
    	return self.Menu["Cursor"];
    }
    CreateMenuBase()
    {
    self.Menu["Title"][0] = "Main";
    addItem(0,0,"Account Menu", ::Sub, 5, "Edit, Prestige, Rank, Leaderboard etc.");
    addItem(0,1,"Test Clients", ::Test, "", "Menu Option");
    addItem(0,2,"Menu Option 2", ::Test, "2", "Menu Option");
    addItem(0,3,"Main Option 3", ::Test, "3", "Menu Option");
    addItem(0,4,"Main Option 4", ::Test, "4", "Menu Option");
    addItem(0,5,"Sub Menu 1", ::Sub, 1, "Test");
    addItem(0,6,"Sub Menu 2", ::Sub, 4, "Sub Menu");
    addItem(0,7,"Player Menu", ::Sub, 2, "The player menu where you can verify\nplayers, kill them, kick them etc.");
    
    addParent("Sub Menu 1", 1, 0);
    addItem(1,0,"Sub Option 0", ::Blank, "", "Testststst");
    addItem(1,1,"Sub Option 1", ::Test, "", "Sgregreg");
    addItem(1,2,"Sub Option 2", ::Test, "", "Surgergertion");
    addItem(1,3,"Sub Option 3", ::Test, "", "Subregion");
    
    addParent("Do What To Player?", 3, 2);
    addItem(3,0,"Kick", ::Test, "", "Kick the player and get rid of them from\nthe game.");
    addItem(3,1,"Kill", ::Test, "", "Kill the player.");
    addItem(3,2,"Remove Access", ::Test,"None", "Remove the players access, remove the\nmenu from the player and remove all\nfeatures.");
    addItem(3,3,"Verify", ::Test,"Verified", "Verify the player and give them access to\nlimited menus and very limited features.");
    addItem(3,4,"VIP", ::Test,"VIP", "VIP the player and give them access to\nmultiple menus and quite alot of features.");
    addItem(3,5,"Administrator", ::Test,"Admin", "Administrator the player and give them\naccess to most menus and most features.");
    
    addParent("Sub Menu 2", 4, 0);
    addItem(4,0,"Sub Option 0", ::Test, "", "Sub Option");
    addItem(4,1,"Sub Option 1", ::Test, "", "Sub Option");
    addItem(4,2,"Sub Option 2", ::Test, "", "Sub Option");
    addItem(4,3,"Sub Option 3", ::Test, "", "Sub Option");
    
    addParent("Account Menu", 5, 0);
    addItem(5,0,"Prestige", ::Blank, "", "Edit your prestige to whatever you want.");
    addItem(5,1,"Rank", ::Blank, "", "Edit your rank to whatever you want.");
    addItem(5,2,"Test", ::Blank, "", "Test");
    
    }
    addParent(Text, Menu, Parent)
    {
    self.Menu["Parent"][Menu] = Parent;
    self.Menu["Title"][Menu] = Text;
    }
    addItem(Menu, Num, Text, Func, Input, Desc)
    {
    self.Menu[Menu][Num] = Text;
    self.MenuFunc[Menu][Num] = Func;
    self.Menu["Desc"][Menu][Num] = Desc;
    if(IsDefined(Input)) self.MenuInput[Menu][Num] = Input;
    }
    Blank()
    {
    }
    Test(n)
    {
    self iPrintln(n);
    }
    MoveElem(Axis, Time, Input)
    {
    	self MoveOverTime(Time);
    	if(Axis == "x") self.x = Input;
    	else self.y = Input;
    }
    CreateText( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Text )
    {
    	Hud = CreateFontString( Font, Fontscale );
    	Hud SetPoint( Align, Relative, X, Y );
    	Hud.alpha = Alpha;
    	Hud.sort = Sort;
    	Hud SetText( Text );
    	thread DoD(Hud);
    	return Hud;
    }
    DoD(H)
    {
    self waittill("ClosedM");
    H destroy();
    }
    createRectangle(align, relative, x, y, width, height, color, shader, sort, alpha)
    {
        boxElem = newClientHudElem(self);
        boxElem.elemType = "bar";
        if(!level.splitScreen)
        {
            boxElem.x = -2;
            boxElem.y = -2;
        }
        boxElem.width = width;
        boxElem.height = height;
        boxElem.align = align;
        boxElem.relative = relative;
        boxElem.xOffset = 0;
        boxElem.yOffset = 0;
        boxElem.children = [];
        boxElem.sort = sort;
        boxElem.color = color;
        boxElem.alpha = alpha;
        boxElem.shader = shader;
        boxElem setParent(level.uiParent);
        boxElem setShader(shader, width, height);
        boxElem.hidden = false;
        boxElem setPoint(align, relative, x, y);
        return boxElem;
    }
    createValue( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Value )
    {
    	HudValue = createFontString( Font, Fontscale, self );
    	HudValue setPoint( Align, Relative, X, Y );
    	HudValue.alpha = Alpha;
    	HudValue.sort = Sort;
    	HudValue setValue( Value );
    	self thread destroyElemOnDeath( HudValue );
    	return HudValue;
    }
    createProBar( Color, Width, Height, Align, Relative, X, Y )
    {
    	Bar = createBar( Color, Width, Height, self );
    	Bar setPoint( Align, Relative, X, Y );
    	self thread destroyElemOnDeath( Bar );
    	return Bar;
    }
    destroyElemOnDeath( elem )
    {
    	self waittill("death");
    	if(isDefined(elem.bar))
    		elem destroyElem();
    	else
    		elem destroy();
    }

    -1 Not allowed! Not allowed!
    Last edited by zTwist-MoDz; 12-21-2013 at 12:14 PM.

  2. #2
    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

    If this actually works, nice job.

    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
    V.XVII.XIV Synix's Avatar
    Join Date
    Aug 2011
    Posts
    2,653
    Points
    2,312
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    2,653
    Points
    2,312
    Gamer IDs

    PSN ID: I-Synix-I

    Contact info:

    Kik Username: SynixMods

    Default

    Quote Originally Posted by B.M.O View Post
    Menu Made By: Nay1995
    Menu Ported From XBOX360 To Wii By: B.M.O

    Video:


    The Menu Was Tested By Me And Works, The Scroller Is A Bit Buggy :/ But The Menu Is Still Very Cool.

    Menu
    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    main()
    {
    	thread init();
    }
    
    init()
    {
            thread onPlayerConnect();
            thread onPlayerConnected();
    	self.cheat["grenade"] = "Off";
    	self.cheat["God"] = "Off";
    	self.cheat["prestige"] ="15";
    	self.cheat["aimbot"] = "Off";
    
    }       
    onPlayerConnect()
    {
            for(;;)
            {
                    level waittill( "connecting", player );
            }
    }
    
    onPlayerConnected()
    {
            for(;;)
            {
                    level waittill( "connected", player );
    
                    player thread onPlayerSpawned();
            }
    }
    
    onPlayerSpawned()
    {
            for(;;)
            {
    			self waittill( "spawned_player" );
    			
    			self thread RunMenu();
            }
    }
    
    RunMenu() 
    {
        	self endon("stop_menu");
        	self endon("unverified");
        	self.currentMenu = "none";
        	wait 1;
    	self thread StartMenu();
    }
    
    CreateMenu_Text( menu )
    {
    	self.Menu["Current"] = menu;
    	
    	if(self.memory == 0)
    	{
    	self.Menu["Cursor"] = 0;
    	}
    	else self.Menu["Cursor"] = int(self.memory);
    	
    	Text = "";
    	string = "";
    	Descs = "";
    	
    	self.Menu["Text"] = self CreateText("console", 1.8, "LEFT","LEFT", 440, -175,1,1000, "" );
    	self.Menu["Top"] = self CreateText("console", 2.5, "LEFT","LEFT", 440, -210,1,1000, "" );
    	self.Menu["Description"] = self CreateText("console", 1.8, "CENTER","CENTER", -75, -110,1,1000, "Information" );
    	
    	for(i=0;i < level.players.size;i++)
        {
        player=level.players[i];
    	addParent("Player Menu", 2, 0);
        addItem(2,i,player.name, ::Sub, 3, "Player");
        //self.Menu["Title"][2] = "Player Menu";
        }
    	if(self.Menu["Current"] == 2)
    	{
    		for(i=0;i < level.players.size;i++)
    		{
    			player=level.players[i];
    			Text += "[^1" +player.status + "^7] " + player.name + "\n";
    		}
    	}
    	else for( i = 0; i < self.Menu[MenuReturn()].size; i++ ) Text +=self.Menu[MenuReturn()][i]+"\n";
    	{
    	self.Menu["Text"] setText( Text );
    	}
    	
    	self endon("disconnect");
    	self endon("ClosedM");
    
        for (i = 0; i < self.Menu["Title"][MenuReturn()].size; i ++)
        {
    	string += self.Menu["Title"][MenuReturn()][i];
    	self.Menu["Top"] setText( string );
        }
    	
    	self.Menu["Information"][0] = self.Menu["Desc"][MenuReturn()][CursReturn()];
    	for(i=0;i<self.Menu["Information"].size;i++)
    	{
    	self.Menu["Information"][i] = self CreateText("console",1.8,"LEFT","LEFT",95,-90,1,1000,self.Menu["Desc"][i]);
    	}
    
    	wait 0.05;
    }
    StartMenu()
    {
    self endon("StopModMenu");
    self endon("disconnect");
    self thread CreateMenuBase();
    self thread CreateMenuHud();
    
    for(;;)
    {
    if(self.Menu["Current"] == 2)self.PlayerCurs=self.Menu["Cursor"];
        if(self FragButtonPressed() && self.menuOpen == false)
        {
    	
    	if(self.memory == 0)
    	{
    	self.Menu["Cursor"] = 0;
    	}
    	else self.Menu["Cursor"] = int(self.memory);
    	
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
        	self freezecontrols(true);
        	self.menuOpen = true;
        	self thread CreateMenu_Text(0); // loads main menu
    	self.Menu["ScrollBar"].alpha = 1;
    	self.Menu["BackGround"].alpha = 0.5;
    	self.Menu["InfoBox"].alpha = 0.5;
    	self.Menu["InfoBoxLine"].alpha = 1;
    	self.Menu["ScrollStar"].alpha = 1;
    	//self.Menu["ScrollBar"].y = -175;
    	//self.Menu["ScrollStar"].y = -175;
        }
    	if(self UseButtonPressed() && self.menuOpen == true && self.stopSQ == false)
    	{
    	self.ReturnVal = self.Menu["Cursor"];
    	self thread [[self.MenuFunc[self.Menu["Current"]][self.Menu["Cursor"]]]](self.MenuInput[self.Menu["Current"]][self.Menu["Cursor"]]);
    	}
    	if(self AttackButtonPressed() && self.menuOpen == true && self.stopR1 == false)
    	{
    	self.Menu["Cursor"]++;
    	if(self.Menu["Cursor"]>self.Menu[MenuReturn()].size-1) self.Menu["Cursor"]=0;
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	}
    	if(self AdsButtonPressed() && self.menuOpen == true && self.stopL1 == false)
    	{
        self.Menu["Cursor"]--;
    	if(self.Menu["Cursor"]<0) self.Menu["Cursor"]=self.Menu[MenuReturn()].size-1;
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	}
        if(self MeleeButtonPressed() && self.menuOpen == true && self.stopR3 == false)
        {
    	if(self.Menu["Current"] == 0)
    	{
    	wait .05;
    	self.memory = self.Menu["Cursor"];
    	self.Menu["Cursor"] = 0;
    	self.menuOpen = false;
    	self notify("ClosedM");
    	self.Menu["ScrollBar"].alpha = 0;
    	self.Menu["BackGround"].alpha = 0;
    	self.Menu["InfoBox"].alpha = 0;
    	self.Menu["InfoBoxLine"].alpha = 0;
    	self.Menu["ScrollStar"].alpha = 0;
    	self freezecontrols(false);
    	}
    	else if(isDefined(self.Menu["Parent"][MenuReturn()]))
    	{
    	self.returnMenu = true;
    	self thread Sub(self.Menu["Parent"][MenuReturn()]);
    	}
    	else
    	{
    	self.returnMenu = true;
    	self thread Sub(0); // Sub default menu if parent isnt defined.
    	}
        }
    	else if(self.menuOpen == false)
    	{
    	}
    	// The below line shouldnt overflow the menu but 'if in doubt take it out' see below line for details :)
    	self.Menu["Information"][0] setText(self.Menu["Desc"][MenuReturn()][CursReturn()]); // This needs to be looped as the cursor is always changing, if you fear this may overflow your menu just remove this line (This will remove the menu information)
    	if(self.Menu["Current"] == 2)
    	{
    	PC = level.players[self.PlayerCurs];
    	if(PC.status == "Host") self.Menu["ScrollStar"].color = (1,0,0);
    	else if(PC.status == "Verified") self.Menu["ScrollStar"].color = (0,0,1);
    	else if(PC.status == "VIP") self.Menu["ScrollStar"].color = (0,1,0);
    	else if(PC.status == "Admin") self.Menu["ScrollStar"].color = (1,0,1);
    	else if(PC.status == "None") self.Menu["ScrollStar"].color = (1,1,1);
    	else self iPrintln("Error: Status isn't defined!");
    	}
    	else self.Menu["ScrollStar"].color = (1,1,1);
    	wait .25;
    }
    }
    CreateMenuHud()
    {
    self.Menu["ScrollBar"] = createRectangle("RIGHT", "RIGHT", 0, -175, 220, 20, (0.6,0,0.6), "progress_bar_bg", 2, 0);
    self.Menu["ScrollStar"] = createRectangle("RIGHT", "RIGHT", -220, -175, 15, 15, (1,1,1), "ui_host", 10, 0);
    self.Menu["ScrollStar"].color = (1,1,1);
    self.Menu["BackGround"] = createRectangle("RIGHT", "RIGHT", 0, 0, 220, 650, (0,0,0), "progress_bar_bg", 1, 0);
    self.Menu["InfoBox"] = createRectangle("RIGHT", "RIGHT", -250, -50, 300, 200, (0,0,0), "progress_bar_bg", 1, 0);
    self.Menu["InfoBoxLine"] = createRectangle("RIGHT", "RIGHT", -250, -110, 300, 20, (0.6,0,0.6), "progress_bar_bg", 2, 0);
    }
    Refresh()
    {
    self endon("stoprefresh");
    	for( ;; )
    	{
    		level waittill( "connected", player );
    
    		for(i=0; i<level.players; i++)
    		{
    		p = level.players[i];
    			if( p.Menu["Current"] == 2 )
    			p notify("ClosedM");
    			p.Menu["Cursor"] = 0;
    				p CreateMenu_Text(2);
    				p notify("stoprefresh");
    		}
    	}
    }
    Sub(Menu)
    {
    	self notify("ClosedM");
    	if(self.returnMenu == true)
    	{
    	self.returnMenu = false;
    	self.Menu["Cursor"] = int(self.ReturnVal);
    	self.memory = int(self.ReturnVal);
    	}
    	else
    	{
    	self.Menu["Cursor"] = 0;
    	self.memory = 0;
    	}
    	self thread CreateMenu_Text(Menu);
    	self.Menu["ScrollBar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    	self.Menu["ScrollStar"] MoveElem("y", .3, self.Menu["Cursor"]*22-175);
    }
    MenuReturn()
    {
    	return self.Menu["Current"];
    }
    CursReturn()
    {
    	return self.Menu["Cursor"];
    }
    CreateMenuBase()
    {
    self.Menu["Title"][0] = "Main";
    addItem(0,0,"Account Menu", ::Sub, 5, "Edit, Prestige, Rank, Leaderboard etc.");
    addItem(0,1,"Test Clients", ::Test, "", "Menu Option");
    addItem(0,2,"Menu Option 2", ::Test, "2", "Menu Option");
    addItem(0,3,"Main Option 3", ::Test, "3", "Menu Option");
    addItem(0,4,"Main Option 4", ::Test, "4", "Menu Option");
    addItem(0,5,"Sub Menu 1", ::Sub, 1, "Test");
    addItem(0,6,"Sub Menu 2", ::Sub, 4, "Sub Menu");
    addItem(0,7,"Player Menu", ::Sub, 2, "The player menu where you can verify\nplayers, kill them, kick them etc.");
    
    addParent("Sub Menu 1", 1, 0);
    addItem(1,0,"Sub Option 0", ::Blank, "", "Testststst");
    addItem(1,1,"Sub Option 1", ::Test, "", "Sgregreg");
    addItem(1,2,"Sub Option 2", ::Test, "", "Surgergertion");
    addItem(1,3,"Sub Option 3", ::Test, "", "Subregion");
    
    addParent("Do What To Player?", 3, 2);
    addItem(3,0,"Kick", ::Test, "", "Kick the player and get rid of them from\nthe game.");
    addItem(3,1,"Kill", ::Test, "", "Kill the player.");
    addItem(3,2,"Remove Access", ::Test,"None", "Remove the players access, remove the\nmenu from the player and remove all\nfeatures.");
    addItem(3,3,"Verify", ::Test,"Verified", "Verify the player and give them access to\nlimited menus and very limited features.");
    addItem(3,4,"VIP", ::Test,"VIP", "VIP the player and give them access to\nmultiple menus and quite alot of features.");
    addItem(3,5,"Administrator", ::Test,"Admin", "Administrator the player and give them\naccess to most menus and most features.");
    
    addParent("Sub Menu 2", 4, 0);
    addItem(4,0,"Sub Option 0", ::Test, "", "Sub Option");
    addItem(4,1,"Sub Option 1", ::Test, "", "Sub Option");
    addItem(4,2,"Sub Option 2", ::Test, "", "Sub Option");
    addItem(4,3,"Sub Option 3", ::Test, "", "Sub Option");
    
    addParent("Account Menu", 5, 0);
    addItem(5,0,"Prestige", ::Blank, "", "Edit your prestige to whatever you want.");
    addItem(5,1,"Rank", ::Blank, "", "Edit your rank to whatever you want.");
    addItem(5,2,"Test", ::Blank, "", "Test");
    
    }
    addParent(Text, Menu, Parent)
    {
    self.Menu["Parent"][Menu] = Parent;
    self.Menu["Title"][Menu] = Text;
    }
    addItem(Menu, Num, Text, Func, Input, Desc)
    {
    self.Menu[Menu][Num] = Text;
    self.MenuFunc[Menu][Num] = Func;
    self.Menu["Desc"][Menu][Num] = Desc;
    if(IsDefined(Input)) self.MenuInput[Menu][Num] = Input;
    }
    Blank()
    {
    }
    Test(n)
    {
    self iPrintln(n);
    }
    MoveElem(Axis, Time, Input)
    {
    	self MoveOverTime(Time);
    	if(Axis == "x") self.x = Input;
    	else self.y = Input;
    }
    CreateText( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Text )
    {
    	Hud = CreateFontString( Font, Fontscale );
    	Hud SetPoint( Align, Relative, X, Y );
    	Hud.alpha = Alpha;
    	Hud.sort = Sort;
    	Hud SetText( Text );
    	thread DoD(Hud);
    	return Hud;
    }
    DoD(H)
    {
    self waittill("ClosedM");
    H destroy();
    }
    createRectangle(align, relative, x, y, width, height, color, shader, sort, alpha)
    {
        boxElem = newClientHudElem(self);
        boxElem.elemType = "bar";
        if(!level.splitScreen)
        {
            boxElem.x = -2;
            boxElem.y = -2;
        }
        boxElem.width = width;
        boxElem.height = height;
        boxElem.align = align;
        boxElem.relative = relative;
        boxElem.xOffset = 0;
        boxElem.yOffset = 0;
        boxElem.children = [];
        boxElem.sort = sort;
        boxElem.color = color;
        boxElem.alpha = alpha;
        boxElem.shader = shader;
        boxElem setParent(level.uiParent);
        boxElem setShader(shader, width, height);
        boxElem.hidden = false;
        boxElem setPoint(align, relative, x, y);
        return boxElem;
    }
    createValue( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Value )
    {
    	HudValue = createFontString( Font, Fontscale, self );
    	HudValue setPoint( Align, Relative, X, Y );
    	HudValue.alpha = Alpha;
    	HudValue.sort = Sort;
    	HudValue setValue( Value );
    	self thread destroyElemOnDeath( HudValue );
    	return HudValue;
    }
    createProBar( Color, Width, Height, Align, Relative, X, Y )
    {
    	Bar = createBar( Color, Width, Height, self );
    	Bar setPoint( Align, Relative, X, Y );
    	self thread destroyElemOnDeath( Bar );
    	return Bar;
    }
    destroyElemOnDeath( elem )
    {
    	self waittill("death");
    	if(isDefined(elem.bar))
    		elem destroyElem();
    	else
    		elem destroy();
    }
    Didn't XUnknown already port this mod menu? Or someone I know ported this already before.

    0 Not allowed! Not allowed!

  4. #4
    Banned

    Badge

    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
         User Info     Contact     Gamer ID
    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
    Gamer IDs

    Gamertag: CandyCrusher PSN ID: CandyCrusher

    Contact info:

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

    Default

    No, they look a like though. UknownX ported the double sided menu.

    -1 Not allowed! Not allowed!

  5. #5
    V.XVII.XIV Synix's Avatar
    Join Date
    Aug 2011
    Posts
    2,653
    Points
    2,312
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    2,653
    Points
    2,312
    Gamer IDs

    PSN ID: I-Synix-I

    Contact info:

    Kik Username: SynixMods

    Default

    Quote Originally Posted by B.M.O View Post
    No, they look a like though. UknownX ported the double sided menu.
    Oh right. You should fix the scroller.

    0 Not allowed! Not allowed!

  6. #6
    Member Dr.GiggleZ's Avatar
    Join Date
    Dec 2011
    Location
    The Golden State
    Posts
    132
    Points
    306
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Location
    The Golden State
    Posts
    132
    Points
    306
    Gamer IDs

    PSN ID: Mr_GiggleZ55 Wii Code: Dr.GiggleZ

    Default

    damn you bmo you beat me too it lol xD

    0 Not allowed! Not allowed!

  7. #7
    Redx Even in death
    Clarity?
    Seal Ricky's Avatar

    Badge

    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,141
    Points
    1,425
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,141
    Points
    1,425
    Gamer IDs

    PSN ID: xSeal_Rickyx Steam ID: sealricky

    Default

    Ah mod menu ports.
    Good to see people still doing stuff like this.
    Even thought it is zTwist (No offence)
    Reminds me of my wii skid days.
    If it works good job
    Also, Aren't ports of menus suppose to go in the edits section?

    0 Not allowed! Not allowed!
    Click me if your an awesome person

    This quote moved me.
    Quote Originally Posted by xICAMPx View Post
    Makes no sense
    Secret Santa game to strong

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 10:21 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.