Jump to content


Photo

Song Title Seprate From Clock; Addon To Dazza


  • Please log in to reply
35 replies to this topic

#1 clif

clif

    X-S Member

  • Members
  • Pip
  • 81 posts

Posted 20 January 2005 - 05:42 AM

I have made a little code so now that the Song title comes up on the left and your clock is on the right. Credit goes out to Dazza for some of his code !and as i have modified some of his!

first open default/defualt
put this at the bottom
CODE

function ChangeDisplay()
{
var nMaxDisplay = 8;
if (nDisplayNum > nMaxDisplay) { nDisplayNum = 1; }
if (nDisplayNum < 1) { nDisplayNum = nMaxDisplay; }
var sTopText = "";
var sBotText = "";
var sMainText = "";

if (nDisplayNum == 1)
{
  var sTrackName = theMusicCollection.GetSoundtrackSongName(currentAlbum, currentTrack);
   sTopText = "Artist";
    sBotText = "Title";
   sMainText = sTrackName;
}

else if (nDisplayNum == 2)
{
   var sIPAddress = theXboxNetwork.GetXboxIP();
   sTopText = "IP";
   sMainText = sIPAddress;
}
else if (nDisplayNum == 3)
{
   sTopText = "C:";
   sBotText = "FREE";
   sMainText = DriveSpace(sTopText);
}
else if (nDisplayNum == 4)
{
   sTopText = "E:";
   sBotText = "FREE";
   sMainText = DriveSpace(sTopText);
}
else if (nDisplayNum == 5)
{
   sTopText = "F:";
   sBotText = "FREE";
   sMainText = DriveSpace(sTopText);
   if (sMainText == "")
}

else if (nDisplayNum == 6)
{
   sTopText = "BIOS";
   sMainText = theConfig.GetROMVersion();
}
else if (nDisplayNum == 7)
{
   sTopText = "DASH";
   sMainText = theConfig.GetXdashVersion();
}


else if (nDisplayNum == 8)
{
   var nIntTemp = theConfig.GetInternalTemp();
   var nCPUTemp = theConfig.GetCPUTemp();
    var sScale = "C";

//     var IniFile = new Settings;
//     IniFile.SetIniSection( "Settings" );
//     var e = IniFile.GetIniValue( "temp" );
//     IniFile.CloseIniFile();
// mine is setable from the config screen

   var e = "fahrenheit";


   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;
   }
   sTopText = "MB Temp";
   sBotText = "CPU";
   sMainText = nIntTemp + " " + sScale + "       "+ nCPUTemp + " " + sScale;
}

var c = theMainMenu.children[0].children[0];
c.theClock_text.children[0].children[0].geometry.text = sMainText;
c.Clock_panel_header_text.text = sTopText;
c.Clock_panel_support_03_text.text = sBotText;
}

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

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 == 10) { 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();
}

ok thats all for the default/default
now open Main_Menu/default
and put this at the bottom:
CODE

DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "Clock_panel_backing-FACES.xm" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "Clock_panel_header-FACES.xm" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "DATE" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "Clock_panel_support_01-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "Clock_panel_support_02-FACES.xm" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "Clock_panel_support_03-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "TIME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
children
[
Transform
{
rotation 1 0 0 -1.571
scale 0.55 1.1 0.9
translation 0 0 0
children
[
Shape
{
appearance Appearance
{

material MaxMaterial
{
name "NavType"
}
}
geometry Text { font "body" justify "middle" translate false text "<clock>" }
}
]
}
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale 1.000000 1.000000 1.000000
translation 1.500000 -1.239800 1.654000
}



]
rotation 0 0 -1000.1 0.02
scale 40.000000 40.000000 40.000000
translation 170.1900002 -250.261000 -210.399994
}








DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "Clock_panel_backing-FACES.xm" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "Clock_panel_header-FACES.xm" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "XBOX" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "Clock_panel_support_01-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "Clock_panel_support_02-FACES.xm" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "Clock_panel_support_03-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "NAME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
children
[
Transform
{
rotation 1 0 0 -1.571
scale 0.55 1.1 0.9
translation 0 0 0
children
[
Shape
{
appearance Appearance
{

material MaxMaterial
{
name "NavType"
}
}
geometry Text { font "body" justify "middle" translate false text ".:ImOlAtE:." }
}
]
}
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale .700000 .700000 .700000
translation 1.500000 -1.239800 1.654000
}

]
rotation 0 0 0.1 0.02
scale 60.000000 40.000000 40.000000
translation -360.1900002 -250.261000 -210.399994
}



