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
> Song Title Seprate From Clock; Addon To Dazza, 2 diffrent menus: Sceenshots!
clif
post Jan 20 2005, 05:42 AM
Post #1


X-S Member
*

Group: Members
Posts: 81
Joined: 8-July 04
Member No.: 129513



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
DaBeast77
post Jan 23 2005, 03:52 AM
Post #2


X-S X-perience
**

Group: Members
Posts: 313
Joined: 16-April 03
From: Richmond, Virginia
Member No.: 32489
Xbox Version: v1.0



when will you be on?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
clif   Song Title Seprate From Clock; Addon To Dazza   Jan 20 2005, 05:42 AM
CrakkedOut   sorry to be picky but, is there a way to make the ...   Jan 21 2005, 01:29 AM
ShawniE_O   for the people that want the info window and clo...   Jan 21 2005, 07:03 PM
SRM   how do you make the song title text start from a s...   Jan 21 2005, 01:40 AM
clif   well you might have somthing wrong with your code,...   Jan 21 2005, 03:53 AM
blade_boy1   I know its possible because I saw you did it in an...   Jan 21 2005, 04:00 AM
clif   this is the easyest way to do that, replace this c...   Jan 21 2005, 05:37 AM
magicruss   Great code but the above poster was right - it sta...   Jan 21 2005, 03:48 PM
Dazza   If looked at his code and he's moved the track...   Jan 21 2005, 06:05 PM
CrakkedOut   thanks shawn   Jan 21 2005, 07:08 PM
TMG8   For all us canadians swapped to Celcius temp And h...   Jan 21 2005, 07:19 PM
b0oGy   Hi is there a way to change the Position of the In...   Jan 21 2005, 10:04 PM
clif   double posted   Jan 22 2005, 03:09 AM
clif   yes there is in Main_menu/default you find these...   Jan 22 2005, 03:14 AM
blade_boy1   I tried changing the translations so that I could...   Jan 22 2005, 04:10 AM
blade_boy1   Ive kinda been playing around and figured this out...   Jan 22 2005, 05:28 AM
DaBeast77   clif, where can i get that skin?   Jan 22 2005, 10:58 AM
EBear   Okay. . . just about have this how I want it (info...   Jan 22 2005, 08:34 PM
clif   to make it longer find this code:   ...   Jan 23 2005, 12:39 AM
clif   pm me on #teamuix   Jan 23 2005, 12:41 AM
DaBeast77   when will you be on?   Jan 23 2005, 03:52 AM
EBear   Thanks Clif!   Jan 24 2005, 03:17 AM
clif   no problem, but got any other ideas for somethen t...   Jan 24 2005, 04:47 AM
CrakkedOut   i seriously have no idea whats wrong. my problem ...   Jan 30 2005, 07:21 PM
ImOkRuOk   Ok, I love this;) I also did the hide clock code w...   Feb 3 2005, 03:03 AM
Dazza   Well assuming you are using evil_teds code to hi...   Feb 3 2005, 05:44 PM
clif   thanks dazza   Feb 7 2005, 03:12 AM
Entrepraninja   Now how would i get the clock to display on the in...   Mar 25 2005, 03:28 AM
clif   um look back into the fourms theres one with clock...   Mar 25 2005, 05:12 AM
Retromortal   Is there a way to get the soundtrack name above th...   Mar 25 2005, 08:42 PM
clif   you could do it, to code it you would have to have...   Mar 26 2005, 06:16 AM
petermac   I am also working on this too, i just need the cod...   Mar 26 2005, 11:36 AM
clif   heh but work calls, and the truck needs gas money....   Mar 26 2005, 08:19 PM
conners   is there away to straighten the panels out, so the...   Jun 5 2005, 02:39 PM
clif   in your menu xip were you put the phisical code fo...   Jun 6 2005, 06:00 AM
petermac   haha thats funny, i used to live in germany, for 5...   Jun 6 2005, 06:08 AM






Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 24th May 2013 - 07:52 AM