my problem is the album cover not working
this is what i want it to do...
screenshot
and here is my code
(btw its just a copy and paste job realy)
default.xip\default.xap
CODE
function ChangeDisplay()
{
var albumtext = "";
var songtext = "";
var c = theMainMenu.children[0].children[0];
albumtext = theMusicCollection.GetSoundtrackName(currentAlbum);
songtext = theMusicCollection.GetSoundtrackSongName(currentAlbum, currentTrack);
c.theSoundtrackSongInfoText.text = songtext;
c.theSoundtrackAlbumInfoText.text = albumtext;
//testing
coverpath = "A:\\album covers\\" + albumtext + ".jpg";
exists = theHardDrive.FileExists( coverpath );
if( exists == true )
{
c.DVDStatusIconTexture.url = coverpath;
}
else
{
c.DVDStatusIconTexture.url = "A:\album covers\cover-na.xbx"
}
//testing
}
and in main_menu.xip\default.xap
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 DVDStatusIconTexture ImageTexture
{
url ""
}
}
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
}
any help will be great
cheers.