Jump to content


Photo

Resizing Info Panel


  • Please log in to reply
17 replies to this topic

#1 DJ KooPee

DJ KooPee

    X-S X-perience

  • Members
  • PipPip
  • 376 posts
  • Location:Good Old Blighty!!!
  • Interests:Gaming, Modding, Drinking...
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 02 July 2005 - 06:57 PM

I need a little help with this...

Currently looks like this:
user posted image

Code for panel:
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 0
scale 70.000000 100.000000 40.000000
translation -325.1900002 -140.261000 -210.399994
}

How do i remove the extra 2 lines???

(The very bottom scale alters the whole thing, so that don't work)

Edited by DJ KooPee, 02 July 2005 - 06:59 PM.


#2 XxXDarkwraitHXxX

XxXDarkwraitHXxX

    X-S Expert

  • Members
  • PipPipPip
  • 650 posts
  • Location:SoCal
  • Xbox Version:v1.6b
  • 360 version:v4.0 (jasper)

Posted 02 July 2005 - 09:25 PM

Well, that's the code that make it visible. To remove the extra 2 lins you have to alter the extra code in the default.xip/default.xap. Post that if you can.

#3 DJ KooPee

DJ KooPee

    X-S X-perience

  • Members
  • PipPip
  • 376 posts
  • Location:Good Old Blighty!!!
  • Interests:Gaming, Modding, Drinking...
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 02 July 2005 - 09:33 PM

Already altered default.xip/default.xap...

Been playing around since I last posted...

Resized info panel for 3 lines....

Gotta love trial & error!!!

Thanx to mr modem for the info panel code

This is just the code for the panel in main_menu.xip/default.xap
CODE
// info panel start

DEF theMainMenuClock Transform
{
children
[
// solid backing
//  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
//  }
//top section of box
 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.190400
 translation 0.882600 -0.65 1.655000
 }
// DO NOT REMOVE - INFO PANEL TEXT
 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.650000 1.600000
 }
// left side piece
//  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
//  }
// middle box
 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.190400
 translation -0.506800 -0.900000 1.654000
 }
// bottom piece
 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.175000 0.290400 0.290400
 scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
 translation -1.519000 -1.635000 1.657000
 }
// DO NOT REMOVE - XBOX TEXT
 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
 translation 2.779000 0 1.657000
 }
//Panel text
 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 .750000 .750000 .750000
 translation -0.820000 -1 1.654000
 }

]
rotation 0 0 0 0
scale 70.000000 100.000000 40.000000
translation -350.1900002 -150.261000 -210.399994
}

// info panel end

Check the info panel topic for the full panel code (its on page 5, seperated into 5 posts, credits to mr modem)

Note: this gives a transparent panel, as you can see i //'d some of the code out...

If any1 needs help with the rest of the panel, give us a shout...


#4 DJ KooPee

DJ KooPee

    X-S X-perience

  • Members
  • PipPip
  • 376 posts
  • Location:Good Old Blighty!!!
  • Interests:Gaming, Modding, Drinking...
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 04 July 2005 - 06:16 PM

PICS STILL WON'T SHOW, IGNORE THIS POST!!!

Edited by DJ KooPee, 04 July 2005 - 06:16 PM.


#5 slick50zd

slick50zd

    X-S Member

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

Posted 05 July 2005 - 09:30 PM

QUOTE(DJ KooPee @ Jul 2 2005, 01:44 PM)
Thanx to mr modem for the info panel code

View Post



hmm better remember who originally wrote that code....., nah just messin with yah i dont really mind about credit

#6 DJ KooPee

DJ KooPee

    X-S X-perience

  • Members
  • PipPip
  • 376 posts
  • Location:Good Old Blighty!!!
  • Interests:Gaming, Modding, Drinking...
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 06 July 2005 - 10:54 AM

soz, slick50zd, gave credit to mr modem because he posted the full mod I used...

Should credit you as well for the original codes, i think mr modem just cleaned it up & spelled it out for the noobs like me!!!

#7 slick50zd

slick50zd

    X-S Member

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

Posted 06 July 2005 - 10:26 PM

yah its allright man, towards the end me and modem were workin together so it doesnt really matter, but both of us have kinda moved on, it was just ashame these code forums lost so much interest

#8 lcapitan

lcapitan

    X-S X-perience

  • Members
  • PipPip
  • 318 posts
  • Location:Jersey Baby!
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 06 July 2005 - 11:49 PM

lol, are you kidding!!!?? Im still somewhat of a noob, but I love the code forums

#9 midas

midas

    X-S Senior Member

  • Members
  • PipPip
  • 271 posts
  • Location:Galveston, TX
  • Interests:boom.
  • Xbox Version:v1.4

Posted 09 July 2005 - 02:59 PM

Am I the only one who noticed this?

CODE
children
   [
    Shape
    {
     appearance Appearance
     {
      material MaxMaterial
      {
      name "NavType"
      }
     }
    geometry Text { font "body" justify "right" translate false text "slick50zd" }
    }


geometry Text { font "body" justify "right" translate false text "slick50zd" }

Guess we know who's code was hi-jacked. lol.

#10 DJ KooPee

DJ KooPee

    X-S X-perience

  • Members
  • PipPip
  • 376 posts
  • Location:Good Old Blighty!!!
  • Interests:Gaming, Modding, Drinking...
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 09 July 2005 - 03:19 PM

I never notice that!!!

Even though I saw that text in the info panel about 5 times when I was playing with it...

#11 midas

midas

    X-S Senior Member

  • Members
  • PipPip
  • 271 posts
  • Location:Galveston, TX
  • Interests:boom.
  • Xbox Version:v1.4

Posted 11 July 2005 - 10:40 PM

I found a slight error. I noticed that there was XBOX floating below my orb. I double checked to make sure that it wasn't my fault, and I pin-pointed it to here:

CODE
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
translation 2.779000 0 1.657000


it should be:

CODE
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


I don't know why you had that commented out but . . . . .

#12 midas

midas

    X-S Senior Member

  • Members
  • PipPip
  • 271 posts
  • Location:Galveston, TX
  • Interests:boom.
  • Xbox Version:v1.4

Posted 11 July 2005 - 11:06 PM

OK i was a little off. It should be:
CODE

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
translation 2.779000 -1.82 1.657000


#13 DJ KooPee

DJ KooPee

    X-S X-perience

  • Members
  • PipPip
  • 376 posts
  • Location:Good Old Blighty!!!
  • Interests:Gaming, Modding, Drinking...
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 12 July 2005 - 12:34 PM

Yeah, think I just removed the 'XBOX' text in either default.xip/default.xap or default.xip/config.xap (I forget which)...

Current project is two info panels: one for free space & one for system info. Will post back when i'm done...

P.S. Any1 know the code for HDD temp???

#14 KyesaRRi

KyesaRRi

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,576 posts
  • Location:Australia
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 12 July 2005 - 04:03 PM

All of the new code is in the .nfo that came with UIX

theConfig.GetInternalTemp()

#15 midas

midas

    X-S Senior Member

  • Members
  • PipPip
  • 271 posts
  • Location:Galveston, TX
  • Interests:boom.
  • Xbox Version:v1.4

Posted 13 July 2005 - 12:26 AM

I was working on a selectable through config info panel, either 3 or five lines, but i got a little lost. . . . so i gave up. lol. I had to DEF's for the info panel, one theMainMenuClock(original five line), and one for theMainMenuClockThree(obviously the three line one) but i could never get the right visiblity's set so that you could use the code for disabling the info panel on boot.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users