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
2 Pages V  1 2 >  
Reply to this topicStart new topic
> New Info Panel
shank-
post Jul 5 2005, 11:46 AM
Post #1


X-S Enthusiast


Group: Members
Posts: 16
Joined: 5-June 04
Member No.: 123903



this is an info panel i came up with, i felt the others crouded the screen too much having info and clock seperate.
full credit goes out to the original creators of the info panels, i just copy and pasted most of there code.

music
disc type
ip address
disc space
cpu temp

paste at the very bottom of default.xip/default.xap

CODE

function DriveSpace( sDrive )
{
var nFreeSpace = theHardDrive.GetFreeSpace(sDrive + "\\");
     var nTotalSpace = theHardDrive.GetTotalSpace(sDrive + "\\");
if (nTotalSpace == 0) { return ""; }
return nFreeSpace + "MB";
}

function ChangeDisplay()
{

var coverpath;
var exists;
var albumtext = "";
var songtext = "";
var drive = "";
var c = theMainMenu.children[0].children[0];

var nMaxDisplay = 6;
if (nDisplayNum > nMaxDisplay) { nDisplayNum = 1; }
if (nDisplayNum < 1) { nDisplayNum = nMaxDisplay; }
var nIntTemp = theConfig.GetInternalTemp();
var nCPUTemp = theConfig.GetCPUTemp();
var sScale = "C";
var e = "";


 if( e == "fahrenheit" )
 {
     sScale = "F";
            nIntTemp = Math.round(nIntTemp * 9/5 + 32);
            nCPUTemp = Math.round(nCPUTemp * 9/5 + 32);
 }
 else if( e == "kelvin" )
 {
     sScale = "K";
            nIntTemp = nIntTemp + 273;
            nCPUTemp = nCPUTemp + 273;
 }

if (nDisplayNum == 1)
{
   albumtext = theMusicCollection.GetSoundtrackName(currentAlbum);
   songtext = theMusicCollection.GetSoundtrackSongName(currentAlbum, currentTrack);
   coverpath = "A:\\album covers\\" + albumtext + ".jpg";
   exists = theHardDrive.FileExists( coverpath );

   if( exists == true )
   {
   c.theScreenAlbumArt.url = coverpath;
   }
   else
   {
   c.theScreenAlbumArt.url = "A:\\album covers\\dvdempty.xbx";
   }
   }

else if (nDisplayNum == 2)
{
   albumtext = "Disc Type:";
   songtext = theDiscDrive.discType;

   if( theDiscDrive.discType == "Video" )
   {
   c.theScreenAlbumArt.url = "A:\\album covers\\dvdvideo.xbx";
   }

   else if(theDiscDrive.discType == "Title")
   {
   c.theScreenAlbumArt.url = "A:\\album covers\\dvdtitle.xbx";
   }

   else if(theDiscDrive.discType == "none")
   {
   c.theScreenAlbumArt.url = "A:\\album covers\\dvdempty.xbx";
   }

   else if(theDiscDrive.discType == "Audio")
   {
   c.theScreenAlbumArt.url = "A:\\album covers\\dvdaudio.xbx";
   }

   else if(theDiscDrive.discType == "unknown")
   {
   c.theScreenAlbumArt.url = "A:\\album covers\\dvdunknown.xbx";
   }
}

else if (nDisplayNum == 3)
{
   albumtext = "IP Address:";
   songtext = theXboxNetwork.GetXboxIP();
   c.theScreenAlbumArt.url = "A:\\album covers\\ipaddy.xbx";
}

else if (nDisplayNum == 4)
{
   drive = "F:";
   albumtext = "Free Space On F:";
   songtext = DriveSpace(drive);
   c.theScreenAlbumArt.url = "A:\\album covers\\harddisc.xbx";
}

//else if (nDisplayNum == 5)
//{
//    drive = "G:";
//    albumtext = "Free Space On G:";
//    songtext = DriveSpace(drive);
//    c.theScreenAlbumArt.url = "A:\\album covers\\dvdempty.xbx";
//}

else if (nDisplayNum == 5)
{
   albumtext = "CPU Temp:";
   songtext = nIntTemp + " " + sScale;
   c.theScreenAlbumArt.url = "A:\\album covers\\info.xbx";
}

else if (nDisplayNum == 6)
{
   albumtext = "MB Temp:";
   songtext = nCPUTemp + " " + sScale;
   c.theScreenAlbumArt.url = "A:\\album covers\\info.xbx";
}

c.theSoundtrackSongInfoText.text = songtext;
c.theSoundtrackAlbumInfoText.text = albumtext;

}



