xboxscene.org forums

Pages: 1 2 [3] 4 5 ... 13

Author Topic: Want This ?  (Read 5384 times)

RapBoy

  • Archived User
  • Full Member
  • *
  • Posts: 211
Want This ?
« Reply #30 on: July 16, 2004, 12:38:00 PM »

very nice and usefull code.
nice job on this...

but, i think that panel u guys used is really ugly and doesn't match the other panels in the dash. it would be great if u guys make the panel look like one of the panels from the settings menu. they look pretty damn good.

i suggest these 2:


audio panel:
user posted image

and language panel:
user posted image
Logged

aston

  • Archived User
  • Newbie
  • *
  • Posts: 22
Want This ?
« Reply #31 on: July 16, 2004, 01:14:00 PM »

Hi sschevy!
You make a great job on this tHc v1 mod........ ph34r.gif ,As always... laugh.gif
Could you post a complete tut ,please, when you finish your info panel of course! wink.gif
Again:Great!
Logged

alphaxav

  • Archived User
  • Jr. Member
  • *
  • Posts: 73
Want This ?
« Reply #32 on: July 16, 2004, 01:19:00 PM »

good work for everyone !!!  wink.gif

I just finish it ! laugh.gif

user posted image

I'll post the code in few minutes !  wink.gif
Logged

RapBoy

  • Archived User
  • Full Member
  • *
  • Posts: 211
Want This ?
« Reply #33 on: July 16, 2004, 01:46:00 PM »

QUOTE (SSChevy2001 @ Jul 16 2004, 05:02 PM)
The picture your looking at is Lite not Original, but when I'm done it will work on both dashs.
  What do you think about mine same or not, of course keep in mind it's not finished.
user posted image


now thats a good panel and really goes along with other panels in the dash.
nice job on that!

and the other panels i posted will go along just like that. will look great...
if someone can do it...
Logged

alphaxav

  • Archived User
  • Jr. Member
  • *
  • Posts: 73
Want This ?
« Reply #34 on: July 16, 2004, 01:52:00 PM »

ok so open default.xip/default.xap and at the end add this :

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;
}


now search for this :

QUOTE
function initialize()


make it look like this :

QUOTE
var bInGameBoardView;
var CurrentGameBoardAltViewpoint;
var InBoardBack;
var DDSpace;
var DDType;
var DD;
var freespace;
var totalspace;

