Help - Search - Members - Calendar
Full Version: 5 Menues On Thc Lite ^_^
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > Archived Forum > Official Xboxdash.net (tHc dashboards) Forum
Pages: 1, 2, 3
cypher35
user posted image

with some small modifications to the tutorial on xboxdash.com it can be done easily... should i post it or not?
GimmeTokens
beerchug.gif beerchug.gif beerchug.gif YES YES YES YES YES beerchug.gif beerchug.gif beerchug.gif
ddkore
NOOO!!! Knowledge is power. If you give them too much knowledge, how will you control them. We must keep them ignorant and weak willed. We shall rule FOREVER!!

jk... post it. I wouldn't mind knowing how you did it.



Tigroz
yes please! i need it,
peterPL
YESSSS
macegriffon
yes please beerchug.gif biggrin.gif
Tigroz
bump beerchug.gif
Alekz
beerchug.gif yea
Gcue
Try this:

default.xip/default.xap
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";
   }
}


Then search for:
CODE

            c.SubmenuText1.text = SubMenuItem1;
            c.SubmenuText2.text = SubMenuItem2;
            c.SubmenuText3.text = SubMenuItem3;
            c.SubmenuText4.text = SubMenuItem4;


And make it look like:
CODE

            c.SubmenuText1.text = SubMenuItem1;
            c.SubmenuText2.text = SubMenuItem2;
            c.SubmenuText3.text = SubMenuItem3;
            c.SubmenuText4.text = SubMenuItem4;
c.SubmenuText5.text = "XBMC";


Then in the
CODE
function OnMoveDown()


change
CODE
if (nCurMainMenuItem < 3)
to:
CODE
if (nCurMainMenuItem < 4)


And Link it in the
CODE
function OnADown()


With:
CODE

     else if (nCurMainMenuItem == 4)
     {
   gamelaunch = true;
   launchXbe = "default.xbe";
   launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC";
   theLaunchGameLevel.GoTo();
     }


mainmenu5.xip/default.xap

right above this code:
CODE

  ]
 }
]
   scale 1.080000 1.080000 1.080000
   translation 400 0 -180
   //translation -57.980000 -13.690000 -84.760002
}