Then find:
CODE


function MusicPlayerPlay()
{
theMusicPlayer.url = "st:" + theMusicCollection.GetSoundtrackSongID( currentAlbum, currentTrack );
log("Playing " + theMusicPlayer.url);
DisableAmbientAudio();
theMusicPlayer.Play();
}



and add another line so it looks like this:

CODE


function MusicPlayerPlay()
{
theMusicPlayer.url = "st:" + theMusicCollection.GetSoundtrackSongID( currentAlbum, currentTrack );
log("Playing " + theMusicPlayer.url);
DisableAmbientAudio();
theMusicPlayer.Play();
if (nDisplayNum == 1) { ChangeDisplay(); }
}



next find

CODE


var currentAlbum;
var currentTrack;



and put this under:

CODE


var nDisplayNum;



scroll down a few lines to find:

CODE


currentAlbum = 0;
currentTrack = 0;



and add this right after:

CODE


nDisplayNum = 1;



now find:

CODE


 control DEF theMainMenuJoy Joystick
 {



and put this after that slash

CODE


function OnLeftThumbDown()
{
         PlaySoundB();
  nDisplayNum = nDisplayNum + 1;
  ChangeDisplay();
}

     function OnRightThumbDown()
{
         PlaySoundB();
  nDisplayNum = nDisplayNum - 1;
  ChangeDisplay();
}



another thing i like to use is this:

CODE


function OnYDown()
     {

      var c = theMainMenu.children[0].children[0];
      if ( c.theMainMenuClock.visible == true )
      {
       if (nDisplayNum == 1)
       {
        MusicPlayerRandom();
       }
       else if (nDisplayNum == 2)
       {
        AutoLaunch();
       }
      }
      else
      {}

     }            



that code will alow you to change track when in music panel and launch disc when in disc type by pressing the Y button

now open main_menu.xip/default.xap and paste this at the very bottom

CODE


DEF theMainMenuClock Transform
       {
       visible true
       fade 0.75
           children
           [
               DEF theMainMenuClock3 Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "Black80"
                               }
                               /*texture ImageTexture
                               {
                                   url "panel8.tga"
                               }*/
                           }
                           geometry DEF MU_panel_backing-FACES Mesh { url "MU_panel_backing-FACES.xm" }
                       }
                   ]
                   rotation -0.999200 -0.027600 0.027600 -1.572000
                   scale 0.492900 0.492900 0.492900
                   scaleOrientation -0.022670 0.396500 0.917700 -0.008776
                   translation -0.821800 -1.632000 0.457700
               }
               DEF MEM_L1_panel_meta Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "MenuCell"  //"GamePodb"
                               }
                           }
                           geometry DEF MEM_L1_panel_meta-FACES Mesh { url "MEM_L1_panel_meta-FACES.xm" }
                       }
                   ]
                   rotation -1.000000 0.000000 0.000000 -1.571000
                   scale 0.019720 0.019720 0.019720
                   translation -2.112000 -0.431600 0.021390
               }
               DEF theDateTime Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                  name "NavType"
                               }
                           }
                           geometry DEF theDateTimeText Text { font "Heading" justify "middle" translate false text "<clock>"}
                       }
                   ]
                   scale 0.563580 0.563580 0.563580
                   translation -1.101000 1.370000 0.059800
               }
               DEF theSoundtrackAlbumInfo Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "CellEgg/Partsz"
                               }
                           }

                           geometry DEF theSoundtrackAlbumInfoText Text { font "Body" justify "left" width -9 translate false text "albumtext"}
                       }
                   ]
                   //rotation -1.000000 0.000000 0.000000 -1.571000
                   scale 0.7000 0.7000 0.063580
                   translation -4.03000 0.629800 0.059800
               }
               DEF theSoundtrackSongInfo Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "NavType"
                               }
                           }
                           geometry DEF theSoundtrackSongInfoText Text { font "body" translate false width -7 scrollRate 0.85 scrollDelay 0.2 text "songtext" justify "left"}
                       }
                   ]
                   //rotation -1.000000 0.000000 0.000000 -1.571000
                   scale .9 0.7000 0.063580
                   translation -4.035800 -.47500 0.059800
               }
               DEF MEM_L1_panel_metasupport Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "JwlSrfc01/InfoPnls"
                               }
                           }
                           geometry DEF MEM_L1_panel_metasupport-FACES Mesh { url "MEM_L1_panel_metasupport-FACES.xm" }
                       }
                   ]
                   rotation 1.000000 0.000000 0.000000 -1.571000
                   scale 0.021480 0.021480 0.021480
                   translation 0.108300 -1.269000 -0.075180
               }
               DEF MEM_L1_text_totalmemory Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "NavType"
                               }
                           }
                           geometry Text { font "Body" text "" justify "end" }
                       }
                   ]
                   //rotation -1.000000 0.000000 0.000000 -1.571000
                   scale 0.663580 0.663580 0.063580
                   translation -0.155800 -0.107500 0.059800
               }
               DEF MEM_L1_text_473blocks Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "CellEgg/Partsz"
                               }
                           }
                           geometry DEF AvailableMemoryText Text { font "Body" translate false }
                       }
                   ]
                   //rotation -1.000000 0.000000 0.000000 -1.571000
                   scale 0.663580 0.663580 0.663580
                   translation 0.155800 -0.666500 0.059800
               }
               DEF MEM_L1_text_8000blocks Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                               material MaxMaterial
                               {
                                   name "CellEgg/Partsz"
                               }
                           }
                           geometry DEF TotalMemoryText Text { font "Body" translate false }
                       }
                   ]
                   //rotation -1.000000 0.000000 0.000000 -1.571000
                   scale 0.663580 0.663580 0.663580
                   translation 0.155800 -0.107500 0.059800
               }
               DEF DVDStatusIcon Transform
               {
                   children
                   [
                       Shape
                       {
                           appearance Appearance
                           {
                           material Material
                           {
                           }
                               texture DEF theScreenAlbumArt ImageTexture
                               {
                                   alpha true
                                   url "A:\album covers\dvdempty.xbx"
                               }
                           }
                            geometry Box
                                       {
                                       }
                       }
                   ]
                   scale 2.4 2.3 0
                   translation 3.655800 0.107500 0.059800
                   rotation 0 0 1 3.141592654
               }


           ]
           scale 18 18 18
           translation -105 -110 5
       }



