Jump to content


Photo

Dna, Squiggles, Chain, And Corkscrew


  • Please log in to reply
21 replies to this topic

#1 CompFreak07

CompFreak07

    X-S Senior Member

  • Members
  • PipPip
  • 216 posts
  • Location:Dayton, OH
  • Xbox Version:v1.6
  • 360 version:v1 (xenon)

Posted 22 January 2005 - 07:29 AM

Here is the code to change between DNA, SQUIGGLES, CHAIN, and CORKSCREW or none in the background of the main menu. Credits go to the update pack from #Xbox-noobs.

Open up Default.xip/Config.xap
Search for :
CODE

configList[i] = "Music Initial Volume:";
configValues[i] = "c-Music On Boot-volume";
configSelect[i] = "ConfigKeyB()";
i = i + 1;


Right below this add :
CODE

configList[i] = "Enable DNA on Startup:";
configValues[i] = "c-DNA On Boot-Enabled";
configSelect[i] = "ToggleDSN()";
i = i + 1;



Now at the end of Default.xip/Config.xap add :
CODE

function ToggleDSN()
{
   var c = theConfigPanel.children[0].children[0];
   var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
   if(b.toLowerCase() == "dna") { RefreshMenu("squigles"); }
   else if(b.toLowerCase() == "squigles") { RefreshMenu("chains"); }
   else if(b.toLowerCase() == "chains") { RefreshMenu("corkscrews"); }
   else if(b.toLowerCase() == "corkscrews") { RefreshMenu("none"); }
  else if(b.toLowerCase() == "none") { RefreshMenu("dna"); }
}


Now close and save Default.xip/Config.xap.

Now open Default.xip/Default.xap
Search for :
CODE

function QuickLaunchA()


Right above this add :
CODE

function SDOnBootCheck()
{
var IniFile = new Settings;
IniFile.SetIniSection( "DNA On Boot" );
var a = IniFile.GetIniValue( "Enabled" );
IniFile.CloseIniFile();

    if( a == "dna" ) { ShowDNA(); HideChains(); HideSquigles(); HideCorkscrews(); }
else if( a == "squigles" ) { ShowSquigles(); HideChains(); HideDNA(); HideCorkscrews(); }
else if( a == "chains" ) { ShowChains(); HideDNA(); HideSquigles(); HideCorkscrews(); }
else if( a == "corkscrews" ) { ShowCorkscrews(); HideDNA(); HideSquigles(); HideChains(); }
else if( a == "none" ) { HideSquigles(); HideChains(); HideDNA(); HideCorkscrews(); }
else { return; }
}


Now find :
CODE

var bBackToDVDPlayer;


Right below it add :
CODE

var bDNAVisable;
var bSquiglesVisable;
var bChainsVisable;
var bCorkscrewsVisable;


Now find :
CODE

b_InWireFrame = false;


Right above it add :
CODE

bDNAVisable = true;
bSquiglesVisable = true;
bChainsVisable  = true;
bCorkscrewsVisable  = true;


Now find :
CODE

DEF theXboxLogo4x3Background Background


Right above it add :
CODE

function HideDNA()
{
bDNAVisable = false;
var x = theMainMenu.children[0].children[0];
x.theDNA1.SetAlpha(0);
x.theDNA3.SetAlpha(0);
x.theDNA5.SetAlpha(0);
}

function ShowDNA()
{
bDNAVisable = true;
var x = theMainMenu.children[0].children[0];
x.theDNA1.SetRotation(0, 0, .5, 0.1745330);
x.theDNA3.SetRotation(0, 0, 1, -.523599);
x.theDNA5.SetRotation(0, 0, .3, -0.1745330);
x.theDNA1.fade = 1.0;
x.theDNA3.fade = 1.0;
x.theDNA5.fade = 1.0;
x.theDNA1.SetTranslation(-5400, 0, -5100);
x.theDNA3.SetTranslation(0, 0, -5000);
x.theDNA5.SetTranslation(4000, 0, -5100);
x.theDNA1.fade = 0.75;
x.theDNA3.fade = 0.75;
x.theDNA5.fade = 0.75;
x.theDNA1.SetAlpha(1);
x.theDNA3.SetAlpha(1);
x.theDNA5.SetAlpha(1);
thePlayerPanelOut.Play();
}