function initialize()
{
DDSpace = new Array(6);
DDType = new Array(6);
    InBoardBack = false;

    bInGameBoardView = false;


go to this :

QUOTE
function OnArrival()
    {
      theSkinBackground.isBound = true;
    }


add this just after :

QUOTE
function OnArrival()
    {
      theSkinBackground.isBound = true;
    }
    behavior
    {
        sleep 0.1;
        if (children[0].children.length() > 0)
        {
        if (ControlPanelOut == true)
        {
            theMainMenu.children[0].children[0].theSkinName.fade =0.7;
            theMainMenu.children[0].children[0].theSkinName.SetAlpha(0);
            theMainMenu.children[0].children[0].theSkinName.SetTranslation(330, 255, -2100);
            theMainMenu.children[0].children[0].theMainMenuClock.fade =0.7;
            theMainMenu.children[0].children[0].theMainMenuClock.SetAlpha(0);
            theMainMenu.children[0].children[0].theMainMenuClock.SetTranslation(-500, -250, -2100);
        }
        else if (bInGameBoardView == true)
        {
            theMainMenu.children[0].children[0].theSkinName.fade =0.7;
            theMainMenu.children[0].children[0].theSkinName.SetAlpha(0);
            theMainMenu.children[0].children[0].theSkinName.SetTranslation(-1500, 255, -210);
            theMainMenu.children[0].children[0].theMainMenuClock.fade =0.7;
            theMainMenu.children[0].children[0].theMainMenuClock.SetAlpha(0);
            theMainMenu.children[0].children[0].theMainMenuClock.SetTranslation(1500, -250, -210);
        }
        else
        {
            theMainMenu.children[0].children[0].theSkinName.fade =0.3;
            theMainMenu.children[0].children[0].theSkinName.SetAlpha(1);
            theMainMenu.children[0].children[0].theSkinName.SetTranslation(330, 255, -210);
            theMainMenu.children[0].children[0].theMainMenuClock.fade =0.3;
            theMainMenu.children[0].children[0].theMainMenuClock.SetAlpha(1);
            theMainMenu.children[0].children[0].theMainMenuClock.SetTranslation(-360, -250, -210);
        }
        if (InBoardBack)
        {
            theMainMenu.children[0].children[0].ExtraPanel.fade = 0.3;
            theMainMenu.children[0].children[0].ExtraPanel.SetAlpha(1);
            theMainMenu.children[0].children[0].ExtraPanel.SetTranslation(500, 150, -210);
theMainMenu.children[0].children[0].theFreeEText.text = DDSpace[1] + DDType[1];
theMainMenu.children[0].children[0].theFreeFText.text = DDSpace[3] + DDType[3];
theMainMenu.children[0].children[0].theFreeGText.text = DDSpace[5] + DDType[5];
theMainMenu.children[0].children[0].theTotalEText.text = DDSpace[2] + DDType[2];
theMainMenu.children[0].children[0].theTotalFText.text = DDSpace[4] + DDType[4];
theMainMenu.children[0].children[0].theTotalGText.text = DDSpace[6] + DDType[6];
        }
        else
        {
            theMainMenu.children[0].children[0].ExtraPanel.fade = 0.3;
            theMainMenu.children[0].children[0].ExtraPanel.SetAlpha(0);
            theMainMenu.children[0].children[0].ExtraPanel.SetTranslation(2010, -1975, -1100);
        }
        if (theDiscDrive.discType == "unknown")
        {
            theMainMenu.children[0].children[0].theDVDText.text = "INCONNU";
        }
        else if (theDiscDrive.discType == "Audio")
        {
            theMainMenu.children[0].children[0].theDVDText.text = "CD AUDIO";
        }
        else if (theDiscDrive.discType == "Video")
        {
            theMainMenu.children[0].children[0].theDVDText.text = "DVD VIDEO";
        }
        else if (theDiscDrive.discType == "Title")
        {
            theMainMenu.children[0].children[0].theDVDText.text = "JEUX";
        }
        else
        {
            theMainMenu.children[0].children[0].theDVDText.text  = "NO DISC";
        }
        }
    }


search this :

QUOTE
control DEF theMainMenuJoy Joystick


and this :

QUOTE
function OnYDown()


make it look like this :

QUOTE
function OnYDown()
    {
  if (InBoardBack == true)
    {
       InBoardBack = false;
    }
    else if (InBoardBack == false)
    {
        InBoardBack = true;
    }
 
  }


after go to this :

QUOTE
DEF theMainMenu Level


and this :

QUOTE
function onLoad()


make it look like this :

QUOTE
function onLoad()
            {
DD = 8;
for (var ii = 1; ii < 7; ii = ii + 2)
{
freespace = ShowFreeSpaceOn(DD);
totalspace = ShowTotalSpaceOn(DD);
DDType[ii] = "Ko";
DDType[ii+1] = "Ko";
DDSpace[ii] = Math.round(freespace);
DDSpace[ii+1] = Math.round(totalspace);
if (freespace >= 1048576)
{
DDSpace[ii] = Math.round((freespace / 1024)/1024);
DDType[ii] = "Go";
}
else if (freespace < 1048576 & freespace > 1024)
{
DDSpace[ii] = Math.round(freespace / 1024);
DDType[ii] = "Mo";
}

if (totalspace >= 1048576)
{
DDSpace[ii+1] = Math.round((totalspace / 1024)/1024);
DDType[ii+1] = "Go";
}
else if (totalspace < 1048576 & totalspace > 1024)
{
DDSpace[ii+1] = Math.round(totalspace / 1024);
DDType[ii+1] = "Mo";
}
DD = DD + 1;
}

                    var c = theMainMenu.children[0].children[0];
                    if( g_bXOnDashExists )


just after search this :

QUOTE
GetSubmenuText();
                c.SubmenuText1.text = SubMenuItem1;
                c.SubmenuText2.text = SubMenuItem2;
                c.SubmenuText3.text = SubMenuItem3;
                c.SubmenuText4.text = SubMenuItem4;
                c.SubmenuText5.text = SubMenuItem5;


and make it look like this :

QUOTE
GetSubmenuText();
                c.SubmenuText1.text = SubMenuItem1;
                c.SubmenuText2.text = SubMenuItem2;
                c.SubmenuText3.text = SubMenuItem3;
                c.SubmenuText4.text = SubMenuItem4;
                c.SubmenuText5.text = SubMenuItem5;
            c.theKernelName.text = theConfig.GetROMVersion();
            c.theDashName.text = theConfig.GetXdashVersion();

                    UpdateMainMenu();


save and now open mainmenu5.xip/default.xap

go at the end and add this :

QUOTE
DEF ExtraPanel Transform
{
    children
    [
        DEF theScoreBoardPanelTwo_backing Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial
                        {
                            name "InnerWall_02"
                        }
                        texture ImageTexture
                        {
                            url "panel8.tga"
                            alpha true
                        }
                    }
                    geometry DEF theScoreBoardPanelTwo_backing_mesh Mesh { url "panel02_backing-FACES.xm" }
                }
            ]
            scale 0.95 1 0.98
            rotation -1.000000 0.004363 -0.004363 -1.571000
            translation -23.900000 14.000000 2.360000
        }
        DEF PanelTwo_header_A Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial { name "MenuCell" }
                    }
                    geometry DEF PanelTwo_header_A_mesh Mesh { url "panel02_header-FACES.xm" }
                }
            ]
            rotation -0.575700 -0.575700 -0.580700 -2.089000
            translation -6.646000 -7.603000 2.330000
        }
        DEF PanelTwo_header_B Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial { name "FlatSurfaces" }
                    }
                    geometry DEF PanelTwo_header_B_mesh Mesh { url "panel02_header-FACES.xm" }
                }
            ]
            rotation -0.575700 -0.575700 -0.580700 -2.089000
            translation -6.646000 -7.603000 2.330000
        }
        DEF Tube_One_A Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial { name "Tubes" }
                    }
                    geometry DEF Tube_One_A_mesh Mesh { url "tube_01-FACES.xm" }
                }
            ]
            rotation -0.575700 -0.575700 -0.580700 -2.089000
            translation 17.680000 -18.459999 13.620000
        }
        DEF Tube_Two_B Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial { name "Tubes" }
                    }
                    geometry DEF Tube_Two_B_mesh Mesh { url "tube_02-FACES.xm" }
                }
            ]
            rotation -0.575700 -0.575700 -0.580700 -2.089000
            translation 17.680000 -19.990000 13.620000
        }
        DEF PanelTwo_support_01_A Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial { name "MenuCell" }
                    }
                    geometry DEF PanelTwo_support_01_A_mesh Mesh { url "panel02_support_01-FACES.xm" }
                }
            ]
            rotation -0.003085 0.707100 0.707100 -3.148000
            translation -17.750000 0.642600 2.228000
        }
        DEF PanelTwo_support_01_B Transform
        {
            children
            [
                Shape
                {
                     appearance Appearance
                     {
                          material MaxMaterial { name "FlatSurfaces" }
                     }
                     geometry DEF PanelTwo_support_01_B_mesh Mesh { url "panel02_support_01-FACES.xm" }
                }
            ]
            rotation -0.003085 0.707100 0.707100 -3.148000
            translation -17.750000 0.642600 2.228000
        }
        DEF PanelTwo_support_03_A Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial { name "MenuCell" }
                    }
                    geometry DEF PanelTwo_support_03_A_mesh Mesh { url "panel02_support_03-FACES.xm" }
                }
            ]
            rotation 0.575700 -0.575700 0.580700 -2.089000
            translation -24.100000 -6.927000 2.178000
        }
        DEF PanelTwo_support_03_B Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance
                    {
                        material MaxMaterial { name "FlatSurfaces" }
                    }
                    geometry DEF panelTwo_support_03_B_mesh Mesh { url "panel02_support_03-FACES.xm" }
                }
            ]
            rotation 0.575700 -0.575700 0.580700 -2.089000
            translation -24.100000 -6.927000 2.178000
        }
        DEF theAvatar Transform
        {
            children
            [
               Shape
               {
                   appearance Appearance
                   {
                       material MaxMaterial
                       {
                          name "InnerWall_01"
                       }
                       texture ImageTexture
                       {
                           url "avatar.tga"
                           alpha true
                       }
                   }
                   geometry Box { size 1 1 0 }
               }
            ]
            rotation -6.5 0 0 3.15
            scale 4 8 4
            translation -21 -5 2
        }
        DEF theKernel Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "XBoxGreen"}}
                    geometry Text{ font "Heading" text "Kernel :" width -10 }
                }
            ]
            scale 1.4 1.6 1.6
            //rotation -1 0 0 -1.571
            translation -18.2 -1.3 0
        }
        DEF theKernelText Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "NavType" } }
                    geometry DEF theKernelName Text { font "Heading" text "Kernel"  width -21 }
                }
            ]
            //rotation 0 0 0.1 0.02
            scale 1.4 1.6 1.6
            translation -18.2 -3.3 0
        }
        DEF theDash Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "XBoxGreen"}}
                    geometry Text{ font "Heading" text "Dash :" width -10 }
                }
            ]
            scale 1.4 1.6 1.6
            //rotation -1 0 0 -1.571
            translation -18.2 -5.3 0
        }
        DEF theDASHText Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "NavType" } }
                    geometry DEF theDashName Text { font "Heading" text "Dashboard"  width -21 }
                }
            ]
            //rotation 0 0 0.1 0.02
            scale 1.4 1.6 1.6
            translation -18.2 -7.3 0
        }
        DEF theLine Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "XBoxGreen" } }
                    geometry Text { font "Heading" text "___________"  width -21 }
                }
            ]
            //rotation 0 0 0.1 0.02
            scale 1.4 1.6 1.6
            translation -18.2 -8.6 0
        }
        DEF theSpaceMenu Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "XBoxGreen"}}
                    geometry Text{ font "Heading" text "HDD PARTITION" width -10 }
                }
            ]
            scale 1.3 1.5 1.5
            //rotation -1 0 0 -1.571
            translation -24 -11 0
        }