you also need to copy these files from the memory.xip file and paste them into main_menu.xip

MEM_L1_panel_meta-FACES.xm
MEM_L1_panel_metasupport-FACES.xm
MU_panel_backing-FACES.xm

now you need to use files from comm build and paste them in the album covers directory. the files needed are:

dvdaudio.xbx
dvdempty.xbx
dvdtitle.xbx
dvdunknown.xbx
dvdvideo.xbx

others are custom files but you can just copy and rename dvdempty.xbx to:

harddisc.xbx
info.xbx
ipaddy.xbx

and thats SHOULD be it

good luck smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
shank-
post Jul 5 2005, 11:54 AM
Post #2


X-S Enthusiast


Group: Members
Posts: 16
Joined: 5-June 04
Member No.: 123903



its seems it wont let imageshack host
you will have to take away the dash's from imageshack to view files..

http://img80.-imageshack-.us/img80/3566/cputemp1rj.jpg
http://img295.-imageshack-.us/img295/7562/music3dx.jpg
http://img295.-imageshack-.us/img295/3117/disctype5wo.jpg
http://img295.-imageshack-.us/img295/4505/network8ip.jpg

anyways you get the idea..
cheers.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
coltxL2717
post Jul 5 2005, 11:32 PM
Post #3


X-S X-perience
**

Group: Members
Posts: 319
Joined: 28-December 03
From: Los Angeles, CA, USA
Member No.: 86050
Xbox Version: v1.3



That's some nice code there man. I especially like the fact that you included album art. That's good shit.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ih8ny4ever
post Nov 1 2005, 05:29 AM
Post #4


X-S Enthusiast


Group: Members
Posts: 1
Joined: 29-September 05
Member No.: 249036



im sorry but for some reason every time i press the right analog it restarts and if i press the leht it says no disk and if i press it again it resarts. can someone help. is it posiple that it could be that i dont have these. i dont know where to get them dvdaudio.xbx
dvdempty.xbx
dvdtitle.xbx
dvdunknown.xbx
dvdvideo.xbx

This post has been edited by ih8ny4ever: Nov 1 2005, 05:32 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
neovash
post Nov 1 2005, 09:35 PM
Post #5


