Jump to content


Photo

Music Menu In Settings


  • Please log in to reply
No replies to this topic

#1 BlackWraith

BlackWraith

    X-S Member

  • Members
  • Pip
  • 133 posts
  • Location:United States
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 01 June 2005 - 12:19 AM

Use this to access the music menu in from the settings. helpful if you enjoy a 3 tabbed main menu and you still want to launch an xbe from the main menu and have access to the music. this is code from tayior and krater from back in thc lite. i take no creds

open default.xip/settings.xap

search for function StartSettingsMenu()

replace
CODE
var sSettingsMenu = new Array(7);
var index = 0;
sSettingsMenu[index] = theTranslator.Translate("FILE MANAGER");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("MEMORY MANAGER");
index = index + 1;
       sSettingsMenu[index] = theTranslator.Translate("DASH CONFIGURATION");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("NETWORK SETTINGS");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("SKINS");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("CLOCK");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("LANGUAGE");
index = index + 1;
if(theConfig.GetAVPackType() != "RFU")
{

with
CODE
var sSettingsMenu = new Array(7);
var index = 0;
sSettingsMenu[index] = theTranslator.Translate("FILE MANAGER");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("MEMORY MANAGER");
index = index + 1;
       sSettingsMenu[index] = theTranslator.Translate("Music Manager");
       index = index + 1;
       sSettingsMenu[index] = theTranslator.Translate("DASH CONFIGURATION");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("NETWORK SETTINGS");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("SKINS");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("CLOCK");
index = index + 1;
sSettingsMenu[index] = theTranslator.Translate("LANGUAGE");
index = index + 1;
if(theConfig.GetAVPackType() != "RFU")
{


search for function MenuIcon()

replace
CODE
   var c = theSettingsMenu.children[0].children[0];
  if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("FILE MANAGER")) { ShowIcon(c.ConsoleIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("MEMORY MANAGER")) { ShowIcon(c.ConsoleIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("NETWORK SETTINGS")) { ShowIcon(c.GlobeIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("DASH CONFIGURATION")) { ShowIcon(c.ConsoleIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("SKINS")) { SetVideoModeIcon(nCurVideoMode); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("LANGUAGE")) { ShowIcon(c.GlobeIcon); }

with
CODE
   var c = theSettingsMenu.children[0].children[0];
        if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("FILE MANAGER")) { ShowIcon(c.ConsoleIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("MEMORY MANAGER")) { ShowIcon(c.ConsoleIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Music Manager")) { SetAudioModeIcon(nCurAudioMode); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("DASH CONFIGURATION")) { ShowIcon(c.ConsoleIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("NETWORK SETTINGS")) { ShowIcon(c.GlobeIcon); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("SKINS")) { SetVideoModeIcon(nCurVideoMode); }
   else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("LANGUAGE")) { ShowIcon(c.GlobeIcon); }


search for function UpdateRootMeta()

replace
CODE
function UpdateRootMeta()
{
   var c = theSettingsMenu.children[0].children[0];
var metaString = "";
  if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("FILE MANAGER")) { metaString = theTranslator.Translate("FILE MANAGER"); }
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("MEMORY MANAGER")) { metaString = theTranslator.Translate("MEMORY MANAGER"); }
       else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("NETWORK SETTINGS")) { metaString = theTranslator.Translate("NETWORK SETTINGS"); }
       else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("DASH CONFIGURATION")) { metaString = theTranslator.Translate("DASH CONFIGURATION"); }
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("SKINS"))  { metaString = theTranslator.Translate("SKINS"); }
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("CLOCK")) { metaString = "<clock>"; }
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("LANGUAGE"))
{

with
CODE
function UpdateRootMeta()
{
   var c = theSettingsMenu.children[0].children[0];
var metaString = "";
  if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("FILE MANAGER")) { metaString = theTranslator.Translate("FILE MANAGER"); }
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("MEMORY MANAGER")) { metaString = theTranslator.Translate("MEMORY MANAGER"); }
       else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Music Manager")) { metaString = theTranslator.Translate("Music Manager"); }
       else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("DASH CONFIGURATION")) { metaString = theTranslator.Translate("DASH CONFIGURATION"); }
       else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("NETWORK SETTINGS")) { metaString = theTranslator.Translate("NETWORK SETTINGS"); }
    else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("SKINS"))  { metaString = theTranslator.Translate("SKINS"); }
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("CLOCK")) { metaString = "<clock>"; }
else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("LANGUAGE"))
{


now search for control DEF theSettingsJoystick Joystick

replace
CODE
           if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("FILE MANAGER"))
  {
   strCurMenu = "FILE MANAGER";
   GoToFileManager();
  }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("MEMORY MANAGER"))
  {
   strCurMenu = "MEMORY MANAGER";
                               GoToMemory();
  }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("NETWORK SETTINGS"))
  {
   strCurMenu = "NETWORK SETTINGS";
   theNetworkMenu.GoTo();
  }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("DASH CONFIGURATION"))
  {
   strCurMenu = "CONFIGURATION";
   GoToConfig();
  }
    else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("SKINS"))
  {
   strCurMenu = "SKINS";
   GoToSkins();
  }

with
CODE
           if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("FILE MANAGER"))
  {
   strCurMenu = "FILE MANAGER";
   GoToFileManager();
  }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("MEMORY MANAGER"))
  {
   strCurMenu = "MEMORY MANAGER";
                               GoToMemory();
  }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("Music Manager"))
                       {
                               strCurMenu = "Music Manager";
                               GoToMusic();
                       }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("DASH CONFIGURATION"))
  {
   strCurMenu = "CONFIGURATION";
   GoToConfig();
  }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("NETWORK SETTINGS"))
  {
   strCurMenu = "NETWORK SETTINGS";
   theNetworkMenu.GoTo();
  }
           else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("SKINS"))
  {
   strCurMenu = "SKINS";
   GoToSkins();
  }

save and a move on

open default.xip/music.xap

search for DEF theMusicMenu Level

replace
CODE
function OnBDown()
       {
           var c = theMusicMenu.children[0].children[0];
           c.MU_back_pod_HL.children[0].appearance.material.param = 1;
           PlaySoundB();
           musicScroll = 0;
           musicSelect = 0;
           musicButton = 0;
  bInMusicMenu = false;
  if(bBackToLauncher) { theLauncherLevel.GoTo(); }
           else { theMainMenu.GoBackTo(); }
  theMusicMenuOut.Play();
       }

with
CODE
function OnBDown()
       {
           var c = theMusicMenu.children[0].children[0];
           c.MU_back_pod_HL.children[0].appearance.material.param = 1;
           PlaySoundB();
           musicScroll = 0;
           musicSelect = 0;
           musicButton = 0;
  bInMusicMenu = false;
  if(bBackToLauncher) { theLauncherLevel.GoTo(); }
           else { GoToSettings(); }
  theMusicMenuOut.Play();
       }


ps: bare in mind this is my first attempt at posting code, so bare with it bitches!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users