
with some small modifications to the tutorial on xboxdash.com it can be done easily... should i post it or not?

| CODE |
function Update4ButtonMainMenu() { var c = theMainMenu.children[0].children[0]; c.game_select_pod_inner02.visible = false; // Button 1 Flashing Orb c.game_select_pod_inner.visible = false; // Button 2 Flashing Orb c.game_select_pod_inner04.visible = false; // Button 3 Flashing Orb c.game_select_pod_inner03.visible = false; // Button 4 Flashing Orb c.game_select_pod_inner032.visible = false; if (nCurMainMenuItem == 0) // Button 1 { c.game_select_pod_inner02.visible = true; c.theMenuItems.SetRotation(0, 0, 1, -0.25); c.theMemoryItem.SetRotation(0, 1, 0, -0.25); c.theMemoryItem.SetAlpha(0.5); c.theMusicItem.SetRotation(0, 1, 0, -0.25); c.theMusicItem.SetAlpha(1); c.theOnlineItem.SetRotation(0, 1, 0, -0.25); c.theOnlineItem.SetAlpha(0.2); c.theSettingsItem.SetRotation(0, 1, 0, -0.25); c.theSettingsItem.SetAlpha(0); c.theExtraItem.SetRotation(0, 1, 0, -0.25); c.theExtraItem.SetAlpha(0); c.MemoryPanelMaterial.name = "GameHilite"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.ExtraPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "HilightedType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.ExtraTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 1) // Button 2 (Default position) { c.game_select_pod_inner.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.0); c.theMemoryItem.SetRotation(0, 1, 0, 0.0); c.theMemoryItem.SetAlpha(1); c.theMusicItem.SetRotation(0, 1, 0, 0.0); c.theMusicItem.SetAlpha(0.5); c.theOnlineItem.SetRotation(0, 1, 0, 0.0); c.theOnlineItem.SetAlpha(0.5); c.theSettingsItem.SetRotation(0, 1, 0, 0.0); c.theSettingsItem.SetAlpha(0.2); c.theExtraItem.SetRotation(0, 1, 0, 0.0); c.theExtraItem.SetAlpha(0); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "GameHilite"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.ExtraPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "HilightedType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.ExtraTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 2) // Button 3 { c.game_select_pod_inner04.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.25); c.theMemoryItem.SetRotation(0, 1, 0, 0.25); c.theMemoryItem.SetAlpha(0.5); c.theMusicItem.SetRotation(0, 1, 0, 0.25); c.theMusicItem.SetAlpha(0); c.theOnlineItem.SetRotation(0, 1, 0, 0.25); c.theOnlineItem.SetAlpha(1); c.theSettingsItem.SetRotation(0, 1, 0, 0.25); c.theSettingsItem.SetAlpha(0.5); c.theExtraItem.SetRotation(0, 1, 0, 0.25); c.theExtraItem.SetAlpha(0.2); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "GameHilite"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.ExtraPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "HilightedType"; c.SettingsTextMaterial.name = "NavType"; c.ExtraTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 3) // Button 4 { c.game_select_pod_inner03.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.50); c.theMemoryItem.SetRotation(0, 1, 0, 0.50); c.theMemoryItem.SetAlpha(0.2); c.theMusicItem.SetRotation(0, 1, 0, 0.50); c.theMusicItem.SetAlpha(0); c.theOnlineItem.SetRotation(0, 1, 0, 0.50); c.theOnlineItem.SetAlpha(0.5); c.theSettingsItem.SetRotation(0, 1, 0, 0.50); c.theSettingsItem.SetAlpha(1); c.theExtraItem.SetRotation(0, 1, 0, 0.50); c.theExtraItem.SetAlpha(0.5); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "GameHilite"; c.ExtraPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "HilightedType"; c.ExtraTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 4) { c.game_select_pod_inner032.visible = true; c.theMenuItems.SetRotation(0, 0, 1, 0.75); c.theMemoryItem.SetRotation(0, 1, 0, 0.75); c.theMemoryItem.SetAlpha(0); c.theMusicItem.SetRotation(0, 1, 0, 0.75); c.theMusicItem.SetAlpha(0); c.theOnlineItem.SetRotation(0, 1, 0, 0.75); c.theOnlineItem.SetAlpha(0.2); c.theSettingsItem.SetRotation(0, 1, 0, 0.75); c.theSettingsItem.SetAlpha(0.5); c.theExtraItem.SetRotation(0, 1, 0, 0.75); c.theExtraItem.SetAlpha(1); c.MemoryPanelMaterial.name = "FlatSurfaces2sided"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.ExtraPanelMaterial.name = "GameHilite"; c.MemoryTextMaterial.name = "NavType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.ExtraTextMaterial.name = "HilightedType"; } } |
| CODE |
c.SubmenuText1.text = SubMenuItem1; c.SubmenuText2.text = SubMenuItem2; c.SubmenuText3.text = SubMenuItem3; c.SubmenuText4.text = SubMenuItem4; |
| CODE |
c.SubmenuText1.text = SubMenuItem1; c.SubmenuText2.text = SubMenuItem2; c.SubmenuText3.text = SubMenuItem3; c.SubmenuText4.text = SubMenuItem4; c.SubmenuText5.text = "XBMC"; |
| CODE |
| function OnMoveDown() |
| CODE |
| if (nCurMainMenuItem < 3) |
| CODE |
| if (nCurMainMenuItem < 4) |
| CODE |
| function OnADown() |
| CODE |
else if (nCurMainMenuItem == 4) { gamelaunch = true; launchXbe = "default.xbe"; launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC"; theLaunchGameLevel.GoTo(); } |
| CODE |
] } ] scale 1.080000 1.080000 1.080000 translation 400 0 -180 //translation -57.980000 -13.690000 -84.760002 } /*jbone*/ /* DEF select Transform |
| CODE |
DEF Main_memory2_ringpin_4 Transform { children [ DEF theExtraItem Transform { fade 0.43 children [ DEF settings_arm03 Transform { children [ DEF settings_arm_04 Transform { children [ DEF settings Transform { children [ DEF pod_rotate_structure4 Transform { children [ Spinner { rpm 1.3 axis 0 0 2 children [ DEF game_podsupport_14 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "FlatSrfc/PodParts" } } geometry DEF game_podsupport_14-FACES Mesh { url "game_podsupport_14-FACES.xm" } } Shape { appearance Appearance { material MaxMaterial { name "PanelBacking_01" } } geometry Mesh { url "game_podsupport_14-FACES.xm" } } ] rotation -0.401400 0.864700 -0.302000 -1.753000 scale 1.472000 1.472000 1.472000 scaleOrientation -0.858200 -0.374900 0.350600 -0.663700 translation 7.240000 4.4022000 2.441000 } DEF game_podsupport_13 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "FlatSrfc/PodParts" } } geometry USE game_podsupport_14-FACES } Shape { appearance Appearance { material MaxMaterial { name "PanelBacking_01" } } geometry Mesh { url "game_podsupport_14-FACES.xm" } } ] rotation -0.689600 0.314600 -0.652200 -2.669000 scale 1.472000 1.472000 1.472000 scaleOrientation 0.856700 -0.033150 0.514800 -0.586200 translation -3.080002 7.282000 2.860000 } DEF game_podsupport_15 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "FlatSrfc/PodParts" } } geometry USE game_podsupport_14-FACES } Shape { appearance Appearance { material MaxMaterial { name "PanelBacking_01" } } geometry Mesh { url "game_podsupport_14-FACES.xm" } } ] rotation 0.672500 0.244000 0.698700 -2.514000 scale 1.472000 1.472000 1.472000 scaleOrientation -0.770900 0.394400 -0.500200 -0.985600 translation -5.680000 -2.973000 1.714000 } DEF game_podsupport_16 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "FlatSrfc/PodParts" } } geometry DEF game_podsupport_16-FACES Mesh { url "game_podsupport_16-FACES.xm" } } Shape { appearance Appearance { material MaxMaterial { name "PanelBacking_01" } } geometry Mesh { url "game_podsupport_16-FACES.xm" } } ] rotation 0.315600 0.854700 0.412200 -1.672000 scale 1.472000 1.472000 1.472000 scaleOrientation -0.761500 -0.592900 -0.261900 -0.615200 translation 4.639999 -5.294000 1.359000 } DEF game_podsocket_inner03 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "MenuCell" } } geometry DEF game_podsocket_inner03-FACES Mesh { url "game_podsocket_inner03-FACES.xm" } } ] rotation 0.994900 -0.002650 -0.101000 -1.675000 scale 0.329600 0.329600 0.329600 scaleOrientation -0.310500 -0.318200 -0.895800 -0.441400 translation 0.000000 0.000000 0.000000 } ] } ] translation -33.250000 -4.746000 -10.290000 } DEF game_select_pod_inner032 Transform { children [ Spinner { rpm 5.75/*jb*/ axis 0 2 2 children [ Shape { appearance Appearance { material MaxMaterial { name "InnerWall_01" } texture ImageTexture { alpha true url "orbcellwall.bmp" } } geometry Mesh { url "OrbCell-FACES.xm" } } ] } Spinner { rpm 5.75/*jb*/ axis 2 2 0 children [ Shape { appearance Appearance { material MaxMaterial { name "EggGlowPulse" } texture ImageTexture { alpha true url "orbcellwall.bmp" } } geometry Mesh { url "OrbCell-FACES.xm" } } ] } ] rotation -0.335200 0.920700 -0.199700 -0.424800 scale 6.598800 6.598800 6.598800/*jbone*/ scaleOrientation 0.000000 0.000000 0.000000 0.000000 translation -32.200001 -4.344000 -2.936000 } /* DEF gamepod_backing03 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "FlatSurfaces" } } geometry DEF gamepod_backing03-FACES Mesh { url "gamepod_backing03-FACES.xm" } } ] rotation -0.993800 -0.111400 0.002924 -1.478000 scale 0.329600 0.329600 0.329600 scaleOrientation -0.344800 0.141400 0.928000 -0.345300 translation -32.540001 -4.030000 -3.501000 } */ DEF game_podshell_11 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "MenuCell" } } geometry DEF game_podshell_11-FACES Mesh { url "game_podshell_11-FACES.xm" } } ] rotation -0.205500 -0.736100 -0.645000 -2.839000 scale 0.329600 0.329600 0.329600 scaleOrientation -0.176400 -0.392000 -0.902900 -0.548000 translation -32.540001 -4.030000 -3.501000 } DEF game_pod03 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "MenuCell" } } geometry Sphere { radius 25.000000 } } ] rotation -0.922500 -0.329200 -0.201700 -1.575000 scale 0.329600 0.329600 0.329600 scaleOrientation 0.298000 0.445100 -0.844400 -0.878300 translation -32.540001 -4.030000 -3.501000 } DEF settings_panel_support Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "FlatSurfaces" } } geometry DEF settings_panel_support-FACES Mesh { url "settings_panel_support-FACES.xm" } } ] rotation -0.585700 -0.570700 0.575600 -4.179000 scale 2.040000 2.040000 2.040000 scaleOrientation -0.968400 -0.096220 0.230000 -0.613900 translation -23.510000 -6.908000 2.461000 } DEF memory_metapanel Transform { children [ Shape { appearance Appearance { material DEF ExtraPanelMaterial MaxMaterial { name "GameHilite" } texture ImageTexture { url "GameHilite_01.bmp" } } geometry DEF settings_text_metapanel-FACES Mesh { url "settings_text_metapanel-FACES.xm" } } ] rotation 0.002542 -0.701000 0.713100 -3.149000 scale 1.591000 1.591000 1.591000 scaleOrientation 0.722400 0.199200 -0.662200 -0.478000 translation -11.790000 -17.680000 4.164000 } DEF game_podshell_10 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "MenuCell" } } geometry DEF game_podshell_10-FACES Mesh { url "game_podshell_10-FACES.xm" } } ] rotation -0.996900 -0.063700 0.046460 -1.470000 scale 0.329600 0.329600 0.329600 scaleOrientation -0.223500 -0.021950 0.974500 -0.604800 translation -32.540001 -4.030000 -3.501000 } DEF settings_tube Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "Tubes" } } geometry DEF settings_tube-FACES Mesh { url "settings_tube-FACES.xm" } } ] rotation -0.999900 -0.008726 0.008880 -1.553000 scale 5.523000 5.523000 5.523000 scaleOrientation -0.471600 -0.550100 -0.689200 -0.154500 translation -16.010000 -25.790001 2.971000 } DEF settings_tube_0 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "Tubes" } } geometry DEF settings_tube_0-FACES Mesh { url "settings_tube_0-FACES.xm" } } ] rotation -0.999900 -0.008726 0.008880 -1.553000 scale 5.523000 5.523000 5.523000 scaleOrientation -0.471600 -0.550100 -0.689200 -0.154500 translation -14.630000 -24.740000 2.929000 } DEF game_podshell_12 Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "MenuCell" } } geometry DEF game_podshell_12-FACES Mesh { url "game_podshell_12-FACES.xm" } } ] rotation -0.214200 -0.735100 -0.643200 -2.820000 scale 0.329600 0.329600 0.329600 scaleOrientation -0.388500 -0.717300 -0.578400 -0.540400 translation -32.540001 -4.030000 -3.501000 } DEF extra_text Transform { children [ Transform { rotation -1 0 0 1.571 children [ DEF Button_04_Text Shape { appearance Appearance { material DEF ExtraTextMaterial MaxMaterial { name "NavType" } } geometry DEF SubmenuText5 Text { font "Heading" translate true text "5TH TAB" } } ] } ] rotation -1.000000 0.002966 0.003888 -1.551000 scale 7.000 0.0 7.000 scaleOrientation 0.527100 0.681300 0.508000 -0.177100 translation -13.937000 -10.380000 4.323000 } ] rotation -0.602100 -0.599600 -0.527300 -2.191000 scale 0.458100 0.458100 0.458100 //scaleOrientation 0.044600 0.985600 0.163200 -0.123500 translation 5.641000 15.510000 -1.711000 } ] rotation 0.001397 -0.015840 0.999900 -3.163000 scale 1.296000 1.296000 1.296000 scaleOrientation 0.302900 0.914000 0.270000 -0.422300 translation -6.689000 0.236800 -4.083000 } ] rotation 0.127600 -0.011390 -0.991800 -1.591000 scale 0.225100 0.257500 0.257500 scaleOrientation -0.438700 0.896100 0.067440 -0.155900 translation -0.416600 -0.801500 0.463500 } ]} ] rotation 0.997500 -0.047920 0.052590 -1.573000 scale 6.057000 6.927000 6.057000 scaleOrientation 0.008927 0.998300 -0.057520 -0.081130 // Settings Position // translation 57.430000 -23.379999 101.500000 // - These numbers are for a 3 button menu // translation 57.430000 -24.379999 101.500000 // - These numbers are for a 4 button menu } |
| QUOTE |
| mainmenu5.xip/default.xap right above this code: |
| QUOTE (Gcue @ Apr 21 2004, 09:42 AM) | ||||
And Link it in the
With:
|
| QUOTE (Xbox-Savage @ Apr 21 2004, 12:57 PM) |
| and where do i put that code , you didnt say where ,right under function OnADown() or under some code under it? , replace everything under it with it? |
| CODE |
else if (nCurMainMenuItem == 4) { gamelaunch = true; launchXbe = "default.xbe"; launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC"; theLaunchGameLevel.GoTo(); } |
| CODE |
if (nCurMainMenuItem == 0) { theGamesMenuIn.Play(); GoToMusicPlayWithSubs(); } else if (nCurMainMenuItem == 1) { theGamesMenuIn.Play(); GoToMemory(); } else if (nCurMainMenuItem == 2) { theMusicMenuIn.Play(); GoToMusic(); } else if (nCurMainMenuItem == 3) { theSettingsMenuIn.Play(); GoToSettings(); } else if (nCurMainMenuItem == 4) { gamelaunch = true; launchXbe = "default.xbe"; launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC"; theLaunchGameLevel.GoTo(); } |
| CODE |
if (nCurMainMenuItem == 0) { theGamesMenuIn.Play(); GoToMusicPlayWithSubs(); } else if (nCurMainMenuItem == 1) { theGamesMenuIn.Play(); GoToMemory(); } else if (nCurMainMenuItem == 2) { theMusicMenuIn.Play(); GoToMusic(); } else if (nCurMainMenuItem == 3) { theSettingsMenuIn.Play(); GoToSettings(); } else if (nCurMainMenuItem == 4) { QuickLaunch("Menu5"); } |
| CODE |
| Quick Launch Menu5=F:\\Apps\\XBMC\\default.xbe |
| CODE |
| Menu5 Text=.:MENU 5:. |
| CODE |
| var SubMenuItem4; |
| CODE |
| var SubMenuItem5; |
| CODE |
| function GetSubmenuText() { var info = new Settings; info.file = "Y:\\config.xbx"; SubMenuItem1 = info.GetValue("HardDrive Text"); SubMenuItem2 = info.GetValue("Memory Text"); SubMenuItem3 = info.GetValue("Music Text"); SubMenuItem4 = info.GetValue("Settings Text"); } |
| CODE |
| function GetSubmenuText() { var info = new Settings; info.file = "Y:\\config.xbx"; SubMenuItem1 = info.GetValue("HardDrive Text"); SubMenuItem2 = info.GetValue("Memory Text"); SubMenuItem3 = info.GetValue("Music Text"); SubMenuItem4 = info.GetValue("Settings Text"); SubMenuItem5 = info.GetValue("Menu5 Text"); } |
| CODE |
GetSubmenuText(); c.SubmenuText1.text = SubMenuItem1; c.SubmenuText2.text = SubMenuItem2; c.SubmenuText3.text = SubMenuItem3; c.SubmenuText4.text = SubMenuItem4; |
| CODE |
c.SubmenuText5.text = SubMenuItem5; |
| QUOTE (WarriorSan @ Apr 21 2004, 01:48 PM) |
| @Gcue, I also edit the mainmenu5.xip/default.xap and default.xip/default.xap how you explained. The 5th tab is working correctly (I edit it to startup Evox for FTP) but it's not visible I can't understand what I did wrong. Can you help me out? I'm using tHc LITE 1.2 Blue P.s Gcue and Jb0nE nice work! |
| CODE |
| [CODE] function Update4ButtonMainMenu() { var c = theMainMenu.children[0].children[0]; c.game_select_pod_inner02.visible = false; // Button 1 Flashing Orb c.game_select_pod_inner.visible = false; // Button 2 Flashing Orb c.game_select_pod_inner04.visible = false; // Button 3 Flashing Orb c.game_select_pod_inner03.visible = false; // Button 4 Flashing Orb c.game_select_pod_inner032.visible = false; if (nCurMainMenuItem == 0) // Button 1 { c.game_select_pod_inner02.visible = true; c.theMenuItems.SetRotation(0, 0, 1, -0.25); c.theMemoryItem.SetRotation(0, 1, 0, -0.25); c.theMemoryItem.SetAlpha(0.5); c.theMusicItem.SetRotation(0, 1, 0, -0.25); c.theMusicItem.SetAlpha(1); c.theOnlineItem.SetRotation(0, 1, 0, -0.25); c.theOnlineItem.SetAlpha(0.2); c.theSettingsItem.SetRotation(0, 1, 0, -0.25); c.theSettingsItem.SetAlpha(0); c.theExtraItem.SetRotation(0, 1, 0, -0.25); c.theExtraItem.SetAlpha(0); c.MemoryPanelMaterial.name = "GameHilite"; c.MusicPanelMaterial.name = "FlatSurfaces2sided"; c.OnlinePanelMaterial.name = "FlatSurfaces2sided"; c.SettingsPanelMaterial.name = "FlatSurfaces2sided"; c.ExtraPanelMaterial.name = "FlatSurfaces2sided"; c.MemoryTextMaterial.name = "HilightedType"; c.MusicTextMaterial.name = "NavType"; c.OnlineTextMaterial.name = "NavType"; c.SettingsTextMaterial.name = "NavType"; c.ExtraTextMaterial.name = "NavType"; } else if (nCurMainMenuItem == 1) // Button 2 (Default position) { etc... ... ... |
| CODE |
| c.theOnlineItem.SetAlpha(0.2); |
| QUOTE (cypher35 @ Apr 21 2004, 03:50 PM) | ||||||||
| is it really that hard to guess?? you put
in the function "function OnADown()" after all of the other "else if" statements. it's not too hard to figure out what is going on in this function... it determines what the current menu item (nCurMainMenuItem) is. When it's 0 it will open the memory menu, if it's 1 it will open the music menu, if it's 2 it will open the hard drive menu, etc... this tells it what to do when menu 4 is selected. here's what it should look like:
or you could do what i did and make it look like this:
then open up config.xbx and add the following line anywhere you want (just as long as it is it's own line and you don't change anything before the '=' sign)
you can then set that to whatever you want menu 5 to launch to. |
| CODE |
| function OnADown() |
| CODE |
function OnADown() { if (nCurMessageButton != -1) { PlaySoundA(); if (nCurMessageButton == 0) OnQuestionYes(); else OnQuestionNo(); } } function OnBDown() { if (nMessageButtonCount == 1) { // Just an OK button; B is the same as A OnADown(); return; } if (nCurMessageButton != -1) { PlaySoundB(); nCurMessageButton = 1; UpdateMessageButtonHighlight(); OnQuestionNo(); } } function OnMoveLeft() { if (nMessageButtonCount < 2) return; if (nCurMessageButton == 1) { PlaySoundMenuChange(); nCurMessageButton = 0; UpdateMessageButtonHighlight(); } } function OnMoveRight() { if (nMessageButtonCount < 2) return; if (nCurMessageButton == 0) { PlaySoundMenuChange(); nCurMessageButton = 1; UpdateMessageButtonHighlight(); } } } |
| CODE |
if (nCurMainMenuItem == 0) { theGamesMenuIn.Play(); GoToMusicPlayWithSubs(); } else if (nCurMainMenuItem == 1) { theGamesMenuIn.Play(); GoToMemory(); } else if (nCurMainMenuItem == 2) { theMusicMenuIn.Play(); GoToMusic(); } else if (nCurMainMenuItem == 3) { theSettingsMenuIn.Play(); GoToSettings(); |
| CODE |
| function OnADown() |
| CODE |
| control DEF theMainMenuJoy Joystick |
| QUOTE |
control DEF theMainMenuJoy Joystick <---- The real thing { function OnADown() <--- Gcue's Mistake!!! { PlaySoundA(); if((LeftTrigger == true) & (RightTrigger == true)) { QuickLaunch("A"); } else { if (nCurMainMenuItem == 0) { theGamesMenuIn.Play(); GoToMemory(); } else if (nCurMainMenuItem == 1) { theMusicMenuIn.Play(); GoToMusic(); } else if (nCurMainMenuItem == 2) { theGamesMenuIn.Play(); GoToMusicPlayWithSubs(); } else if (nCurMainMenuItem == 3) { theSettingsMenuIn.Play(); GoToSettings(); |
| QUOTE (Xbox-Savage @ Apr 21 2004, 03:13 PM) | ||||
| is not!!!
is
That ^^^ will give you this: |
| 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. |
| QUOTE (cypher35 @ Apr 21 2004, 05:28 PM) |
| sorry to burst your bubble, but that isn't technicly a mistake... the part he wanted you to edit *is* still inside the "function OnADown()" brackets, however there just so happen to be several occurances of this function throughout the code. |
| CODE |
function OnADown() { if (nCurMessageButton != -1) { PlaySoundA(); if (nCurMessageButton == 0) OnQuestionYes(); else OnQuestionNo(); } } function OnBDown() { if (nMessageButtonCount == 1) { // Just an OK button; B is the same as A OnADown(); return; } if (nCurMessageButton != -1) { PlaySoundB(); nCurMessageButton = 1; UpdateMessageButtonHighlight(); OnQuestionNo(); } } function OnMoveLeft() { if (nMessageButtonCount < 2) return; if (nCurMessageButton == 1) { PlaySoundMenuChange(); nCurMessageButton = 0; UpdateMessageButtonHighlight(); } } function OnMoveRight() { if (nMessageButtonCount < 2) return; if (nCurMessageButton == 0) { PlaySoundMenuChange(); nCurMessageButton = 1; UpdateMessageButtonHighlight(); } } } |
| CODE |
| control DEF theMainMenuJoy Joystick |
| CODE |
control DEF theMainMenuJoy Joystick { function OnADown() <--- Gcue's Mistake!!! { PlaySoundA(); if((LeftTrigger == true) & (RightTrigger == true)) { QuickLaunch("A"); } else { if (nCurMainMenuItem == 0) { theGamesMenuIn.Play(); GoToMemory(); } else if (nCurMainMenuItem == 1) { theMusicMenuIn.Play(); GoToMusic(); } else if (nCurMainMenuItem == 2) { theGamesMenuIn.Play(); GoToMusicPlayWithSubs(); } else if (nCurMainMenuItem == 3) { theSettingsMenuIn.Play(); GoToSettings(); |
| QUOTE (WarriorSan @ Apr 21 2004, 03:51 PM) |
| @cypher35, oke I did what you said and yes the menu aren't transparent any more (so thank you) I also edit the default.xip/default.xap so that I can easily change the config.xbx and set that to whatever you want menu 5 to launch to. That's also working fine... |
| QUOTE |
| @Gcue how come when I select the 5th tab and it shows up. It's still way hidden at the back of the orb (just like what Xbox-Savage said). Was it the reason to show up like that at the back of the orb?? Can you maybe tell me how to edit the default.xip/default.xap so that the 5th tab is solid and right under the 4th tab..just like the picture of Cypher35. |
| CODE |
| ] } ] scale 1.080000 1.080000 1.080000 translation 400 0 -180 //translation -57.980000 -13.690000 -84.760002 } /*jbone*/ /* DEF select Transform |
| QUOTE |
| anyway, it probably wouldn't be too hard to make a configurable option in config.xbx to toggle 5 menu mode and to set the name and action of menu 5... that's my next project |
| QUOTE |
] } ] scale 1.080000 1.080000 1.080000 translation 400 0 -180 //translation -57.980000 -13.690000 -84.760002 } /*jbone*/ /* DEF select Transform |
| CODE |
| ] } ] scale 1.080000 1.080000 1.080000 translation 400 0 -180 //translation -57.980000 -13.690000 -84.760002 } /*jbone*/ /* DEF select Transform |
| QUOTE (cypher35 @ Apr 22 2004, 03:52 PM) | ||
for that code segment, it should be pasted before
no replacing anything... |
| CODE |
| DEF theMenuItems Transform { fade 0.43 //fade 0.25 children [ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// <-- insert menu5 here!! --> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// DEF Main_memory_ringpin_2 Transform { children [ |
| QUOTE (soundentertainm @ Apr 26 2004, 03:57 AM) |
| If someone could send me the xip's I would be very greatfull. |
| QUOTE (cypher35 @ Apr 26 2004, 02:06 AM) |
| ok.. i don't really have the time to try to understand what all of you are doing wrong with this tutorial, so i've just decided to post my entire code for mainmenu5.xip and default.xip i'm not sure how legal this is, so if any moderator want's me to remove this link, just let me know... i'll probably be taking it down in a week or so, so get it while it lasts: EDIT.rar |