function HideSquigles()
{
bSquiglesVisable = false;
var x = theMainMenu.children[0].children[0];
x.theSquigles1.SetAlpha(0);
x.theSquigles3.SetAlpha(0);
x.theSquigles5.SetAlpha(0);
}

function ShowSquigles()
{
bSquiglesVisable = true;
var x = theMainMenu.children[0].children[0];
x.theSquigles1.SetRotation(0, 0, .5, 0.6345330);
x.theSquigles3.SetRotation(0, 0, 1, -.523599);
x.theSquigles5.SetRotation(0, 0, .5, -0.1245330);
x.theSquigles1.fade = 1.0;
x.theSquigles3.fade = 1.0;
x.theSquigles5.fade = 1.0;
x.theSquigles1.SetTranslation(-5400, 0, -5100);
x.theSquigles3.SetTranslation(0, 0, -5000);
x.theSquigles5.SetTranslation(4000, 0, -5100);

x.theSquigles1.fade = 0.75;
x.theSquigles3.fade = 0.75;
x.theSquigles5.fade = 0.75;

x.theSquigles1.SetAlpha(1);
x.theSquigles3.SetAlpha(1);
x.theSquigles5.SetAlpha(1);
}

function HideChains()
{
bChainsVisable = false;
var x = theMainMenu.children[0].children[0];
x.theChains1.SetAlpha(0);
x.theChains3.SetAlpha(0);
x.theChains5.SetAlpha(0);
}

function ShowChains()
{
bChainsVisable = true;
var x = theMainMenu.children[0].children[0];
x.theChains1.SetRotation(0, 0, .5, 0.1745330);
x.theChains3.SetRotation(0, 0, 1, -.523599);
x.theChains5.SetRotation(0, 0, .3, -0.1745330);
x.theChains1.fade = 1.0;
x.theChains3.fade = 1.0;
x.theChains5.fade = 1.0;
x.theChains1.SetTranslation(-5400, 0, -5100);
x.theChains3.SetTranslation(0, 0, -5000);
x.theChains5.SetTranslation(4000, 0, -5100);

x.theChains1.fade = 0.75;
x.theChains3.fade = 0.75;
x.theChains5.fade = 0.75;

x.theChains1.SetAlpha(1);
x.theChains3.SetAlpha(1);
x.theChains5.SetAlpha(1);
thePlayerPanelOut.Play();
}

function HideCorkscrews()
{
bCorkscrewsVisable = false;
var x = theMainMenu.children[0].children[0];
x.theCorkscrews1.SetAlpha(0);
x.theCorkscrews3.SetAlpha(0);
x.theCorkscrews5.SetAlpha(0);
}

function ShowCorkscrews()
{
bCorkscrewsVisable = true;
var x = theMainMenu.children[0].children[0];
x.theCorkscrews1.SetRotation(0, 0, .5, 0.1745330);
x.theCorkscrews3.SetRotation(0, 0, 0, 0.1745330);
x.theCorkscrews5.SetRotation(0, 0, .3, -0.1745330);
x.theCorkscrews1.fade = 1.0;
x.theCorkscrews3.fade = 1.0;
x.theCorkscrews5.fade = 1.0;
x.theCorkscrews1.SetTranslation(-5700, 0, -5100);
x.theCorkscrews3.SetTranslation(0, 0, -5000);
x.theCorkscrews5.SetTranslation(4300, 0, -5100);

x.theCorkscrews1.fade = 0.75;
x.theCorkscrews3.fade = 0.75;
x.theCorkscrews5.fade = 0.75;

x.theCorkscrews1.SetAlpha(1);
x.theCorkscrews3.SetAlpha(1);
x.theCorkscrews5.SetAlpha(1);
thePlayerPanelOut.Play();
}