X-S Enthusiast


Group: Members
Posts: 5
Joined: 9-March 05
Member No.: 204655



they are in the Commemorative Build
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
slick50zd
post Dec 11 2005, 11:11 PM
Post #6


X-S Member
*

Group: Members
Posts: 90
Joined: 1-January 05
Member No.: 182886
Xbox Version: v1.0



wow great job man i give you props
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
motox88
post Jan 9 2006, 06:21 AM
Post #7


X-S Enthusiast


Group: Members
Posts: 22
Joined: 20-November 04
Member No.: 168635



would it be possible to post up the screen shots again?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Little-G
post Jan 9 2006, 05:26 PM
Post #8


X-S Senior Member
**

Group: Members
Posts: 176
Joined: 5-August 05
Member No.: 238913
Xbox Version: v1.4
360 version: v3.0 (falcon)



screen shots work fine remove the '-' from before and after 'imageshack'
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Little-G
post Jan 11 2006, 07:21 PM
Post #9


X-S Senior Member
**

Group: Members
Posts: 176
Joined: 5-August 05
Member No.: 238913
Xbox Version: v1.4
360 version: v3.0 (falcon)



in an attempt to resolve the non displaying ip adress, cpu temp and free disk space i modified the code

i changed

CODE
function OnLeftThumbDown()
{
         PlaySoundB();
  nDisplayNum = nDisplayNum + 1;
  ChangeDisplay();


to

CODE
function OnLeftThumbDown()
{
         PlaySoundB();
  TogglenDisplayNum();
  ChangeDisplay();


and added
CODE
function TogglenDisplayNum
}
var c = theMainMenu.children[0].children[0];
if (b.toLowerCase() == "1") { RefreshMenu("2"); }
else if (b.toLowerCase() == "2") { RefreshMenu("3"); }
else if (b.toLowerCase() == "3") { RefreshMenu("4"); }
else if (b.toLowerCase() == "5") { RefreshMenu("6"); }
else if (b.toLowerCase() == "6") { RefreshMenu("1"); }
{

to the bottom of default .xap

does this code belong in config.xap/main menu.xip, or is it flawed? can someone with experience of uix code tell me?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Little-G
post Jan 14 2006, 11:41 AM
Post #10


X-S Senior Member
**

Group: Members
Posts: 176
Joined: 5-August 05
Member No.: 238913
Xbox Version: v1.4
360 version: v3.0 (falcon)



why is no one willing to spend a minute or two to help? im sure someone can help me sad.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
t1x2irc2
post Jan 14 2006, 03:28 PM
Post #11


X-S Member
*

Group: Members
Posts: 68
Joined: 14-January 05
Member No.: 187930




i really haven't look through the whole code

but my guess would be

you want default.xip/config.xap

or

default.xip/default.xap


let me know if that works 4 ya

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
shank-
post Jan 16 2006, 06:57 AM
Post #12


X-S Enthusiast


Group: Members
Posts: 16
Joined: 5-June 04
Member No.: 123903



non displaying ip adress, cpu temp and free disk space ?

if u r talking about the images i can post them if you would like...
also while im here...
IPB Image

IPB Image

IPB Image

IPB Image

IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Little-G
post Jan 16 2006, 08:15 PM
Post #13


X-S Senior Member
**

Group: Members
Posts: 176
Joined: 5-August 05
Member No.: 238913
Xbox Version: v1.4
360 version: v3.0 (falcon)



how are you selecting those? i have the same issue as ih8ny4ever it reboots after pressing left thumb twice
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Dazza
post Jan 16 2006, 10:01 PM
Post #14


X-S Young Member
*

Group: Members
Posts: 30
Joined: 6-December 02
From: Rugby, England
Member No.: 12411
Xbox Version: v1.2



It should not be too difficult to get this working....

The code states that you need to create these 3 files

harddisc.xbx
info.xbx
ipaddy.xbx

Have you done that?

Mine would not work so I went through and commented out all of the references to a:/ and that fixed it.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
shank-
post Jan 17 2006, 06:46 AM
Post #15


X-S Enthusiast


Group: Members
Posts: 16
Joined: 5-June 04
Member No.: 123903



extract these into album covers folder and everything should be sweet
info icons
i should have posted them at the start
please post resaults. its been a while smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





2 Pages V  1 2 >
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 21st May 2013 - 10:12 AM