xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Random Background
Tru@ce
post Mar 10 2005, 02:34 AM
Post #1


X-S Member
*

Group: Members
Posts: 87
Joined: 26-May 04
Member No.: 122140
Xbox Version: v1.0



Hi smile.gif , credits to Outworld1 for this small code;

In default.xip/default.xap;

look for;

CODE
DEF myBackgroundList Group


and make it look like this;

CODE
DEF myBackgroundList Group
{

children
[
    DEF background0 Background{ skyColor 0 0 0 backdrop ImageTexture { url "background.xbx" }}
    DEF background1 Background{ skyColor 0 0 0 backdrop ImageTexture { url "background1.xbx" }}
    DEF background2 Background{ skyColor 0 0 0 backdrop ImageTexture { url "background2.xbx" }}
    DEF background3 Background{ skyColor 0 0 0 backdrop ImageTexture { url "background3.xbx" }}
    DEF background4 Background{ skyColor 0 0 0 backdrop ImageTexture { url "background4.xbx" }}
]
}

function loadBackground() {
var n = Math.round(Math.random() * (myBackgroundList.children.length() - 1));
myBackgroundList.children[n].isBound = true;  
}


then search for;

CODE
var currentTrack;


and paste this below;

CODE
var BeginUpdate;


then go to;

CODE
function UpdateMainMenu()
{
   if( m_nbuttons == 4 ) { Update4ButtonMainMenu(); }
   else  { Update3ButtonMainMenu(); }
}


and replace the function with this;

CODE
function setBeginUpdate()
{  
BeginUpdate = 1;
}

function UpdateMainMenu()
{      
 if (BeginUpdate == 1 )
 {
     loadBackground();
     BeginUpdate = 0;                
 }
 {
   if( m_nbuttons == 4 ) { Update4ButtonMainMenu(); }
  else  { Update3ButtonMainMenu(); }
 }
}


search for;

CODE
function OnYDown()


(or another)

and put this code in it;

CODE
      function OnYDown()
{
  setBeginUpdate();
  UpdateMainMenu();
}


Ciao wink.gif



User is offlineProfile CardPM
Go to the top of the page
+Quote Post
BlackWraith
post Mar 17 2005, 07:07 AM
Post #2


X-S Member
*

Group: Members
Posts: 133
Joined: 9-February 04
From: United States
Member No.: 98906
Xbox Version: v1.0
360 version: v1 (xenon)



Nice post Tru@ce. Thanks a lot

MerDeNoms
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Odb718
post Jun 7 2005, 11:06 PM
Post #3


X-S Freak
*****

Group: Last Chance
Posts: 1589
Joined: 19-August 03
Member No.: 57222
Xbox Version: v1.0
360 version: v1 (xenon)



You should post how to make it so it will work with 03 and not just your skins' xips.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacobesterque
post Jun 11 2005, 09:50 PM
Post #4


X-S Senior Member
**

Group: Members
Posts: 297
Joined: 27-September 03
From: Maryland
Member No.: 64805
Xbox Version: v1.6
360 version: unknown



has anyone revified that the coding works properly? i tried myself, and the only results i get are the colors always showing the first background image that i have.

and another reason i ask is because, the part that says:

QUOTE
In default.xip/default.xap;

look for;

CODE
DEF myBackgroundList Group

*



i could not find it. i was working off a fresh copy of user interface x. i looked and looked, and then realizaed by reading through old post for thc, that that specific code that you request us to look for is a code replaced from the original

CODE

DEF theBackground Background
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jacobesterque
post Jun 16 2005, 11:34 PM
Post #5


X-S Senior Member
**

Group: Members
Posts: 297
Joined: 27-September 03
From: Maryland
Member No.: 64805
Xbox Version: v1.6
360 version: unknown



bump ... dork
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Odb718
post Jun 17 2005, 07:13 AM
Post #6


X-S Freak
*****

Group: Last Chance
Posts: 1589
Joined: 19-August 03
Member No.: 57222
Xbox Version: v1.0
360 version: v1 (xenon)



me and MerDeNoms and you have tried it out so it's 0 for 3....
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 26th May 2013 - 12:41 AM