Now find :
CODE

EnableAudio();


Right above it add :
CODE

SDOnBootCheck();


Now close and save Default.xip/Default.xap.

Now open Main_Menu.xip/Default.xap
Now at the very top paste this :
CODE

DEF theCorkscrews1 Transform
{

children
[
Spinner

             {
               rpm -3
               axis 0 1 0
               children
               [

DEF Corkscrews1 Transform
             {
                 children
                 [
                     Shape
                     {
                         appearance Appearance
                         {
                             material MaxMaterial
                             {
                                 name "MenuCell"
                             }
                         }
                         geometry DEF Corkscrews1_Mesh Mesh { url "Backing_Corkscrews.xm" }
                     }
                 ]

translation 0 0 0
             }

DEF CorkscrewsString1 Transform
             {
                 children
                 [
                     Shape
                     {
                         appearance Appearance
                         {
                             material MaxMaterial
                             {
                                 name "FlatSrfc/PodParts"
                             }
                         }
                         geometry DEF CorkscrewsString1_Mesh Mesh { url "Corkscrews.xm" }
                     }
                 ]
translation 0 0 0

             }
]
}
]
scale 24 24 24
rotation 0 0 .5 0.1745330
//translation -4400 0 -5100
translation -5400 0 -5100
}



DEF theCorkscrews3 Transform
{
children
[

Spinner
             {
               rpm -3
               axis 0 1 0
               children
               [

DEF Corkscrews3 Transform
             {
                 children
                 [
                     Shape
                     {
                         appearance Appearance
                         {
                             material MaxMaterial
                             {
                                 name "MenuCell"
                             }
                         }
                         geometry DEF Corkscrews3_Mesh Mesh { url "Backing_Corkscrews.xm" }
                     }
                 ]

translation 0 0 0
             }

DEF CorkscrewsString3 Transform
             {
                 children
                 [


                     Shape
                     {
                         appearance Appearance
                         {
                             material MaxMaterial
                             {
                                 name "FlatSrfc/PodParts"
                             }
                         }
                         geometry DEF CorkscrewsString3_Mesh Mesh { url "Corkscrews.xm" }
                     }


                 ]
translation 0 0 0

             }
]
                     }


]
scale 24 24 24
rotation 0 0 1 -.523599
translation 0 0 -5000
}



DEF theCorkscrews5 Transform
{
children
[
Spinner
             {
               rpm -3
               axis 0 1 0
               children
               [

DEF Corkscrews5 Transform
             {
                 children
                 [
                     Shape
                     {
                         appearance Appearance
                         {
                             material MaxMaterial
                             {
                                 name "MenuCell"
                             }
                         }
                         geometry DEF Corkscrews5_Mesh Mesh { url "Backing_Corkscrews.xm" }
                     }
                 ]

translation 0 0 0
             }

DEF CorkscrewsString5 Transform
             {
                 children
                 [
                     Shape
                     {
                         appearance Appearance
                         {
                             material MaxMaterial
                             {
                                 name "FlatSrfc/PodParts"
                             }
                         }
                         geometry DEF CorkscrewsString5_Mesh Mesh { url "Corkscrews.xm" }
                     }
                 ]
translation 0 0 0

             }
]
}

]
scale 24 24 24
rotation 0 0 .3 -0.1745330
//translation 3000 0 -5100
translation 4000 0 -5100
}
DEF theChains1 Transform
{

children
[
Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF Chains1 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA1_Mesh Mesh { url "chains.xm" }
                    }
                ]

translation 0 0 0
            }

DEF ChainsString1 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString1_Mesh Mesh { url "chain.xm" }
                    }
                ]
translation 0 0 0

            }
]
}
]
scale 24 24 24
rotation 0 0 .5 0.1745330
//translation -4400 0 -5100
translation -5400 0 -5100
}



DEF theChains3 Transform
{
children
[

Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF Chains3 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA3_Mesh Mesh { url "chains.xm" }
                    }
                ]