DEF theE Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "XBoxGreen"}}
geometry Text{ font "Heading" text "E :" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -23 -13 0
}
DEF theEspace Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "NavType"}}
geometry DEF theFreeEText Text { font "body" justify "left" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -20.5 -13 0
}
DEF theEtotal Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "NavType"}}
geometry DEF theTotalEText Text { font "body" justify "left" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -16 -13 0
}
DEF theF Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "XBoxGreen"}}
geometry Text{ font "Heading" text "F :" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -23 -15 0
}
DEF theFspace Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "NavType"}}
geometry DEF theFreeFText Text { font "body" justify "left" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -20.5 -15 0
}
DEF theFtotal Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "NavType"}}
geometry DEF theTotalFText Text { font "body" justify "left" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -16 -15 0
}
DEF theG Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "XBoxGreen"}}
geometry Text{ font "Heading" text "G :" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -23 -17 0
}
DEF theGspace Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "NavType"}}
geometry DEF theFreeGText Text { font "body" justify "left" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -20.5 -17 0
}
DEF theGtotal Transform
{
children
[
Shape
{
appearance Appearance { material MaxMaterial { name "NavType"}}
geometry DEF theTotalGText Text { font "body" justify "left" width -10 }
}
]
scale 1.3 1.5 1.5
//rotation -1 0 0 -1.571
translation -16 -17 0
}
        DEF theDVD Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "XBoxGreen"}}
                    geometry Text{ font "Heading" text "DVD :" width -10 }
                }
            ]
            scale 1.4 1.6 1.6
            //rotation -1 0 0 -1.571
            translation -22 -19.5 0
        }
        DEF theDVDText Transform
        {
            children
            [
                Shape
                {
                    appearance Appearance { material MaxMaterial { name "NavType" } }
                    geometry DEF theDVDText Text { font "body" justify "middle" width -21 }
                }
            ]
            //rotation 0 0 0.1 0.02
            scale 1.4 1.6 1.6
            translation -15 -19.5 0
        }
    ]
    scale 35 17.5 17.5
    //rotation 0.2, 0.2, 0, -3.142
    translation 2010 -1975 -1100
}


