Jump to content


Photo

5 Menues On Thc Lite ^_^


  • Please log in to reply
102 replies to this topic

#61 ImOkRuOk

ImOkRuOk

    X-S Senior Member

  • Members
  • PipPip
  • 264 posts
  • Location:USA
  • Interests:Xbox, games: fighting, action, Gore and blood and guts and death and violence and satan
  • Xbox Version:v1.1
  • 360 version:v4.0 (jasper)

Posted 28 April 2004 - 08:08 AM

so ya;) was tryin this out, and got it on the first try... but it is still way under the orb... and your xaps... nope... nadda... so... im too high to figure this one out;) could one of you just tell me which set is the 5th tabs xys?

#62 WarriorSan

WarriorSan

    X-S Member

  • Dev/Contributor
  • Pip
  • 147 posts
  • Xbox Version:v1.2
  • 360 version:v4.0 (jasper)

Posted 28 April 2004 - 10:53 AM

@ImOkRuOk,

If you follow the code for 5th menu tab given by Gcue I think it was meant to be back at the end of the orb, because I tried the code many times and just like many others it's showing up way there...

and Gcue also said:

QUOTE

I made this so that only 4 tabs was visible and when you move down the 5th tab shows up. So your mainmenu wont be clogged up with a crap load of tabs damn. You guys are thick.


But I downloaded cypher35 EDIT.rar and to make the 5th menu tab easy configurable for changing the name of the 5th menu and set to whatever you want to launch it we have to edit the config.xbx (Credits to cypher35)

Add the line
CODE

Menu5 Text=.:MENU 5:.  <= call it whatever you want


under the other menu name configurations in config.xbx, like this:
CODE

Memory Text=.:MEMORY:.
Music Text=.:MUSIC:.
HardDrive Text=.:HARD DRIVE:.
Settings Text=.:SETTINGS:.
Menu5 Text=.:MENU 5:.


and add the following line:
CODE

Quick Launch Menu5=F:\\Apps\\XBMC\\default.xbe  <= and set to whatever you want to launch it


under the other Quick Launches, like this:
CODE

Quick Launches
Holding L+R + button launches your app

Quick Launch A=F:\\apps\\Xbox Media Center\\default.xbe
Quick Launch B=F:\\apps\\Xcommander\\default.xbe
Quick Launch X=C:\\xbe\\ejecttray.xbe
Quick Launch Y=C:\\xbe\\loadtray.xbe
Quick Launch Menu5=F:\\Apps\\XBMC\\default.xbe


It worked for me and I renamed the 5th tab to .: FTP:. and set it to launch evox biggrin.gif

#63 dem1980

dem1980

    X-S Young Member

  • Members
  • Pip
  • 36 posts

Posted 30 April 2004 - 05:58 PM

thank you very much for this tutorial
it s great :-)

#64 ANGEL2001ad

ANGEL2001ad

    X-S Young Member

  • Members
  • Pip
  • 34 posts

Posted 05 May 2004 - 03:48 AM

biggrin.gif Fist of all I want to say you guys ROCK! I have wanted to do the 5th tab for some time now. I am more then happier that I switched from neXgen.

unsure.gif So I hate to sound picky when I ask the next two questions I grabbed the edit.rar file and I must say cypher35 you are god. And followed the steps to change the config.xbx file. And all is working good.

sad.gif But my original order is different. Can I arrange it in the order it was originally and if so how? If I missed that here in the post please for give me. huh.gif

wink.gif And also is there possibility for a 6th tab or more?

#65 blaze_1ne

blaze_1ne

    X-S Expert

  • Members
  • PipPipPip
  • 597 posts
  • Location:toronto, ontario, canada
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 05 May 2004 - 03:57 AM

i was able to fully implement the 5th button and it works perfectly. got it link to xbox media centre. smile.gif
but... wink.gif

user posted image

as you can see on the left picture, some of the buttons were rearranged. the right picture is of the hard drive submenu. the submenu's title is wrong, and i was wondering if this could be fixed? i know its not a huge problem, i guess more of a preference... dry.gif
any help guys??

#66 chulo333

chulo333

    X-S Enthusiast

  • Members
  • 25 posts

Posted 05 May 2004 - 06:33 AM

*blaze_1ne: just read your post again and i don't think this was what you were looking for, but I'll leave it up for anyone else that doesn't know.