translation 0 0 0
            }

DEF ChainsString3 Transform
            {
                children
                [


                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString3_Mesh Mesh { url "chain.xm" }
                    }


                ]
translation 0 0 0

            }
]
                    }


]
scale 24 24 24
rotation 0 0 1 -.523599
translation 0 0 -5000
}



DEF theChains5 Transform
{
children
[
Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF Chains5 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA5_Mesh Mesh { url "chains.xm" }
                    }
                ]

translation 0 0 0
            }

DEF ChainsString5 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString5_Mesh Mesh { url "chain.xm" }
                    }
                ]
translation 0 0 0

            }
]
}

]
scale 24 24 24
rotation 0 0 .3 -0.1745330
//translation 3000 0 -5100
translation 4000 0 -5100
}
DEF theSquigles1 Transform
{

children
[
Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF Squigles1 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA1_Mesh Mesh { url "Backing_squigles.xm" }
                    }
                ]

translation 0 0 0
            }

DEF SquiglesString1 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString1_Mesh Mesh { url "Backing_squigles_SIDES.xm" }
                    }
                ]
translation 0 0 0

            }
]
}
]
scale 24 24 24
rotation 0 0 .5 0.1745330
//translation -4400 0 -5100
translation -5400 0 -5100
}



DEF theSquigles3 Transform
{
children
[

Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF Squigles3 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA3_Mesh Mesh { url "Backing_squigles.xm" }
                    }
                ]

translation 0 0 0
            }

DEF SquiglesString3 Transform
            {
                children
                [


                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString3_Mesh Mesh { url "Backing_squigles_SIDES.xm" }
                    }


                ]
translation 0 0 0

            }
]
                    }


]
scale 24 24 24
rotation 0 0 1 -.523599
translation 0 0 -5000
}



DEF theSquigles5 Transform
{
children
[
Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF Squigles5 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA5_Mesh Mesh { url "Backing_squigles.xm" }
                    }
                ]

translation 0 0 0
            }

DEF SquiglesString5 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString5_Mesh Mesh { url "Backing_squigles_SIDES.xm" }
                    }
                ]
translation 0 0 0

            }
]
}

]
scale 24 24 24
rotation 0 0 .3 -0.1745330
//translation 3000 0 -5100
translation 4000 0 -5100
}
DEF theDNA1 Transform
{

children
[
Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF DNA1 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA1_Mesh Mesh { url "Backing_dna.xm" }
                    }
                ]

translation 0 0 0
            }

DEF DNAString1 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString1_Mesh Mesh { url "Backing_dna_SIDES.xm" }
                    }
                ]
translation 0 0 0

            }
]
}
]
scale 24 24 24
rotation 0 0 .5 0.1745330
//translation -4400 0 -5100
translation -5400 0 -5100
}



DEF theDNA3 Transform
{
children
[

Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF DNA3 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA3_Mesh Mesh { url "Backing_dna.xm" }
                    }
                ]

translation 0 0 0
            }

DEF DNAString3 Transform
            {
                children
                [


                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString3_Mesh Mesh { url "Backing_dna_SIDES.xm" }
                    }


                ]
translation 0 0 0

            }
]
                    }


]
scale 24 24 24
rotation 0 0 1 -.523599
translation 0 0 -5000
}



DEF theDNA5 Transform
{
children
[
Spinner
            {
              rpm 2
              axis 0 1 0
              children
              [

DEF DNA5 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "MenuCell"
                            }
                        }
                        geometry DEF DNA5_Mesh Mesh { url "Backing_dna.xm" }
                    }
                ]

translation 0 0 0
            }

DEF DNAString5 Transform
            {
                children
                [
                    Shape
                    {
                        appearance Appearance
                        {
                            material MaxMaterial
                            {
                                name "FlatSrfc/PodParts"
                            }
                        }
                        geometry DEF DNAString5_Mesh Mesh { url "Backing_dna_SIDES.xm" }
                    }
                ]
translation 0 0 0

            }
]
}

]
scale 24 24 24
rotation 0 0 .3 -0.1745330
//translation 3000 0 -5100
translation 4000 0 -5100
}


