Jump to content


Photo

When You Switch Orbs...


  • Please log in to reply
1 reply to this topic

#1 Little-G

Little-G

    X-S Senior Member

  • Members
  • PipPip
  • 176 posts
  • Xbox Version:v1.4
  • 360 version:v3.0 (falcon)

Posted 21 November 2005 - 11:25 PM

when you edit your skin you get the option of restarting the dash now

how would you encorporate that code into the orb patch?

#2 t1x2irc2

t1x2irc2

    X-S Member

  • Members
  • Pip
  • 68 posts

Posted 22 November 2005 - 05:24 AM

actually that is how it was before but after each orb change

you will see in default.xip/orbs.xap

CODE


function DoAction()
{
  var c = theOrbsMenu.children[0].children[0];
  var info = new Settings;
  info.file = "A:\\system\\uix.ini";
  info.section = "Dashboard Settings";
  if (nCurPlayerMenuItem == 5) { ShowOrbInfo(); }
  else if (nCurPlayerMenuItem == 0)
{
TellUser("Main Orb has been changed to " + OrbMenuList[orbSelect],"");
var IniFile = new Settings;
IniFile.SetIniSection( "Dashboard Settings" );
IniFile.SetIniValue( "Current Orb", OrbMenuList[orbSelect]);
}

ect...



Old Code

CODE

function DoAction()
{
   var c = theOrbsMenu.children[0].children[0];
   var info = new Settings;
   info.file = "A:\\system\\uix.ini";
   info.section = "Dashboard Settings";
   if (nCurPlayerMenuItem == 5) { ShowOrbInfo(); }
   else if (nCurPlayerMenuItem == 0)
   {

       var IniFile = new Settings;
       IniFile.SetIniSection( "Dashboard Settings" );
       IniFile.SetIniValue( "Current Orb", OrbMenuList[orbSelect]);
       AskQuestion("Orb change will not take full effect until you restart the dash. Would you like to restart now?", "ReStartDash();", "", 0);
   }

ect...




you could add something like this when you exit the menu

CODE

function OnBDown()
       {
TellUser("Orbs have Changed!  You must reboot for the changes to take effect.", "ReStartDash();", "", 0);
}







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users