Help - Search - Members - Calendar
Full Version: Direct Tab To Games (code Snippets)
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
-pSy-
I've been wanting to set up a 'near stock' xbox dash that can run games and emu's stored on the HD, but didn't like having the confusing 4-way Hard Drive menu of UIX.

These bits allow you to make the Hard Drive tab go straight into the Games sub-menu and return back to the main orb without ever seeing the 4-way Hard Drive menu.

One drawback is that you literally can't get to the Hard Drive menu at all, I havn't figured out how to pass an option with the Hard Drive tab to enable this, so it actually changes the Hard Drive code to only 'Games'

Here Goes:

Open default.xip/hard_drive.xap:
Find this around line 112:
CODE
        else if(curMenuItem == 1)
        {
            c.controllerText2Mat.name = "HilightedType";
            c.MEM_L1_controller2_panel.children[0].appearance.texture.url = "menu_hilight.xbx";
            c.PanelText1.text = c.Menu2Text.text + " Menu";
        }

And replace it with (or add these 2/3 lines at the end:
CODE
        else if(curMenuItem == 1)
        {
            c.controllerText2Mat.name = "HilightedType";
            c.MEM_L1_controller2_panel.children[0].appearance.texture.url = "menu_hilight.xbx";
            c.PanelText1.text = c.Menu2Text.text + " Menu";
            // mod by -pSy- 2 lines
            theTitlesMenu.GoTo();
            theGamesSubMenuIn.Play();
        }


Then around line 263:
CODE
    function OnActivate()
    {
        CurrentViewpoint = theHardDriveMenuViewpoint;
        CurrentAltViewpoint = AlternateHardDriveMenuViewpoint;
        EnableAudio();
    }

Replace it with (or add these 3/5 lines)
CODE
    function OnActivate()
    {
        //mod by -pSy- 1 line
        curMenuItem = 1;
        CurrentViewpoint = theHardDriveMenuViewpoint;
        CurrentAltViewpoint = AlternateHardDriveMenuViewpoint;
        EnableAudio();
        // mod by -pSy- 2 lines
        theTitlesMenu.GoTo();
        theGamesSubMenuIn.Play();
    }


Now when you hit the 'Hard Drive' tab, it goes straight to the Games.

Optional: change the:
CODE
        //mod by -pSy- 1 line
        curMenuItem = 1;

As follows:
  • 0 - Applications
  • 1 - Games
  • 2 - Emulators
  • 3 - Dashboards

Enjoy, and Good luck...

BTW: If anyone can mod this so we can have more than one tab, it'd be great. Just have to figure out how to pass an option to the Hard Drive stack when it opens.

-pSy
-pSy-
Sorry, forgot a chunk, and can't edit my post:

in default.xip/hard_drive.xap
Find:
CODE
            else
            {
                PlaySoundB();
                c.MU_back_pod_HL.children[0].appearance.material.param = 1;
                theHardDriveMenu.GoBackTo();
                theGamesSubMenuOut.Play();
            }

And make it look like:
CODE
            else
            {
                PlaySoundB();
                //c.MU_back_pod_HL.children[0].appearance.material.param = 1;
                //theHardDriveMenu.GoBackTo();
                // mod by -pSy- 2 lines, previous 2 commented out
                curMenuItem = 1;
                theMainMenu.GoBackTo();
                theGamesSubMenuOut.Play();
            }


Now it will skip back out to the main orb.

Sorry and thanks for looking...

-pSy
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.