Now close and save Main_Menu.xip/Default.xap

Now add Backing_dna.xm to Main_Menu.xip
Now add Backing_dna_sides.xm to Main_Menu.xip
Now add Backing_squigles.xm to Main_Menu.xip
Now add Backing_squigles_sides.xm to Main_Menu.xip
Now add Chain.xm to Main_Menu.xip
Now add Corkscrews.xm to Main_Menu.xip
(You can find these in the usaul places)

Restart your Xbox and enjoy
Please post to tell me if this worked for ya.

Edited by CompFreak07, 22 January 2005 - 07:30 AM.


#2 CompFreak07

CompFreak07

    X-S Senior Member

  • Members
  • PipPip
  • 216 posts
  • Location:Dayton, OH
  • Xbox Version:v1.6
  • 360 version:v1 (xenon)

Posted 22 January 2005 - 08:48 AM

Sorry, it wouldnt let me edit post but I forgot to add what goes in the ini file
Add this on the bottom of your uix.ini :
CODE

[DNA On Boot]
Enabled=dna


#3 DaBeast77

DaBeast77

    X-S X-perience

  • Members
  • PipPip
  • 313 posts
  • Location:Richmond, Virginia
  • Xbox Version:v1.0

Posted 22 January 2005 - 09:03 AM

Exactly where dos this go SDOnBootCheck();? There are like 5 EnableAudio();'s.

#4 CompFreak07

CompFreak07

    X-S Senior Member

  • Members
  • PipPip
  • 216 posts
  • Location:Dayton, OH
  • Xbox Version:v1.6
  • 360 version:v1 (xenon)

Posted 22 January 2005 - 09:11 AM

Sorry about that where I said search for :
CODE

EnableAudio();


search for :
CODE

MainMenuAttract();


instead and do the same from there on out.

#5 DaBeast77

DaBeast77

    X-S X-perience

  • Members
  • PipPip
  • 313 posts
  • Location:Richmond, Virginia
  • Xbox Version:v1.0

Posted 22 January 2005 - 09:20 AM

thanks a lot, it works great. but is there any way to make the dna smaller?

#6 CompFreak07

CompFreak07

    X-S Senior Member

  • Members
  • PipPip
  • 216 posts
  • Location:Dayton, OH
  • Xbox Version:v1.6
  • 360 version:v1 (xenon)

Posted 22 January 2005 - 09:26 AM

If you would like to make the DNA, Chains, Squiggles, or Corkscrews smaller/bigger open up Main_Menu.xip/Default.xap.
Search for :
CODE

scale 24 24 24


Where it says 24 24 24 that is the size. Change it to whatever you want on all of them (example 12 12 12 - for half the size of what it is now)

#7 DaBeast77

DaBeast77

    X-S X-perience

  • Members
  • PipPip
  • 313 posts
  • Location:Richmond, Virginia
  • Xbox Version:v1.0

Posted 22 January 2005 - 09:39 AM

Now its perfect (i used 16 16 16 for dna, 20 20 20 for squiglies, 12 12 12 for chains, and 14 14 14 for corkscrews)

#8 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 04 February 2005 - 03:30 PM

tried this and all of them show on main screen at once!! lol , any idea what i did wrong 5 times?

#9 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 04 February 2005 - 03:49 PM

Ok, got it working, but now.. how would i asign a key to it.. like onXdown ...
I've tried ...

CODE

function OnXDown()
{
if(bDNAVisable == false)
{
 ShowDNA();
}
else if(bDNAVisable == true)
{
 HideDNA();
}
else if(bCorkscrewsVisable == fales)
{
 ShowCorkscrews();
}
else if(bCorkscrewsVisable == true)
{
 HideCorkscrews();
}
else if(bChainsVisable == fales)
{
 ShowChains();
}
else if(bChainsVisable == true)
{
 HideChains();
}
else if(bSquiglesVisable == fales)
{
 ShowSquigles();
}
else if(bSquiglesVisable == true)
{
 HideSquigles();
}
}


