xboxscene.org forums

Author Topic: Drop Down Menus  (Read 773 times)

Little-G

  • Archived User
  • Jr. Member
  • *
  • Posts: 62
Drop Down Menus
« on: December 15, 2007, 09:18:00 AM »

in order to get the drop down menus from thc lite / thc follow this guide.

first crack open your default.xip/default.xap. at the top you will see

CODE
//only need these if you are going to use the old drop down style hd menus...
//DEF theGamesMenu             TitleMenu
//DEF theApplicationsMenu     TitleMenu
//DEF theEmulatorsMenu         TitleMenu
//DEF theDashboardsMenu     TitleMenu


uncomment all of these functions.

now search for
CODE
InitializeMenus();


until you come across

CODE
    //InitializeMenus(); //not needed with new hd menu - use to init menus if using drop down menus


uncomment this function.

finally search for
CODE
GoToHardDrive();


and replace the function for
CODE
GoToMusicPlayWithSubs();


should look like this

CODE
           else if(nCurMainMenuItem == 2)
           {
               theSettingsMenuIn.Play();
               GoToMusicPlayWithSubs();
           }


close and save default.xap

now open default.xip/music_play_with_subs.xap

search for
CODE
url "music_play_edit/menu.xap"


and replace with
CODE
url "music_play_edit/default3.xap"


close and save music_play_with_subs.xap, save your default.xip, ftp and.... ENJOY
Logged

Little-G

  • Archived User
  • Jr. Member
  • *
  • Posts: 62
Drop Down Menus
« Reply #1 on: December 18, 2007, 02:01:00 PM »

and here's some simple code to switch between memory style and music play in the config  pop.gif

open your default.xip/default.xap and search for "GoToHardDrive();" or "GoToMusicPlayWithSubs();" depending on whcih you're using. replace the function for "HardDriveCheck();" and it should look like this

CODE
           else if(nCurMainMenuItem == 2)
           {
               theSettingsMenuIn.Play();
               HardDriveCheck();
           }


then at the bottom the xap add this

CODE
function HardDriveCheck()
{    
    var IniFile = new Settings;
    IniFile.SetIniSection( "Memory Hard Drive" );
    var a = IniFile.GetIniValue( "Enabled" );
    IniFile.CloseIniFile();
    
    if( a == "true" ) { GoToHardDrive(); }
    else if( a == "false" ) { GoToMusicPlayWithSubs(); }
    else { return; }
}


close default.xap and open up config.xap. search for

CODE
Music Initial Volume:

 and underneath it add the new option, this is the two together:
CODE
    configList = "Music Initial Volume:";
    configValues = "c-Music On Boot-volume";
    configSelect = "ConfigKeyB()";
    i = i + 1;
    configList = "Memory Style Hard Drive Menu:";
    configValues = "c-Memory Hard Drive-Enabled";
    configSelect = "ToggleTF()";
    i = i + 1;


finally open your uix.ini and add
CODE
[Memory Hard Drive]
Enabled=true
to the bottom

 pop.gif
Logged

loonytoonz90

  • Archived User
  • Newbie
  • *
  • Posts: 24
Drop Down Menus
« Reply #2 on: February 04, 2008, 08:42:00 PM »

nice u got any more for U.I.X???
Logged