Jump to content


Photo

Info Panel


  • Please log in to reply
158 replies to this topic

#1 slick50zd

slick50zd

    X-S Member

  • Members
  • Pip
  • 90 posts
  • Xbox Version:v1.0

Posted 24 January 2005 - 01:54 AM

here is my wip
user posted image
it looks kinda dumb only showing fan speed
the codes about 60% done
and you will be able to configure what info you want displayed via the in dash config


#2 LyfsUXKuNT

LyfsUXKuNT

    X-S Member

  • Members
  • Pip
  • 101 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 25 January 2005 - 11:22 PM

hey nice one slick! looks great!

#3 slick50zd

slick50zd

    X-S Member

  • Members
  • Pip
  • 90 posts
  • Xbox Version:v1.0

Posted 26 January 2005 - 12:58 AM

thx LyfsUXKuNT
i'm having a couple bugs with the ini configuration part so i think i will post what i have later(im at school) without the ini, that will come later

heres what the presets are(if anyone cares biggrin.gif )
-fan speed
-AV pack type
-CPU temp
-Free space on F + G(for those who use the g drive)
-Ip Adress

oh ya i forgot to metion, credit to clif and dazza and who ever else worked on the original song title etc. stuff as that is what my code is based off of

Edited by slick50zd, 26 January 2005 - 01:03 AM.


#4 LyfsUXKuNT

LyfsUXKuNT

    X-S Member

  • Members
  • Pip
  • 101 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 26 January 2005 - 11:03 PM

i'm looking forward to it! a few questions though:

will the cpu temp preset include hdd temp and mobo temp?

and also can you configure hard drive space to include E:\?

#5 clif

clif

    X-S Member

  • Members
  • Pip
  • 81 posts

Posted 27 January 2005 - 12:15 AM

thanks slick50zd,
QUOTE
i'm looking forward to it! a few questions though:

will the cpu temp preset include hdd temp and mobo temp?

and also can you configure hard drive space to include E:\?


if its not relesed with that i can make it changable in the config, if thats ok with slick50zd smile.gif

#6 slick50zd

slick50zd

    X-S Member

  • Members
  • Pip
  • 90 posts
  • Xbox Version:v1.0

Posted 27 January 2005 - 05:49 AM

actually clif ive had this code 90% done for a couple of days now but ive been stuck on one thing with the ini setup. I cant get the reading of the ini to work mad.gif maybe u can help me out this is what i have for the display function,
CODE

function ChangeDisplay()
{
   var sTopText = "";
   var sBotText = "";
   var sMainText = "";
   sTopText = "Info";
   sBotText = "Panel";
   var IniFile = new Settings;
   IniFile.SetIniSection("Info Panel");
   for(var i = 1; i < 6; i = i + 1)
   {
       var Info = new Array(5);
       var in = "info" + i;
       Info[i] = IniFile.GetIniValue(in);
       if(Info[i] == "fanspeed") { sMainText = "hello"; } <- this line is the problem.
   }
   IniFile.CloseIniFile();
   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;
}


the rest works just fine until i add the "If(info[i]....." line no matter what the contents of the if then statement(the above was just a test) it always causes a "dirty disc error" its been driving me crazy maybe you or someone else could help me, like i said everything else is done except for that one part. and yes if i can get this to work there will be tons of options for the display

and here is a updated screen
user posted image
-any help is GREATLY appreciated

Edited by slick50zd, 27 January 2005 - 05:51 AM.


#7 thesbk

thesbk

    X-S Enthusiast

  • Members
  • 10 posts

Posted 27 January 2005 - 01:53 PM

Dammed ! great job man !

#8 Goggens

Goggens

    X-S Young Member

  • Members
  • Pip
  • 33 posts

Posted 29 January 2005 - 12:32 PM

looks just greate.

Would be nice with the complete code and where to put it.

Thanks.

#9 slick50zd

slick50zd

    X-S Member

  • Members
  • Pip
  • 90 posts
  • Xbox Version:v1.0

Posted 29 January 2005 - 09:15 PM

well here it is -well without ini config sad.gif but with the help of dazza it should be coming soon

u know allready what it looks like so heres the code
first open default.xip/default.xap and find this
CODE

DEF theLauncherLevel Level
{
   function OnArrival()
   {
       DisableAmbientAudio();
       BlockMemoryUnitEnumeration();
       ClosePopup();
       g_bAboutToReboot = true;
       if(theConfig.GetVideoMode() == 2) { theXboxLogo16x9Background.isBound = true; }
       else { theXboxLogo4x3Background.isBound = true; }
   }

   behavior
   {
       sleep 1.1;
       ChangeDisplay();
       if(g_bAboutToReboot)
       {
  if( b_restart == true ) { theConfig.ReStartDash(); }
  else if( b_dvd == true ) { StartDVDPlayer(); }
  else { theDiscDrive.LaunchDisc(); }
       }
   }

   function OnActivate()
   {
       DisableAmbientAudio();
       BlockMemoryUnitEnumeration();
       ClosePopup();
       //EnableInput(false);
       if(theConfig.GetVideoMode() == 2) { theXboxLogo16x9Background.isBound = true; }
       else { theXboxLogo4x3Background.isBound = true; }
   }
}