that's all done you can enjoy !  wink.gif

and off course i'll search to add new panel everywhere ...  wink.gif

user posted image

love.gif  love.gif  love.gif
Logged

alphaxav

  • Archived User
  • Jr. Member
  • *
  • Posts: 73
Want This ?
« Reply #35 on: July 16, 2004, 01:53:00 PM »

QUOTE
and the other panels i posted will go along just like that. will look great...
if someone can do it...


yes i can !  biggrin.gif

i did it with memoryx panel !! wink.gif
Logged

RapBoy

  • Archived User
  • Full Member
  • *
  • Posts: 211
Want This ?
« Reply #36 on: July 16, 2004, 07:47:00 PM »

QUOTE (SSChevy2001 @ Jul 16 2004, 10:46 PM)
New Updated Picture Check Above

that looks awsome, post the code, sschevy..

i want, i want!  jester.gif
Logged

SSChevy2001

  • Archived User
  • Full Member
  • *
  • Posts: 126
Want This ?
« Reply #37 on: July 17, 2004, 01:53:00 AM »

New Update -> Item Count Added
user posted image
Logged

-WebSurfer-

  • Archived User
  • Jr. Member
  • *
  • Posts: 63
Want This ?
« Reply #38 on: July 17, 2004, 02:22:00 AM »

