QUOTE |
var BGMoldVol; var DDSpace; var DDType; var DD; var freespace; var totalspace; |
Next add this at the bottom
QUOTE |
DEF theHDDMonitor MemoryMonitor
function ShowFreeSpaceOn(drive) { var a = drive; var b = theHDDMonitor.GetTotalFreeBlocks(a); var c = b * 16; return c; }
function ShowTotalSpaceOn(drive) { var a = drive; var b = theHDDMonitor.GetFreeTotalRatio(a); var c = theHDDMonitor.GetTotalFreeBlocks(a); var d = c * 16; var e = d / b; return e; } |
Next goto DEF theMainMenu Level and put the following under function onLoad()
QUOTE |
{ DD = 8; for (var ii = 1; ii < 7; ii = ii + 2) { freespace = ShowFreeSpaceOn(DD); totalspace = ShowTotalSpaceOn(DD); DDType[ii] = "KB"; DDType[ii+1] = "KB"; DDSpace[ii] = Math.round(freespace); DDSpace[ii+1] = Math.round(totalspace); if (freespace >= 1048576) { DDSpace[ii] = Math.round((freespace / 1024)/1024); DDType[ii] = "GB"; } else if (freespace < 1048576 & freespace > 1024) { DDSpace[ii] = Math.round(freespace / 1024); DDType[ii] = "MB"; }
if (totalspace >= 1048576) { DDSpace[ii+1] = Math.round((totalspace / 1024)/1024); DDType[ii+1] = "GB"; } else if (totalspace < 1048576 & totalspace > 1024) { DDSpace[ii+1] = Math.round(totalspace / 1024); DDType[ii+1] = "MB"; } DD = DD + 1; } |
Now goto control DEF joy Joystick and change this function OnYDown()
QUOTE |
function OnYDown() { if((RightTrigger == true) & (LeftTrigger == true)) { QuickLaunch(theDashSettings[73],theDashSettings[74],theDashSettings[75]); } else { PlaySoundA(); theMenuGlobal = ReadValues(theDashSettings[107]); var nTracks0; nTracks0 = theMenuGlobal.length; theMenuGlobal = ReadValues(theDashSettings[108]); var nTracks1; nTracks1 = theMenuGlobal.length; theMenuGlobal = ReadValues(theDashSettings[109]); var nTracks2; nTracks2 = theMenuGlobal.length; theMenuGlobal = ReadValues(theDashSettings[110]); var nTracks3; nTracks3 = theMenuGlobal.length; theMenuGlobal = ReadValues(theDashSettings[111]); var nTracks4; nTracks4 = theMenuGlobal.length; SystemPanel("SSChevy2001's XBOX" + "\r \rBIOS: " + theConfig.GetROMVersion() + "\rDASH: " + theConfig.GetXdashVersion() + "\r" + "\r ..::XBOX HDD INFO::.." + "\r FREE TOTAL " + theDashSettings[101] + "(" + nTracks0 + ")" + "\rE: " + DDSpace[1] + DDType[1] + " " + DDSpace[2] + DDType[2] + " " + theDashSettings[102] + "(" + nTracks1 + ")" + "\rF: " + DDSpace[3] + DDType[3] + " " + DDSpace[4] + DDType[4] + " " + theDashSettings[103] + "(" + nTracks2 + ")" + "\rG: " + DDSpace[5] + DDType[5] + " " + DDSpace[6] + DDType[6] + " " + theDashSettings[104] + "(" + nTracks3 + ")" + "\rDVD: " + theDiscDrive.discType + " " + theDashSettings[105] + "(" + nTracks4 + ")", "theMainMenu.GoTo()"); //theGamesSubMenuOut.Play(); //BackgroundMusicOff(); } } |
Goto function initialize() and add DDSpace, DDType to the list like this
QUOTE |
function initialize() { DDSpace = new Array(6); DDType = new Array(6); datapath = "Y:\\tHc.data\\" |
Now goto function AskQuestion(strQuestion, strYesFunction, strNoFunction, nDefaultButton) and replace the following
QUOTE |
function AskQuestion(strQuestion, strYesFunction, strNoFunction, nDefaultButton) { // Defer disc insertion/removal notification theDiscDrive.locked = true; BlockMemoryUnitInsert();
var c = theMessageInline.children[0];
c.AudioPlayer_01.SetAlpha(0); c.MessagePanel.SetRotation(0, 0, 1, 0); c.MessagePanel.SetAlpha(1);
strMessageText = strQuestion; strMessageYesFunction = strYesFunction; strMessageNoFunction = strNoFunction;
c.button_yes.visible = true; c.button_no.visible = true; c.button_center.visible = false; c.slider_slot.visible = false; c.slider.visible = false; c.message_Text01.visible = true; c.SystemPanel.visible = false; c.SystemPanel_Text.visible = false;
c.MessageText.text = strQuestion;
nCurMessageButton = nDefaultButton; nMessageButtonCount = 2; UpdateMessageButtonHighlight();
if (g_bPanelDisplayed == false) { theMessageJoystick.isBound = true; }
theMessageLayer.transparency = 0.25;
g_bPanelDisplayed = true; }
function SystemPanel(strMessage, strDoneFunction) { theDiscDrive.locked = true; BlockMemoryUnitInsert();
var c = theMessageInline.children[0];
c.AudioPlayer_01.SetAlpha(0); c.MessagePanel.SetRotation(0, 0, 1, 0); c.MessagePanel.SetAlpha(1);
strMessageText = strMessage; strMessageYesFunction = strDoneFunction; strMessageNoFunction = strDoneFunction;
c.button_yes.visible = false; c.button_no.visible = false; c.button_center.visible = false; c.slider_slot.visible = false; c.slider.visible = false; c.SystemPanel.visible = true; c.SystemPanel_Text.visible = true; c.message_Text01.visible = false;
c.SystemPanelText.text = strMessage;
nCurMessageButton = 0; nMessageButtonCount = 1; UpdateMessageButtonHighlight();
if (g_bPanelDisplayed == false) { theMessageJoystick.isBound = true; }
theMessageLayer.transparency = 0.50;
g_bPanelDisplayed = true; }
function TellUser(strMessage, strDoneFunction) { // Defer disc insertion/removal notification theDiscDrive.locked = true; BlockMemoryUnitInsert();
var c = theMessageInline.children[0];
c.AudioPlayer_01.SetAlpha(0); c.MessagePanel.SetRotation(0, 0, 1, 0); c.MessagePanel.SetAlpha(1);
strMessageText = strMessage; strMessageYesFunction = strDoneFunction; strMessageNoFunction = strDoneFunction;
c.button_yes.visible = false; c.button_no.visible = false; c.button_center.visible = true; c.slider_slot.visible = false; c.slider.visible = false; c.message_Text01.visible = true; c.SystemPanel.visible = false; c.SystemPanel_Text.visible = false;
c.MessageText.text = strMessage;
nCurMessageButton = 0; nMessageButtonCount = 1; UpdateMessageButtonHighlight();
if (g_bPanelDisplayed == false) { theMessageJoystick.isBound = true; }
theMessageLayer.transparency = 0.25;
g_bPanelDisplayed = true; }
function BlockUser(strMessage) { BlockMemoryUnitInsert();
var c = theMessageInline.children[0];
c.AudioPlayer_01.SetAlpha(0); c.MessagePanel.SetRotation(0, 0, 1, 0); c.MessagePanel.SetAlpha(1);
strMessageText = strMessage; strMessageYesFunction = ""; strMessageNoFunction = "";
c.button_yes.visible = false; c.button_no.visible = false; c.button_center.visible = false; c.slider_slot.visible = false; c.slider.visible = false; c.message_Text01.visible = true; c.SystemPanel.visible = false; c.SystemPanel_Text.visible = false;
c.MessageText.text = strMessage;
nCurMessageButton = -1; nMessageButtonCount = 0; UpdateMessageButtonHighlight();
if (g_bPanelDisplayed == false) { theMessageJoystick.isBound = true; }
theMessageLayer.transparency = 0.25;
g_bPanelDisplayed = true; }
function ShowProgress(strMessage) { theDiscDrive.locked = true; BlockMemoryUnitInsert();
var c = theMessageInline.children[0];
c.AudioPlayer_01.SetAlpha(0); c.MessagePanel.SetRotation(0, 0, 1, 0); c.MessagePanel.SetAlpha(1);
c.button_yes.visible = false; c.button_no.visible = false; c.button_center.visible = false; c.slider_slot.visible = true; c.slider.visible = true; c.MessageText.text = strMessage; c.message_Text01.visible = true; c.SystemPanel.visible = false; c.SystemPanel_Text.visible = false;
SetProgress(0); nCurMessageButton = -1; nMessageButtonCount = 0;
theMessageJoystick.isBound = true; theMessageLayer.transparency = 0.25;
g_bPanelDisplayed = true; } |
Now open message.xip->default.xap and rem the following
QUOTE |
DEF message_metapanel_back Transform DEF Rectangle01 Transform DEF slider_slot Transform DEF text_frame Transform |
add this under DEF Rectangle01 Transform
QUOTE |
DEF SystemPanel Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "InnerWall_01" } texture ImageTexture { url "SystemPanel.xbx" alpha true } } geometry Box { size 1 1 0 } } ] rotation -6.5 0 0 3.15 translation 2.15 0.2 4.822000 } |
add this under DEF message_Text01 Transform
QUOTE |
DEF SystemPanel_Text Transform { children [ Transform { rotation 1 0 0 -1.571 children [ Shape { appearance Appearance { material MaxMaterial { name "Navtype" } } geometry DEF SystemPanelText Text { font "Body" width 16 } } ] } ] rotation -0.000271 1.000000 0.000089 -1.581000 scale 1.65 1.65 1.65 scaleOrientation -0.453300 0.861000 0.230700 -0.208100 //translation 1.892000 0.143700 13.340000 translation 9.5 0.177200 2 //8 0.177200 3.6 } |
Finally change the following and add your picture SystemPanel.xbx (256x256)
QUOTE |
DEF message_metapanel Transform { children [ Shape { appearance Appearance { material MaxMaterial { name "CellEgg/Parts" } } geometry DEF message_metapanel-FACES Mesh { url "message_metapanel-FACES.xm" } } |