and insert this after it
CODE

behavior
{
  sleep 1;
  ChangeDisplay();
}

and now insert this at the end of default.xap
CODE

function ChangeDisplay()
{

var sTopText = "";
var sBotText = "";
var sMainText = "";
sTopText = "Info";
sBotText = "Panel";
var nIntTemp = theConfig.GetCPUTemp();
var CputempF = Math.round(nIntTemp * 9/5 + 32);
var TotalFree = theHardDrive.GetFreeSpace("E:\\") + theHardDrive.GetFreeSpace("F:\\") + theHardDrive.GetFreeSpace("G:\\");

       sMainText = "Fan Speed = " + theConfig.GetFanSpeed()*2 + "%\r";
       sMainText = sMainText + "AV Pack Type = " + theConfig.GetAVPackType() + "\r";
       sMainText = sMainText + "CPU Temp = " + CputempF + "F\r";
       sMainText = sMainText + "Total Free Space = " + TotalFree + "MB\r";
       sMainText = sMainText + "IP Adress = " + theXboxNetwork.GetXboxIP();
   
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;
}

now close that and open main_menu.xip/default.xap
and insert this at the end
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 "XBOX" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.250400 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.250400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
 children
 [
   Transform
   {
     rotation 1 0 0 -1.571
     scale 0.5 0.3 0.5
     translation 0 0 0
     children
     [
       Shape
       {
         appearance Appearance
         {
           material MaxMaterial
           {
             name "NavType"
           }
         }
         geometry Text { font "body" justify "right" translate false text "slick50zd" }
       }
     ]
   }
 ]
 rotation -90.000000 0.002966 0.000000 -1.551000
 scale .700000 .700000 .700000
 translation -0.860000 -0.56 1.654000
}

]
rotation 0 0 0.1 0.02
scale 70.000000 100.000000 40.000000
translation -325.1900002 -140.261000 -210.399994
}

thats it biggrin.gif
here are the presets:

fanspeed
av type
cpu temp(in FarenHeight)
total free space(E+F+G(g not tested as i have one big F drive so someone should test it))
and ip adress

note for those new to this: this does not contain the clock, skin, or four main menu tabs as seen in the second screenshot, you can find those around here

hope u all enjoy and if there are any bugs please post and i will fix as soon as possible

#10 slick50zd

slick50zd

    X-S Member

  • Members
  • Pip
  • 90 posts
  • Xbox Version:v1.0

Posted 30 January 2005 - 11:32 PM

well with the help of dazza the ini config is complete i just need to add in a few more options so it should be up tomorrow so heres one more screen
user posted image

biggrin.gif

#11 LyfsUXKuNT

LyfsUXKuNT

    X-S Member

  • Members
  • Pip
  • 101 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 31 January 2005 - 01:13 AM

omg! you are teh pWNz0rZ!!!! i can't wait to add this in!

#12 LyfsUXKuNT

LyfsUXKuNT

    X-S Member

  • Members
  • Pip
  • 101 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 31 January 2005 - 03:29 AM

ahhhhhhhhhhhhh i did something wrong?!?!?!?!!

i only boot up to my background image, no dash. good thing i have a dual boot smile.gif . is there anything i could've done wrong?

before i added your code, i already had code for the clock display in the bottom left hand side of my dash. so i deleted that code in order to add in your code. hmmm...maybe that's the problem. weird though, you said at the end of your post that your code didn't include the clock, but the clock code is in there you posted?

thanks for the help

#13 Goggens

Goggens

    X-S Young Member

  • Members
  • Pip
  • 33 posts

Posted 31 January 2005 - 10:01 AM

I have the same problem.

When i boot i get background, and the box freezes.

Anybody knows what the problem is?


Thanks.

#14 slick50zd

slick50zd

    X-S Member

  • Members
  • Pip
  • 90 posts
  • Xbox Version:v1.0

Posted 01 February 2005 - 12:25 AM

QUOTE(Goggens @ Jan 31 2005, 09:07 AM)
I have the same problem.

When i boot i get background, and the box freezes.

Anybody knows what the problem is?
Thanks.

View Post


ill have to check it out when i get home my first guess is that i didnt completely remove the clocks code which caused the error, so im going to follow my own instructions and see what happens im sorry for the problems

#15 billybobxxx

billybobxxx

    X-S Enthusiast

  • Members
  • 12 posts

Posted 01 February 2005 - 01:06 AM

hi slick50zd,

when will you post the rest of the code to change the display information from the config menu?

thanks






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users