but didnt work... any help?

#10 Dazza

Dazza

    X-S Young Member

  • Members
  • Pip
  • 30 posts
  • Location:Rugby, England
  • Xbox Version:v1.2

Posted 04 February 2005 - 03:52 PM

Have you got

CODE

[DNA On Boot]
Enabled=dna


in your uix.ini file?

#11 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 04 February 2005 - 03:56 PM

yes:)

#12 Dazza

Dazza

    X-S Young Member

  • Members
  • Pip
  • 30 posts
  • Location:Rugby, England
  • Xbox Version:v1.2

Posted 04 February 2005 - 04:05 PM

I recoded all of this yesterday to make it easier to work with but I think you want...

CODE

function OnXDown()
{
if(bDNAVisable == false)
{
ShowDNA();
}
else if(bDNAVisable == true)
{
HideDNA();
}
if(bCorkscrewsVisable == false)
{
ShowCorkscrews();
}
else if(bCorkscrewsVisable == true)
{
HideCorkscrews();
}
if(bChainsVisable == false)
{
ShowChains();
}
else if(bChainsVisable == true)
{
HideChains();
}
if(bSquiglesVisable == false)
{
ShowSquigles();
}
else if(bSquiglesVisable == true)
{
HideSquigles();
}
}



#13 Dazza

Dazza

    X-S Young Member

  • Members
  • Pip
  • 30 posts
  • Location:Rugby, England
  • Xbox Version:v1.2

Posted 04 February 2005 - 04:09 PM

Oops, that won't work.

Give me 20 mins and I'll dig out my changes.

#14 Dazza

Dazza

    X-S Young Member

  • Members
  • Pip
  • 30 posts
  • Location:Rugby, England
  • Xbox Version:v1.2

Posted 04 February 2005 - 04:18 PM

Change the SDOnBootCheck so it looks like this one.

CODE

function SDOnBootCheck()
{
var IniFile = new Settings;
IniFile.SetIniSection( "DNA On Boot" );
var a = IniFile.GetIniValue( "Enabled" );
IniFile.CloseIniFile();

// Hide everything to start with

HideDNA();
HideChains();
HideSquigles();
HideCorkscrews();

sDNAType = a;
bDNAVisible = true;

if( a == "dna" ) { ShowDNA(); }
else if( a == "squigles" ) { ShowSquigles(); }
else if( a == "chains" ) { ShowChains(); }
else if( a == "corkscrews" ) { ShowCorkscrews(); }
else { return; }
}



Find
CODE

var currentTrack;


and under that add
CODE

var sDNAType;
var bDNAVisible;


Your OnXDown function should look like this

CODE

function OnXDown()
{
 if (bDNAVisible == true )
 {
  if( sDNAType == "dna" ) { HideDNA(); }
  else if( sDNAType == "squigles" ) { HideSquigles(); }
  else if( sDNAType == "chains" ) { HideChains(); }
  else if( sDNAType == "corkscrews" ) { HideCorkscrews(); }
  bDNAVisible = false;
 }
 else if (bDNAVisible == false )
 {
  if( sDNAType == "dna" ) { ShowDNA(); }
  else if( sDNAType == "squigles" ) { ShowSquigles(); }
  else if( sDNAType == "chains" ) { ShowChains(); }
  else if( sDNAType == "corkscrews" ) { ShowCorkscrews(); }
  bDNAVisible = true;
 }
}


I think thats all the changes you should need.

#15 rhythmeister

rhythmeister

    X-S Enthusiast

  • Members
  • 16 posts

Posted 09 February 2005 - 01:32 AM

Ummm, why do I not have these files?! I have .xip files but NO .xap files to be found in my UIX folder, I want fancy skins!
unsure.gif
Whoops, please delete this message mods, went back 2 add email notification, sorry

Edited by rhythmeister, 09 February 2005 - 01:34 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users