xboxscene.org forums

Author Topic: Fourth Menu Tab  (Read 358 times)

Albino

  • Archived User
  • Full Member
  • *
  • Posts: 152
Fourth Menu Tab
« on: January 20, 2005, 02:04:00 PM »

I got a copy of UIX last night and tried it out, the dash has come on great from the original tHc. The only thing that I wasn't keen on was accessing the memory through system. I read FireSokars code snippets on how to add a fourth menu button and that worked it got me to memory through the main menu. The only thing wrong with it was when you exited memory it took you back to the system menu rather than the main menu, but after about 10 mins of messing I have it sorted. The main menu now has a memory tab that once exited takes you back to the main menu, and I have removed the memory manager from the system menu.

I have enclosed FireSokars code snippet here so you don't have to search for that.

Open default.xip/default.xap and search for
CODE

3;//


change this to
CODE

4;//


then search for
CODE

control DEF theMainMenuJoy Joystick


Locate:
CODE

           else if(nCurMainMenuItem == 2)
           {
           }


and replace with
CODE

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


Save and close default.xap

Now to make it so that exiting the memory takes you to the main menu.

Open default.xip/memory.xap, search for
CODE

function OnBDown()


Locate:
CODE

GoToSettings();


Replace with
CODE

theMainMenu.GoBackTo();


Save and close memory.xap

Now to delete memory manager from the system menu, if you don't want to do that then don't follow this section.

Open default.xip/settings.xap

search for
CODE

function OnADown()


Locate
CODE

            else if(sSettingsElements[nCurSettingsMenuItem] == theTranslator.Translate("MEMORY MANAGER"))
            {
                strCurMenu = "MEMORY MANAGER";
                GoToMemory();
            }

and delete all of it.

Now search for Memory manager, and delete the whole of every line which it is in.
For reference the following line numbers contain Memory Manager.

2461 also delete line 2462 (YOU MUST DO THIS)
2543
2569

Now save settings.xap

Open default.xip if you closed it and insert the newly modified default.xap, settings.xap and memory.xap, save the default.xip file and transfer it over.

I hope this helps a few people.
Logged