Help - Search - Members - Calendar
Full Version: Memory Function
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
conners
is there a way to change the function on the home page, i want to have music to take me to memory instead of going to settings then memory.
XxXDarkwraitHXxX
OK Then.

Open Up default.xip/default.xap. Look for
CODE
control DEF theMainMenuJoy Joystick


Under that you should see
CODE

  {  
       function OnADown()
       {
           PlaySoundA();
           if(nCurMainMenuItem == 0)
           {
               theMusicMenuIn.Play();
               GoToMusic();
           }
           else if(nCurMainMenuItem == 1)
           {
               theSettingsMenuIn.Play();
               GoToHardDrive();
           }
           else if(nCurMainMenuItem == 2)
           {
           }
           else if(nCurMainMenuItem == 3)
           {
               theSettingsMenuIn.Play();
               GoToSettings();
           }
       }

Change it to this
CODE

  {    
       function OnADown()
       {
           PlaySoundA();
           if(nCurMainMenuItem == 0)
           {
               theMusicMenuIn.Play();
               GoToMemory();
           }
           else if(nCurMainMenuItem == 1)
           {
               theSettingsMenuIn.Play();
               GoToHardDrive();
           }
           else if(nCurMainMenuItem == 2)
           {
           }
           else if(nCurMainMenuItem == 3)
           {
               theSettingsMenuIn.Play();
               GoToSettings();
           }
       }


Save that xap and insert it back into the default.xip.
Now open up default.xip/config.xap

Look for this:
CODE

function BuildMMList()
{
   var i = 0;
   configList = new Array;
   configValues = new Array;
   configSelect = new Array;
   configList[i] = "Memory Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 1";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   configList[i] = "Music Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 2";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   configList[i] = "Hard Drive Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 3";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   configList[i] = "Settings Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 4";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   ClearText();
   UpdateText();
}


Make it look like this:
CODE

function BuildMMList()
{
   var i = 0;
   configList = new Array;
   configValues = new Array;
   configSelect = new Array;
   configList[i] = "Memory Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 1";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   configList[i] = "Hard Drive Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 2";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   configList[i] = "Hard Drive Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 3";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   configList[i] = "Settings Tab Text:";
   configValues[i] = "c-Main Menu Tabs-Main Tab 4";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   ClearText();
   UpdateText();
}

Save it and insert it into default.xip.

Now, if you want to return to the main menu when your done instead of the settings menu follow this.

In default.xip/memory search for
CODE
function OnBDown()


Then under that should be
CODE
GoToSettings();


Replace it with
CODE
theMainMenu.GoBackTo();

Save it and insert back into default.xip. Now go into your dash configuration and change the text on the main tabs.

Hope that helps!
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-2013 Invision Power Services, Inc.