save up and ftp back to xbox smile.gif here are some screenes !

user posted image
user posted image
user posted image
user posted image

there will be many more code to come!

Sorry Hozy Just thought i would finish it

#2 CrakkedOut

CrakkedOut

    X-S Expert

  • Members
  • PipPipPip
  • 731 posts
  • Location:LINY
  • Xbox Version:none
  • 360 version:none

Posted 21 January 2005 - 01:29 AM

sorry to be picky but, is there a way to make the clock on the left and the info on the right??? tongue.gif

#3 SRM

SRM

    X-S Young Member

  • Members
  • Pip
  • 34 posts

Posted 21 January 2005 - 01:40 AM

how do you make the song title text start from a song title and not from "Xbox Name"

i mean obviously you need to add a ChangeDisplay(); somewhere in default.xip/default.xap, but where??

#4 clif

clif

    X-S Member

  • Members
  • Pip
  • 81 posts

Posted 21 January 2005 - 03:53 AM

well you might have somthing wrong with your code, mine starts with the song on boot, so step threw the tot and make shure you did it right if not let me know.

#5 blade_boy1

blade_boy1

    X-S Enthusiast

  • Members
  • 25 posts
  • Xbox Version:v1.4

Posted 21 January 2005 - 04:00 AM

I know its possible because I saw you did it in another post but how can I get rid of the backpanel on either display? I want to just be able to see the text with nothing behind it except the cell wall. Any help would be great!

#6 clif

clif

    X-S Member

  • Members
  • Pip
  • 81 posts

Posted 21 January 2005 - 05:37 AM

this is the easyest way to do that, replace this code in your Main_menu/Defualt xap with the one on the tot.

CODE

DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "
" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "DATE" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "
" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "TIME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
children
[
Transform
{
rotation 1 0 0 -1.571
scale 0.55 1.1 0.9
translation 0 0 0
children
[
Shape
{
appearance Appearance
{

material MaxMaterial
{
name "NavType"
}
}
geometry Text { font "body" justify "middle" translate false text "<clock>" }
}
]
}
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale 1.000000 1.000000 1.000000
translation 1.500000 -1.239800 1.654000
}



]
rotation 0 0 -1000.1 0.02
scale 40.000000 40.000000 40.000000
translation 170.1900002 -250.261000 -210.399994
}








DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "XBOX" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "NAME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
children
[
Transform
{
rotation 1 0 0 -1.571
scale 0.55 1.1 0.9
translation 0 0 0
children
[
Shape
{
appearance Appearance
{

material MaxMaterial
{
name "NavType"
}
}
geometry Text { font "body" justify "middle" translate false text ".:ImOlAtE:." }
}
]
}
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale .700000 .700000 .700000
translation 1.500000 -1.239800 1.654000
}

]
rotation 0 0 0.1 0.02
scale 60.000000 40.000000 40.000000
translation -360.1900002 -250.261000 -210.399994
}

heres what you get:

user posted image
if you just want to do it for the song name use this code:
CODE

DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "Clock_panel_backing-FACES.xm" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "Clock_panel_header-FACES.xm" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "DATE" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "Clock_panel_support_01-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "Clock_panel_support_02-FACES.xm" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "Clock_panel_support_03-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "TIME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
children
[
Transform
{
rotation 1 0 0 -1.571
scale 0.55 1.1 0.9
translation 0 0 0
children
[
Shape
{
appearance Appearance
{

material MaxMaterial
{
name "NavType"
}
}
geometry Text { font "body" justify "middle" translate false text "<clock>" }
}
]
}
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale 1.000000 1.000000 1.000000
translation 1.500000 -1.239800 1.654000
}



]
rotation 0 0 -1000.1 0.02
scale 40.000000 40.000000 40.000000
translation 170.1900002 -250.261000 -210.399994
}








DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "XBOX" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "NAME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
children
[
Transform
{
rotation 1 0 0 -1.571
scale 0.55 1.1 0.9
translation 0 0 0
children
[
Shape
{
appearance Appearance
{

material MaxMaterial
{
name "NavType"
}
}
geometry Text { font "body" justify "middle" translate false text ".:ImOlAtE:." }
}
]
}
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale .700000 .700000 .700000
translation 1.500000 -1.239800 1.654000
}

]
rotation 0 0 0.1 0.02
scale 60.000000 40.000000 40.000000
translation -360.1900002 -250.261000 -210.399994
}

and hers what that gets
user posted image

if you want to get rid of the artist and title display just go your default/defualt and change:
CODE

if (nDisplayNum == 1)
{
 var sTrackName = theMusicCollection.GetSoundtrackSongName(currentAlbum, currentTrack);
  sTopText = "Artist";
   sBotText = "Title";
  sMainText = sTrackName;
}

to this:
CODE

if (nDisplayNum == 1)
{
 var sTrackName = theMusicCollection.GetSoundtrackSongName(currentAlbum, currentTrack);
    sMainText = sTrackName;
}


sorry no screeny of that one, have to go, and thats all folks.....

#7 magicruss

magicruss

    X-S Enthusiast

  • Members
  • 15 posts
  • Location:UK
  • Xbox Version:v1.1

Posted 21 January 2005 - 03:48 PM

Great code but the above poster was right - it starts with the xbox name (which is yours i presume) instead of the song. The box name is text. How do you start with song title.

Great post

#8 Dazza

Dazza

    X-S Young Member

  • Members
  • Pip
  • 30 posts
  • Location:Rugby, England
  • Xbox Version:v1.2

Posted 21 January 2005 - 06:05 PM

If looked at his code and he's moved the track name to page one but not asked for that page to be updated with the songtitle if its shown.

I'm not using this code but try and find
CODE

if (nDisplayNum == 10) { ChangeDisplay(); }


and change it to
CODE

if (nDisplayNum == 1) { ChangeDisplay(); }


This may solve your problems.

#9 ShawniE_O

ShawniE_O

    X-S Enthusiast

  • Members
  • 6 posts

Posted 21 January 2005 - 07:03 PM

QUOTE(CrakkedOut @ Jan 21 2005, 02:00 AM)
sorry to be picky but, is there a way to make the clock on the left and the info on the right???  tongue.gif

View Post



for the people that want the info window and clock reversed u need to go into the default.xip/default.xap and search (cntl+f) for the word "clock"...keep hitting the enter key until u see a line with a translation of -360, something, something. you want that negitive value to be positive. (i think i put mine to 200...im doing this from memory)...then u have to go into the main_menu.xip/default.xap and search for the line "translation 170.1900002 -250.261000 -210.399994" wow i cant believe i remember that one lol thats funny...ne way this is where u want to make the 170 a negitive number....i put mine to -360, blah, blah...and thats it...ur menus are now reversed wink.gif

#10 CrakkedOut

CrakkedOut

    X-S Expert

  • Members
  • PipPipPip
  • 731 posts
  • Location:LINY
  • Xbox Version:none
  • 360 version:none

Posted 21 January 2005 - 07:08 PM

thanks shawn

#11 TMG8

TMG8

    X-S X-perience

  • Members
  • PipPip
  • 467 posts
  • Location:Ontario, Canada
  • Interests:well guess you need to ask to find out
  • Xbox Version:v1.0

Posted 21 January 2005 - 07:19 PM

For all us canadians swapped to Celcius temp And have fixed track display
Open Default.xip/default.xap and find this
CODE
if (nDisplayNum == 10) { ChangeDisplay(); }

and change to
CODE
if (nDisplayNum == 1) { ChangeDisplay(); }

Find this code in Default.xip/Default.xap
CODE
else if (nDisplayNum == 8)
{
  var nIntTemp = theConfig.GetInternalTemp();
  var nCPUTemp = theConfig.GetCPUTemp();
   var sScale = "C";

//     var IniFile = new Settings;
//     IniFile.SetIniSection( "Settings" );
//     var e = IniFile.GetIniValue( "temp" );
//     IniFile.CloseIniFile();
// mine is setable from the config screen

  var e = "fahrenheit";


  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;
  }
  sTopText = "MB Temp";
  sBotText = "CPU";
  sMainText = nIntTemp + " " + sScale + "       "+ nCPUTemp + " " + sScale;
}