to hide manimenu and visible infopanel and inversely (effect ala memoryx), make look like this:


QUOTE
    function OnBDown()
   {
if (InBoardBack == true)
{
InBoardBack = false;
StopGameBoardView();
}
else if (InBoardBack == false)
{
InBoardBack = true;
StartGameBoardView();
}
   }


ok with your button wink.gif  my Y is for background change wink.gif

credits to me laugh.gif
Logged

adil786

  • Archived User
  • Sr. Member
  • *
  • Posts: 469
Want This ?
« Reply #39 on: July 17, 2004, 03:13:00 AM »

QUOTE (SSChevy2001 @ Jul 17 2004, 10:53 AM)
New Update -> Item Count Added
user posted image

nice skin,
Logged

xxwillisxx

  • Archived User
  • Sr. Member
  • *
  • Posts: 364
Want This ?
« Reply #40 on: July 17, 2004, 02:14:00 PM »

CODE

function OnArrival()
  {
    theSkinBackground.isBound = true;
  }
  behavior
  {
      sleep 0.1;
      if (children[0].children.length() > 0)
      {
if (InBoardBack)
      {
          theMainMenu.children[0].children[0].ExtraPanel.fade = 0.3;
          theMainMenu.children[0].children[0].ExtraPanel.SetAlpha(1);
          theMainMenu.children[0].children[0].ExtraPanel.SetTranslation(500, 150, -210);
          theMainMenu.children[0].children[0].Main_pod_backing02.fade =0.3;
          theMainMenu.children[0].children[0].Main_pod_backing02.SetAlpha(0);
          theMainMenu.children[0].children[0].Main_pod_backing02.SetTranslation(1500, -250, -210);
      }
      else if (bInGameBoardView == true)
      {
          theMainMenu.children[0].children[0].Main_pod_backing02.fade =0.3;
          theMainMenu.children[0].children[0].Main_pod_backing02.SetAlpha(0);
          theMainMenu.children[0].children[0].Main_pod_backing02.SetTranslation(1500, -250, -210);
      }
      else
      {
          theMainMenu.children[0].children[0].ExtraPanel.fade = 0.3;
          theMainMenu.children[0].children[0].ExtraPanel.SetAlpha(0);
          theMainMenu.children[0].children[0].ExtraPanel.SetTranslation(2010, -1975, -1100);
          theMainMenu.children[0].children[0].Main_pod_backing02.fade =0.3;
          theMainMenu.children[0].children[0].Main_pod_backing02.SetAlpha(1);
          theMainMenu.children[0].children[0].Main_pod_backing02.SetTranslation(-0.001126, 0.002803, 1.007000);
      }
      if (theDiscDrive.discType == "unknown")
      {
          c.theDVDName.text = "Disque Inconnu";
      }
      else if (theDiscDrive.discType == "Audio")
      {
          c.theDVDName.text = "CD Audio";
      }
      else if (theDiscDrive.discType == "Video")
      {
          c.theDVDName.text = "DVD Video";
      }
      else if (theDiscDrive.discType == "Title")
      {
          c.theDVDName.text = "Jeux ou Appli";
      }
      else
      {
          c.theDVDName.text = "Vide";
      }
      }
  }
}
Logged

