Help - Search - Members - Calendar
Full Version: How To Make Dna Hide Quicker?
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
mancer_247
I want the DNA to disapear as soon as you select a main menu item. Right now it stays on the screen untill the item you selected appears. Like when you select the Hard Drive tab the camera flies past the main menu orb but you can still see the DNA untill the HD menu pops up. I think this shoud be possible but I can't figure it out so hopefully somebody out there has what I need. Thanks
midas
If you could post the code you added the dna with (I can't find that thread), I could make this a little more accurate. Go into default.xip/default.xap and find the function OnADown. It looks like this:

CODE
control DEF theMainMenuJoy Joystick
{
function OnADown()
       {
           PlaySoundA();
           if(nCurMainMenuItem == 0)
           {
               theMusicMenuIn.Play();
               GoToMusic();
           }
           else if(nCurMainMenuItem == 1)
           {
               theSettingsMenuIn.Play();
               GoToHardDrive();
           }
           else if(nCurMainMenuItem == 2)
           {
 theSettingsMenuIn.Play();
 theHardDrive.ExecuteFile("f:\\apps\\XBMC\\default.xbe" );
           }
           else if(nCurMainMenuItem == 3)
           {
               theSettingsMenuIn.Play();
               GoToSettings();
           }
       }


and add this above PlaySoundA();
CODE
bgmesh.visible=false


Now this code isn't exact, and will only work if the DNA has been DEFed under the name "bgmesh" but maybe this will help . . . .
mancer_247
Midas, heres the link to the DNA topic I used.

DNA, Squiggles, Chain, and Corkscrew Change in Config

It's a pain in the ass to find because you can't search for DNA and Squigles is spelled diffrently. Anyways all the items are DEF exactly as the DNA topic described so your code didn't do anything for me. I tried using the hide function in the spot you told me and the DNA would fade out, but it wouldn't come back when I returned to the Main Menu.

I can't figure out where I need to add this or something similar to make the DNA reappear when you return to the Main Menu.
CODE
     if( sDNAType == "dna" ) { ShowDNA(); }
else if( sDNAType == "squigles" ) { ShowSquigles(); }
else if( sDNAType == "chains" ) { ShowChains(); }
else if( sDNAType == "corkscrews" ) { ShowCorkscrews(); }
else if( sDNAType == "none" ) { HideSquigles(); HideChains(); HideDNA(); HideCorkscrews(); }
else { return; }


So if somebody knows a better way, or the location I need to add this show function to make the DNA reappear please reply. Thanks

midas
Calling this function in there somewhere i know would help. If i knew the xip structure a little better i could tell you where (sorry for the lack of knowledge).

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


It would have to go in whatever function brings to main menu back on screen, i think. If you can find it just add
CODE
SDOnBootCheck();
in there somewhere.
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-2013 Invision Power Services, Inc.