Change to this.....
CODE
else if (nDisplayNum == 8)
{
  var nIntTemp = theConfig.GetInternalTemp();
  var nCPUTemp = theConfig.GetCPUTemp();
   var sScale = "C";

//     var IniFile = new Settings;
//     IniFile.SetIniSection( "Settings" );
//     var e = IniFile.GetIniValue( "temp" );
//     IniFile.CloseIniFile();
// mine is setable from the config screen

  var e = "fahrenheit";


  if( e == "fahrenheit" )
  {
      sScale = "C";
             nIntTemp = theConfig.GetInternalTemp();
             nCPUTemp = theConfig.GetCPUTemp();
  }
  else if( e == "kelvin" )
  {
      sScale = "K";
             nIntTemp = nIntTemp + 273;
             nCPUTemp = nCPUTemp + 273;
  }
  sTopText = "MB Temp";
  sBotText = "CPU";
  sMainText = nIntTemp + " " + sScale + "       "+ nCPUTemp + " " + sScale;
}

then you can go into main_menu.xip/default.xap and find.....
CODE

geometry Text { font "body" justify "middle" translate false text ".:ImOlAtE:." }     /// change  ".:ImOlAtE:." To What You Want or "" Blank For Nothing
geometry DEF Clock_panel_support_03_text Text { font "Body" text "NAME" }    ///change "NAME To What You Want or "" Blank For Nothing
geometry DEF Clock_panel_header_text Text { font "Body" text "XBOX" } ///change "xbox" to what you want or "" Blank for nothing


Edited by TMG8, 21 January 2005 - 07:21 PM.


#12 b0oGy

b0oGy

    X-S Enthusiast

  • Members
  • 19 posts

Posted 21 January 2005 - 10:04 PM

Hi is there a way to change the Position of the Info Panel? For me it is to much at the bottom I need it a little bit higher?

#13 clif

clif

    X-S Member

  • Members
  • Pip
  • 81 posts

Posted 22 January 2005 - 03:09 AM

double posted

Edited by clif, 22 January 2005 - 03:16 AM.


#14 clif

clif

    X-S Member

  • Members
  • Pip
  • 81 posts

Posted 22 January 2005 - 03:14 AM

QUOTE(b0oGy @ Jan 21 2005, 10:35 PM)
Hi is there a way to change the Position of the Info Panel? For me it is to much at the bottom I need it a little bit higher?

View Post



yes there is in Main_menu/default you find these closings after each panel:

CODE

]
rotation 0 0 0.1 0.02
scale 60.000000 40.000000 40.000000
translation -360.1900002 -250.261000 -210.399994
}


and
CODE


]
rotation 0 0 -1000.1 0.02
scale 40.000000 40.000000 40.000000
translation 170.1900002 -250.261000 -210.399994
}



in the translation of each is the location, on the x,y,x cordinants it is based at if the center of the screen would be 0,0. dont really need to mess with the z cord unless you want to go infront or behind somthing.
QUOTE
sorry to be picky but, is there a way to make the clock on the left and the info on the right??? 


yes if you would like the clock to be on the left on the information on the right, then just switch the translation of the 2.

Edited by clif, 22 January 2005 - 03:19 AM.


#15 blade_boy1

blade_boy1

    X-S Enthusiast

  • Members
  • 25 posts
  • Xbox Version:v1.4

Posted 22 January 2005 - 04:10 AM

QUOTE
yes if you would like the clock to be on the left on the information on the right, then just switch the translation of the 2.

I tried changing the translations so that I could have the date/time on the left and the info on the right, but only the date/time box would move and the info would not move at all. I was wondering if I had to modify the translations for each text item but it seems those numbers are slightly different and only related to the panel size and not the full screen size.

I hope that makes sense cause I am reading it over and I dont even know what I just said... tongue.gif

A little help would be great and thank you muchly for the code to get rid of the backing on one of the panels! biggrin.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users