To change the order of your menus:
(it's a little complicated so try to follow the color coordination)
just search in default.xip/default.xap for:

function GetSubmenuText()
{
var info = new Settings;
info.file = "Y:\\config.xbx";
SubMenuItem1 = info.GetValue("Memory Text");
SubMenuItem2 = info.GetValue("Music Text");
SubMenuItem3 = info.GetValue("HardDrive Text");
SubMenuItem4 = info.GetValue("Settings Text");
SubMenuItem5 = info.GetValue("Menu5 Text");
}


and rearrange the order (of the items I colored below) to your liking. They'll be in the same order top to bottom in thC as what you use here.

I have mine set up like:
function GetSubmenuText()
{
var info = new Settings;
info.file = "Y:\\config.xbx";
SubMenuItem1 = info.GetValue("HardDrive Text");
SubMenuItem2 = info.GetValue("Menu5 Text");
SubMenuItem3 = info.GetValue("Music Text");
SubMenuItem4 = info.GetValue("Memory Text");
SubMenuItem5 = info.GetValue("Settings Text");
}


___________________________________________________________________

then find this section:

control DEF theMainMenuJoy Joystick
{
function OnADown()


and a little below that, change the order of what's in the if statements to match what you did above (this is mine, yours will look similar but rearranged):

if (nCurMainMenuItem == 0)
{
theGamesMenuIn.Play();
GoToMusicPlayWithSubs();
<--move these around to match the order above
}
else if (nCurMainMenuItem == 1)
{
QuickLaunch("Menu5");
}
else if (nCurMainMenuItem == 2)
{
theMusicMenuIn.Play();
GoToMusic();

}
else if (nCurMainMenuItem == 3)
{
theGamesMenuIn.Play();
GoToMemory();

}
else if (nCurMainMenuItem == 4)
{
theSettingsMenuIn.Play();
GoToSettings();

}
}
}


______________________________________________________________

and lastly from the config.xbx edit it to coordinate with the others (just label them based on what they say):

Memory Text=.: MEMORY :.
Music Text=.: MUSIC :.
HardDrive Text=.: LAUNCH :.
Settings Text=.: SETTINGS :.
Menu5 Text=.: FTP :.


this is how I did it. hope it helps some of you...if i got too complicated...oh well. sorry. If there's an easier way, someone else can post it. I'm too tired right now.

ps. Thanks Cypher for helping everyone (including me) with getting the 5th menu up and running!

Edited by chulo333, 05 May 2004 - 06:41 AM.


#67 Annihil8or

Annihil8or

    X-S Enthusiast

  • Members
  • 9 posts

Posted 05 May 2004 - 10:40 PM

Big thanks to Gcue and Cyper for all the coding beerchug.gif , and thanks chulo333 for helping fix the tab's correctly. i've got everthing working and i have the renaming setup using config.xbx as cypher directed, but for some reason when i try to launch the 5th tab it just acts like it's launching a program and restarts THC again. not sure the reason, i've also tried other paths to other quick launch apps that i have currently working and it does the same thing. any help would be appreciated. thanks again.

Edited by Annihil8or, 06 May 2004 - 06:21 PM.


#68 First_Degree

First_Degree

    X-S Enthusiast

  • Members
  • 19 posts

Posted 06 May 2004 - 11:10 PM

QUOTE
as you can see on the left picture, some of the buttons were rearranged. the right picture is of the hard drive submenu. the submenu's title is wrong, and i was wondering if this could be fixed? i know its not a huge problem, i guess more of a preference...
any help guys??

i'm having this same problem. In my Hard Drive submenu it say ".::soundz::." instead ".::Hard Drive::." Its probably something fairly simple, but I'm not very experienced with coding, and I haven't been able to figure it out. Other than that, the xaps worked great! This dash, in conjunction with UnleashX is the ultimate! beerchug.gif

#69 RjT

RjT

    X-S Young Member

  • Members
  • Pip
  • 47 posts

Posted 07 May 2004 - 03:25 AM

Annihil8or ur paths are wrong if its just rebooting to THC double check em and try again

#70 n3wbie

n3wbie

    X-S Enthusiast

  • Members
  • 21 posts

Posted 10 May 2004 - 11:16 PM

First of, Thank you Cypher35 for the 5th orb code. I'm really suck with adding the code manually. Thank you again.

I added the code and found out that my usual menu was changed. So I did some coding to be able to freely move the menu around the 5 orbs using the config file instead of having to make fix changes to the program.

