ok i see some ppl getting problems... i just whipped up this code here and it works for me .. u all can try it out..
i did this based on slicks first code post in this forum for the regular info panel without the config
the changes are as follows.
open your uix.ini file in your system folder of UIX
add these lines to the bottom of this file.... save it and upload it back to its original folder.. if you are using flashfxp you can edit it right there on the server.
CODE
[InfoPanel]
info5=avtype
info4=freespace
info3=cputemp
info2=fanspeed
info1=ipaddress
next .. open up default.xip/default.xap
go down to
CODE
function ChangeDisplay()
{
delete everything in this function so it looks like this
CODE
function ChangeDisplay()
{
}
now put this code in between the { } brackets
CODE
var line1;
var line2;
var line3;
var line4;
var line5;
var fanspeedtext;
var avtypetext;
var cputext;
var freespacetext;
var ipaddresstext;
var showmyinfo;
var sTopText = "";
var sBotText = "";
var sMainText = "";
sTopText = "My XBOX Info";
sBotText = "XBOX ";
var nIntTemp = theConfig.GetCPUTemp();
var CputempF = Math.round(nIntTemp * 9/5 + 32);
var TotalFree = theHardDrive.GetFreeSpace("E:\\") + theHardDrive.GetFreeSpace("F:\\") + theHardDrive.GetFreeSpace("G:\\");
cputext = "CPU Temp = " + CputempF + "F";
freespacetext= "Total Free Space = " + TotalFree + "MB";
ipaddresstext = "IP Address = " + theXboxNetwork.GetXboxIP();
fanspeedtext = "Fan Speed = " + theConfig.GetFanSpeed()*2 + "%";
avtypetext = "AV Pack Type = " + theConfig.GetAVPackType();
var myline = new Array(5);
var mylinetext = new Array(5);
var IniFile = new Settings;
IniFile.SetIniSection( "InfoPanel" );
line1 = IniFile.GetIniValue("info1");
line2 = IniFile.GetIniValue("info2");
line3 = IniFile.GetIniValue("info3");
line4 = IniFile.GetIniValue("info4");
line5 = IniFile.GetIniValue("info5");
IniFile.CloseIniFile();
myline[1] = line1;
myline[2] = line2;
myline[3] = line3;
myline[4] = line4;
myline[5] = line5;
for (var i=1; i < 6; i = i + 1) {
if (myline[i] == "cputemp") {mylinetext[i] = cputext; }
if (myline[i] == "freespace") { mylinetext[i] = freespacetext; }
if (myline[i] == "ipaddress") { mylinetext[i] = ipaddresstext; }
if (myline[i] == "fanspeed") { mylinetext[i] = fanspeedtext; }
if (myline[i] == "avtype") { mylinetext[i] = avtypetext; }
}
sMainText = mylinetext[1] + "\r" + mylinetext[2] + "\r" + mylinetext[3] + "\r" + mylinetext[4] + "\r" + mylinetext[5];
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;
SAVE default.xap and insert it back into default.xap
next you have to edit default.xip/config.xap
look for this line ...
CODE
function BuildMainList()
{
scroll down till u see these lines
CODE
configList[i] = "Music Initial Volume:";
configValues[i] = "c-Music On Boot-volume";
configSelect[i] = "ConfigKeyB()";
i = i + 1;
insert these lined directly below this ...
CODE
configList[i] = "Info Panel - Line 1:";
configValues[i] = "c-InfoPanel-info1";
configSelect[i] = "SelectInfoPanelData1()";
i = i + 1;
configList[i] = "Info Panel - Line 2:";
configValues[i] = "c-InfoPanel-info2";
configSelect[i] = "SelectInfoPanelData2()";
i = i + 1;
configList[i] = "Info Panel - Line 3:";
configValues[i] = "c-InfoPanel-info3";
configSelect[i] = "SelectInfoPanelData3()";
i = i + 1;
configList[i] = "Info Panel - Line 4:";
configValues[i] = "c-InfoPanel-info4";
configSelect[i] = "SelectInfoPanelData4()";
i = i + 1;
configList[i] = "Info Panel - Line 5:";
configValues[i] = "c-InfoPanel-info5";
configSelect[i] = "SelectInfoPanelData5()";
i = i + 1;
so the function will now look like this ...
CODE
function BuildMainList()
{
var i = 0;
configList = new Array;
configValues = new Array;
configSelect = new Array;
configList[i] = "Dash Style:";
configValues[i] = "c-Dashboard Settings-Dash Style";
configSelect[i] = "ToggleMM()";
i = i + 1;
configList[i] = "Menus Use Names From xbe:";
configValues[i] = "c-Naming Method-use xbe names";
configSelect[i] = "ToggleUseXBENames()";
i = i + 1;
configList[i] = "AutoLaunch Inserted Media:";
configValues[i] = "c-AutoLaunch Media-Launch On Insert";
configSelect[i] = "ToggleAutoLaunchMedia()";
i = i + 1;
configList[i] = "Background Music Start on Boot:";
configValues[i] = "c-Music On Boot-enabled"; //section-value
configSelect[i] = "ToggleTF()";
i = i + 1;
configList[i] = "Music Initial Volume:";
configValues[i] = "c-Music On Boot-volume";
configSelect[i] = "ConfigKeyB()";
i = i + 1;
configList[i] = "Info Panel - Line 1:";
configValues[i] = "c-InfoPanel-info1";
configSelect[i] = "SelectInfoPanelData1()";
i = i + 1;
configList[i] = "Info Panel - Line 2:";
configValues[i] = "c-InfoPanel-info2";
configSelect[i] = "SelectInfoPanelData2()";
i = i + 1;
configList[i] = "Info Panel - Line 3:";
configValues[i] = "c-InfoPanel-info3";
configSelect[i] = "SelectInfoPanelData3()";
i = i + 1;
configList[i] = "Info Panel - Line 4:";
configValues[i] = "c-InfoPanel-info4";
configSelect[i] = "SelectInfoPanelData4()";
i = i + 1;
configList[i] = "Info Panel - Line 5:";
configValues[i] = "c-InfoPanel-info5";
configSelect[i] = "SelectInfoPanelData5()";
i = i + 1;
ClearText();
UpdateText();
}
Next... within this same file.. scroll down till you see this....
CODE
function ToggleMM()
{
var c = theConfigPanel.children[0].children[0];
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
if(b.toLowerCase() == "modded") { RefreshMenu("stock"); }
else if(b.toLowerCase() == "stock") { RefreshMenu("modded"); }
}
Insert this code directly below it...
CODE
function SelectInfoPanelData1()
{
var c = theConfigPanel.children[0].children[0];
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}
function SelectInfoPanelData2()
{
var c = theConfigPanel.children[0].children[0];
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}
function SelectInfoPanelData3()
{
var c = theConfigPanel.children[0].children[0];
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}
function SelectInfoPanelData4()
{
var c = theConfigPanel.children[0].children[0];
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}
function SelectInfoPanelData5()
{
var c = theConfigPanel.children[0].children[0];
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}
SAVE config.xap , insert it back into default.xip.....
reboot your xbox ... and you will now have your info panel configurable from the dash configuration menu
....
mrmodem..
nuff respect to slick and the others for the excellent work and ideas..