-WebSurfer-

  • Archived User
  • Jr. Member
  • *
  • Posts: 63
Want This ?
« Reply #41 on: July 18, 2004, 06:40:00 AM »

QUOTE (xxwillisxx @ Jul 17 2004, 11:14 PM)
try this -WebSurfer-

CODE

function OnArrival()
  {
    theSkinBackground.isBound = true;
  }
  behavior
  {
      sleep 0.1;
      if (children[0].children.length() > 0)
      {
if (InBoardBack)
      {
          theMainMenu.children[0].children[0].ExtraPanel.fade = 0.3;
          theMainMenu.children[0].children[0].ExtraPanel.SetAlpha(1);
          theMainMenu.children[0].children[0].ExtraPanel.SetTranslation(500, 150, -210);
          theMainMenu.children[0].children[0].Main_pod_backing02.fade =0.3;
          theMainMenu.children[0].children[0].Main_pod_backing02.SetAlpha(0);
          theMainMenu.children[0].children[0].Main_pod_backing02.SetTranslation(1500, -250, -210);
      }
      else if (bInGameBoardView == true)
      {
          theMainMenu.children[0].children[0].Main_pod_backing02.fade =0.3;
          theMainMenu.children[0].children[0].Main_pod_backing02.SetAlpha(0);
          theMainMenu.children[0].children[0].Main_pod_backing02.SetTranslation(1500, -250, -210);
      }
      else
      {
          theMainMenu.children[0].children[0].ExtraPanel.fade = 0.3;
          theMainMenu.children[0].children[0].ExtraPanel.SetAlpha(0);
          theMainMenu.children[0].children[0].ExtraPanel.SetTranslation(2010, -1975, -1100);
          theMainMenu.children[0].children[0].Main_pod_backing02.fade =0.3;
          theMainMenu.children[0].children[0].Main_pod_backing02.SetAlpha(1);
          theMainMenu.children[0].children[0].Main_pod_backing02.SetTranslation(-0.001126, 0.002803, 1.007000);
      }
      if (theDiscDrive.discType == "unknown")
      {
          c.theDVDName.text = "Disque Inconnu";
      }
      else if (theDiscDrive.discType == "Audio")
      {
          c.theDVDName.text = "CD Audio";
      }
      else if (theDiscDrive.discType == "Video")
      {
          c.theDVDName.text = "DVD Video";
      }
      else if (theDiscDrive.discType == "Title")
      {
          c.theDVDName.text = "Jeux ou Appli";
      }
      else
      {
          c.theDVDName.text = "Vide";
      }
      }
  }
}

sorry xxwillisxx,

have look over this post...

but now you've post it in my new thread

thx
Logged

EBear

  • Archived User
  • Full Member
  • *
  • Posts: 100
Want This ?
« Reply #42 on: July 18, 2004, 01:39:00 PM »

tongue.gif Huh? Code the the THC original? I dont believe it, I wanna see this working on the original. Post the code brother!!
Logged

SSChevy2001

  • Archived User
  • Full Member
  • *
  • Posts: 126
Want This ?
« Reply #43 on: July 18, 2004, 02:50:00 PM »

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" }
                                                        }
Logged

coltxL2717

  • Archived User
  • Full Member
  • *
  • Posts: 170
Want This ?
« Reply #44 on: July 18, 2004, 11:24:00 PM »

Hey SSChevy2001 i keep getting eroor 21.  Ive tried your code 3 times with no luck.  Any help?
Logged
Pages: 1 2 [3] 4 5 ... 13