in the default.xip/default.xap, I make changes to the GetSubmenuText function to retrieve the menu text under a different name, Menu1, Menu2 and so forth so that it can be generic and won't confuse me.
CODE

function GetSubmenuText()
{
   var info = new Settings;
   info.file = "Y:\\config.xbx";
   SubMenuItem1 = info.GetValue("Menu1 Text");
   SubMenuItem2 = info.GetValue("Menu2 Text");
   SubMenuItem3 = info.GetValue("Menu3 Text");
   SubMenuItem4 = info.GetValue("Menu4 Text");
   SubMenuItem5 = info.GetValue("Menu5 Text");
}


Then I added another function called MenuAction(x). This function take 1 input and retrieve the static code that I defined to for each action: i.e.
RunMem = Run the Memory
RunMusic = Run Music
RunMenu = Run Harddrive Menu
RunSetting = Run Setting
Anything else = a quick launch of that name.

CODE

function MenuAction(x)
{
   var menu = x;
   var info = new Settings;
   info.file = "Y:\\config.xbx";
   var a = info.GetValue(menu + "Action");
   if (a == "RunMem")
   {
    theGamesMenuIn.Play();
       GoToMemory();
   }
   else if (a == "RunMusic")
   {
theMusicMenuIn.Play();
GoToMusic();
   }
   else if (a == "RunMenu")
   {
    theGamesMenuIn.Play();
    GoToMusicPlayWithSubs();
   }
   else if (a == "RunSetting")
   {
theSettingsMenuIn.Play();
GoToSettings();
   }
   else if (a != " ")
   {
    QuickLaunch(a);
   }
   return;
}


Now in the MainMenuJoy section (define joystick action at the main menu I guess???). I changed the code as follow:

CODE

control DEF theMainMenuJoy Joystick
   {
       function OnADown()
       {
           PlaySoundA();
       if((LeftTrigger == true) & (RightTrigger == true))
       {
           QuickLaunch("A");
       }
       else
       {
               if (nCurMainMenuItem == 0)
               {
                       MenuAction("Menu1");
               }
               else if (nCurMainMenuItem == 1)
               {
                       MenuAction("Menu2");
               }
               else if (nCurMainMenuItem == 2)
               {
                       MenuAction("Menu3");
               }
               else if (nCurMainMenuItem == 3)
               {
                       MenuAction("Menu4");
               }
               else if (nCurMainMenuItem == 4)
               {
                       MenuAction("Menu5");
               }
       }
       }
...


Added the default.xap back into the default.xip. Now it's time for the config.xbx file.

CODE

Background Music=Yes
Use Thc Orb=No

Menu1 Text=.:MEMORY:.                 <-- I change these to Menu1 to Menu5 Text
Menu2 Text=.:MUSIC:.
Menu3 Text=.:START MENU:.
Menu4 Text=.:MEDIA CENTER:.
Menu5 Text=.:SETTINGS:.

Menus Action code:        <-- I added this description
Value         Description
RunMem        Run Memory
RunMusic      Run Music
RunMenu       Run Harddrive Menu.
RunSetting    Run Setting
QL Name       Run Quick Launches.  Example: Menu5 will cause it to run QL Menu5

Menu1Action=RunMem  <-- Here are the 5 menu actions.
Menu2Action=RunMusic
Menu3Action=RunMenu
Menu4Action=XBMC      
Menu5Action=RunSetting

Quick Launches
Holding L+R + button launches your app

Quick Launch A=
Quick Launch B=
Quick Launch X=
Quick Launch Y=
Quick Launch XBMC=F:\\XBMedia\\default.xbe


You can see that Menu1 is to run Memory, Menu2 to run Music, Menu 3 to run Harddrive menu, Menu4 to run a quick launch called XBMC, and menu 5 to run Setting.

If you desire to get rid of RunMusic and run Evox for ftp instead, just change one of the menu text to reflect that and then change the associated Menu action to run the quick launch. For example:

CODE

Menu2 Text=.:EVOX FTP:.
...


Then change the menu action
CODE

Menu2Action=Evox
...


Now add a quick launch with a Evox name to run evox.

CODE

Quick Launch Evox=F:\\Evox\\default.xbe


Hope it helps someone.

I'm not sure if this is relevant, but I found out that by modifying the .xap file using a text editor program, such as notepad, ultraedit or some of those, I didn't have the stupid 21 error. Probably this is just me.

#71 vintster

vintster

    X-S Senior Member

  • Members
  • PipPip
  • 213 posts

Posted 10 May 2004 - 11:27 PM

n3wbie, great code man! I think this should help a lot of people who have trouble editing code. I'm a original tHc guy myself but I might try to adapt your code for that (if you don't mind of course wink.gif ). Anyways, great coding! Keep it up.