/*jbone*/
/*
DEF select Transform


Paste:

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
   }


That should do it with a little extra wink.gif

Peace
Gcue
Alekz
thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaank you biggrin.gif jester.gif beerchug.gif
macegriffon
mad.gif
i have done this about 10 times now. and just nothing happens??
the dash just boots up fine no error or something, but i dont have 5 buttons??
can somebody sent me his default.xip/default.xap and mainmenu5.xip/default.xap please.
macegriffon@hotmail.com
cypher35
thanks for posting that Gcue, i'm bad at making tutorials...

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.

i'll post the source here when i complete it.
crobar
yeah that would be sweet!
a simple way to add a 5th menu item!
Xbox-Savage
blink.gif fucking curse , doesnt work here , i get empty tabs!! and the XBMC tab way hidden at the back of the orb.



ok on:

QUOTE
mainmenu5.xip/default.xap

right above this code:



you mean add the code on top of that or replace the code that is on top of that?





Xbox-Savage
QUOTE (Gcue @ Apr 21 2004, 09:42 AM)
And Link it in the
CODE
function OnADown()


With:
CODE

     else if (nCurMainMenuItem == 4)
     {
   gamelaunch = true;
   launchXbe = "default.xbe";
   launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC";
   theLaunchGameLevel.GoTo();
     }



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? huh.gif
WarriorSan
@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 sad.gif also when I standing on the 5th invisible tab, the 1 tab (.: MEMORY:.) also disapear...

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!

cypher35
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? huh.gif

is it really that hard to guess??

you put
CODE

    else if (nCurMainMenuItem == 4)
    {
  gamelaunch = true;
  launchXbe = "default.xbe";
  launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC";
  theLaunchGameLevel.GoTo();
    }

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:
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();
               }



or you could do what i did and make it look like this:
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");
               }


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)
CODE
Quick Launch Menu5=F:\\Apps\\XBMC\\default.xbe


you can then set that to whatever you want menu 5 to launch to.
cypher35
while we're on the subject of making things easily configurable, let's make the menu name editable from config.xbx also...

first off, add the line
CODE
Menu5 Text=.:MENU 5:.
under the other menu name configurations in config.xbx

go to:
CODE
var SubMenuItem4;

and add
CODE
var SubMenuItem5;


then go to this function:
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");
}

and make it look like this:
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");
}


then finally, go to where it says
CODE

            GetSubmenuText();
            c.SubmenuText1.text = SubMenuItem1;
            c.SubmenuText2.text = SubMenuItem2;
            c.SubmenuText3.text = SubMenuItem3;
            c.SubmenuText4.text = SubMenuItem4;

(this should be just under "function onLoad()" in "DEF theMainMenu Level")

and add the following line:
CODE

            c.SubmenuText5.text = SubMenuItem5;


there ya go... your manu name and launch path are now definabel via config.xbx
cypher35
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 sad.gif also when I standing on the 5th invisible tab, the 1 tab (.: MEMORY:.) also disapear...

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!

this is just because of a little extra touch that Gcue added in...

i'm not going to go too deep into this, but in a nutshell, you can remove it by going to where he said to edit
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...
...
...


the same code is basicly repeated for each menu item... if you look closely, he is changing the alpha (transparency) level of the menu items as they move farther away from the selection.
example:
CODE
  c.theOnlineItem.SetAlpha(0.2);


just delete the lines where it says something like
"c.the*Something*Item.SetAlpha(*some number*)"

there should be about 25 of them (5 for each "if (nCurMainMenuItem ==)" statement)
Xbox-Savage
QUOTE (cypher35 @ Apr 21 2004, 03:50 PM)
is it really that hard to guess??

you put
CODE

    else if (nCurMainMenuItem == 4)
    {
  gamelaunch = true;
  launchXbe = "default.xbe";
  launchPath = "\\Device\\Harddisk0\\Partition6\\XBMC";
  theLaunchGameLevel.GoTo();
    }

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:
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();
               }



or you could do what i did and make it look like this:
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");
               }


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)
CODE
Quick Launch Menu5=F:\\Apps\\XBMC\\default.xbe


you can then set that to whatever you want menu 5 to launch to.

wink.gif i dont see that

when i search for

CODE
function OnADown()


it gives me this:

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();
       }
   }
}
Xbox-Savage
I tried finding

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();

i cant find that on default-default. sad.gif
Gcue
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.
Xbox-Savage
biggrin.gif k, found the problem , looks like Gcue had a little too much alcohol.

is not!!!

CODE
function OnADown()


is

CODE
control DEF theMainMenuJoy Joystick


That ^^^ will give you this:

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();
               
Gcue
Umm there wasn't a mistake

If you look at what you just posted you will see it saying teh code i said.

I just figured since errybody was sooooo smart in here at editing our releases that you would know that i was speaking of the Main Menu joystick when i said function onADown()
cypher35
QUOTE (Xbox-Savage @ Apr 21 2004, 03:13 PM)
biggrin.gif k, found the problem , looks like Gcue had a little too much alcohol.

is not!!!

CODE
function OnADown()


is

CODE
control DEF theMainMenuJoy Joystick


That ^^^ will give you this:


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.

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.

lol, i couldn't agree more, but cut 'em a little slack... not everyone can decipher this stuff so easily.
Xbox-Savage
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.


huh.gif it is a mistake , when i searched for "function OnADown()"

it gave me this every time:

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();
      }
  }
}


but with

CODE
control DEF theMainMenuJoy Joystick


it takes you right where you want to edit.

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();


WarriorSan
@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...

@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.

Many THNX


cypher35
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...

good to know...

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.


if the menu is appearing in the wrong place, then you probably misplaced the code you were supposed to add before this:
CODE
 ]
}
]
  scale 1.080000 1.080000 1.080000
  translation 400 0 -180
  //translation -57.980000 -13.690000 -84.760002
}

/*jbone*/
/*
DEF select Transform
Xsmurf
Hi there,

I've got the same problem WarriorSan had.

I've installed Thclite on C, and it works, then i installed the 5 menu button.
Now when i reload Thclite, there is just a cellwant and no visible buttons !!
I can select them, and the 5the button works great but i can't see the buttons.

Even with the 25 lines with c.the*Something*Item.SetAlpha(*some number*) removed it doesn't work.

And re-signing doesn't help. sad.gif

can someone help me out


Savejonas
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

That would be great, I've spent the past hour trying to use the config file to make a fif menu. Thats right, da FIF!!
cypher35
re-signing is no longer an issue with lite...

you likely messed up somewhere during the coding part and my suggestion is to just start fresh and try again.
Tigroz
[QUOTE=Xbox-Savage,Apr 21 2004, 06:50 PM] blink.gif fucking curse , doesnt work here , i get empty tabs!! and the XBMC tab way hidden at the back of the orb.



ok on:[QUOTE]]
}
]
scale 1.080000 1.080000 1.080000
translation 400 0 -180
//translation -57.980000 -13.690000 -84.760002
}

/*jbone*/
/*
DEF select Transform




you mean add the code on top of that or replace the code that is on top of that? [/QUOTE]
sorry, but can u tell me what i've to do? replace, put on the top or at the end of that code?
X-eQteR
QUOTE

]
}
]
  scale 1.080000 1.080000 1.080000
  translation 400 0 -180
  //translation -57.980000 -13.690000 -84.760002
}

/*jbone*/
/*
DEF select Transform


I cant really find a solution to this....follow the tutorial step by step(even repeated with each color dash available 3 times) until i got all five tabs with names and was able to edit the name on the config.xbx, HOWEVER, the fifth tab STill is hidden way back in the background. I try putting the code on top of that bracket, nothing works...changed to end of the Translation line after the closing bracket and Nothing works. if this is the only part keeping me from using tHc Lite, please anyone that successfully has all their five tabs showing as they are suppose to, show the code how is suppose to be added. Thanks in advance and Thanks to all of you for helping adding more features to this tHc Lite and the tHc regular/or pre-final.

XeQteR
WarriorSan
Same over here if I do it like you told us then it shows up way at the back of the orb....I tried to paste the code in the mainmenu5/default.xap like 10 different ways and it still doesn't show up correctly...Or i'm a totaly retard blink.gif or something else is the problem...

cypher35
for that code segment, it should be pasted before
CODE
]
}
]
 scale 1.080000 1.080000 1.080000
 translation 400 0 -180
 //translation -57.980000 -13.690000 -84.760002
}

/*jbone*/
/*
DEF select Transform


no replacing anything...
Tigroz
QUOTE (cypher35 @ Apr 22 2004, 03:52 PM)
for that code segment, it should be pasted before
CODE
]
}
]
 scale 1.080000 1.080000 1.080000
 translation 400 0 -180
 //translation -57.980000 -13.690000 -84.760002
}

/*jbone*/
/*
DEF select Transform


no replacing anything...

i've done it, but... like others there... the 5 tab it's at the back of the orb
plz... help
smile.gif
great dash the lite
W THC
Aron Parsons
Same problem here. Pasting the code right before the sqaure bracket puts the tab far away and centered on the orb. I can still select it and launch XBMC just fine, but it doesn't appear as it should. Was this centered on the green dash, b/c I'm using the blue dash for it.
Tigroz
bump... wink.gif
WarriorSan
@Aron Parsons,

I've also got the blue version and I think that we don't do anything wrong. This is because the code that Gcue gave us was meant to be that only 4 tabs are visible and when you move down the 5th tab shows up. So your mainmenu won't be clogged up with a crap load of tabs.

So I (we) hope that maybe Gcue can say how to make the 5th tab solid and underneath the 4th tab?

THNX
Tigroz
@WarriorSan,
i've the blue thc lite 1.2 too , and cheked 10 times, it's like Gcue's tutorial no errors, but the 5th tab it's where is your.

Alekz
this is so hard for me to understand,... i don't really understand what the workin code lines are,.. could somebody write a tutorial of this threat so that my brain doesn't have o think too much pop.gif
cypher35
if i find time in the next few days, i'll take a look at i and see if i can find where everybody is going wrong with this tutorial...

cypher35
it still makes no sense to me why this code isn't working for you, but try pasting that large piece of code here (in mainmenu5.xip) instead:

CODE
       DEF theMenuItems Transform
{
  fade 0.43
  //fade 0.25

  children
  [
 
 
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///                           <-- insert menu5 here!! -->
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

   DEF Main_memory_ringpin_2 Transform
   {
    children
    [


maybe this will work for some of you who are having trouble...
MrSelfDestruct
I followed this tut step by step, 3 times, and every time I try to run thc with this hack, thclite.xbe just reboots my xbox, instead of actually launching the application. not quite sure what the problem is....

Any chance someone could send me the hacked default.xip, and the mainmenu5.xip, or maybe get them hosted on xbins?
Xbox-Savage
biggrin.gif weee i did it!!!

huh.gif I didnt do the 5th tab , but i removed the Music Tab and made the edit to make the path to launch editable from the config.

cool.gif will try to add Shortcut for Games on Music
soundentertainm
I can't seem to get it. Are you sopposed to see a actual 5th menu. mine is at the back and real small. If someone could send me the xip's I would be very greatfull.
MrSelfDestruct
QUOTE (soundentertainm @ Apr 26 2004, 03:57 AM)
If someone could send me the xip's I would be very greatfull.

agreed..... rolleyes.gif
cypher35
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
MrSelfDestruct
cypher ownz beerchug.gif

thank you sooooooooooooooooooo much
Xbox-Savage
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

is legal to post xaps but not the xips so youre ok.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.