Help - Search - Members - Calendar
Full Version: When You Switch Orbs...
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
Little-G
when you edit your skin you get the option of restarting the dash now

how would you encorporate that code into the orb patch?
t1x2irc2
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);
}


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.