Edited by vintster, 10 May 2004 - 11:29 PM.


#72 nmajin

nmajin

    X-S X-perience

  • Members
  • PipPip
  • 422 posts
  • Xbox Version:unk
  • 360 version:unknown

Posted 11 May 2004 - 03:10 AM

Can someone point where i went wrong...i did everything like you said in your tutorial and only things i changed were in these and i cant get the evox ftp to launch sad.gif everything else works fine though

CODE
function MenuAction(x)
{
  var menu = x;
  var info = new Settings;
  info.file = "Y:\\config.xbx";
  var a = info.GetValue(menu + "Action");
  if (a == "RunMem")
  {
   theGamesMenuIn.Play();
      GoToMemory();
  }
  else if (a == "RunMusic")
  {
theMusicMenuIn.Play();
GoToMusic();
  }
  else if (a == "RunMenu")
  {
   theGamesMenuIn.Play();
   GoToMusicPlayWithSubs();
  }
  else if (a == "RunSetting")
  {
theSettingsMenuIn.Play();
GoToSettings();
  }
  else if (a != "EVOX")           <----- I assume this is correct?
  {
   QuickLaunch(a);
  }
  return;
}


CODE
Background Music=Yes
Use Thc Orb=Yes

Menu1 Text=.:MEMORY:.  
Menu2 Text=.:MUSIC:.
Menu3 Text=.:HARD DRIVE:.
Menu4 Text=.:EVOX FTP:.
Menu5 Text=.:SETTINGS:.

Menus Action code:        <-- I added this description
Value         Description
RunMem        Run Memory
RunMusic      Run Music
RunMenu       Run Harddrive Menu.
RunSetting    Run Setting
QL Name       Run Quick Launches.  Example: Menu5 will cause it to run QL Menu5

Menu1Action=RunMem
Menu2Action=RunMusic
Menu3Action=RunMenu
Menu4Action=EVOX      
Menu5Action=RunSetting

Quick Launches
Holding L+R + button launches your app

Quick Launch A=F:\\Applications\\XBOX Media Center\\default.xbe
Quick Launch B=F:\\Utilities\\xToolBox\\default.xbe
Quick Launch X=
Quick Launch Y=
Quick Launch EVOX=F:\\Dashboards\\EvolutionX\\default.xbe

Submenu Options:
Can Only Have 5 Sections Or Less

Total Sections=5

[section0]
Title=Applications
Path=Applications

[section1]
Title=Dashboards
Path=Dashboards

[section2]
Title=Emulators
Path=Emulators

[section3]
Title=Games
Path=Games

[section4]
Title=Utilities
Path=Utilities


I'm a n00b with coding so if i did something stupid please let me know

#73 vintster

vintster

    X-S Senior Member

  • Members
  • PipPip
  • 213 posts

Posted 11 May 2004 - 03:33 AM

QUOTE
else if (a != "EVOX")          <----- I assume this is correct?


I think you have to leave it like this:
CODE
  else if (a != " ")  


since != means "not equal", the code below it will only execute with that condition. That way it will run your quicklaunch if you have ANY item written in "MenuXAction".

#74 n3wbie

n3wbie

    X-S Enthusiast

  • Members
  • 21 posts

Posted 11 May 2004 - 03:52 PM

nmajin,

As vintster already pointed out, you should leave the code as mentioned because it will allows you to fire off multiple different program using the quick launch. The code basically say that if the MenuXAction is not blank and is not RunMem, RunMusic, RunMenu, or RunSetting, then quick launch it.

Vintster,
Thank you for the comment, I'm just a starter so my code may be clumpsy. Feel free to make changes to it smile.gif ...


#75 nmajin

nmajin

    X-S X-perience

  • Members
  • PipPip
  • 422 posts
  • Xbox Version:unk
  • 360 version:unknown

Posted 11 May 2004 - 04:39 PM

hmmm yea i know what you mean. i have no idea why i cant launch anything, everything else works fine though...would it be to much of a headache to post your default.xap file...i just been trying over and over lol im sorry




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users