Help - Search - Members - Calendar
Full Version: Resizing Info Panel
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
DJ KooPee
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)
XxXDarkwraitHXxX
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.
DJ KooPee
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...
DJ KooPee
PICS STILL WON'T SHOW, IGNORE THIS POST!!!
slick50zd
QUOTE(DJ KooPee @ Jul 2 2005, 01:44 PM)
Thanx to mr modem for the info panel code
*



hmm better remember who originally wrote that code....., nah just messin with yah i dont really mind about credit
DJ KooPee
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!!!
slick50zd
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
lcapitan
lol, are you kidding!!!?? Im still somewhat of a noob, but I love the code forums
midas
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.
DJ KooPee
I never notice that!!!

Even though I saw that text in the info panel about 5 times when I was playing with it...
midas
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 . . . . .
midas
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
DJ KooPee
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???
KyesaRRi
All of the new code is in the .nfo that came with UIX

theConfig.GetInternalTemp()
midas
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.
DJ KooPee
^^
Yeah, for some reason my computers stopped reading .nfo's...

Always comes up with 'incompatible version' or something...
KyesaRRi
Notepad is the key
midas
QUOTE(KyesaRRi @ Jul 13 2005, 10:16 AM)
Notepad is GOD
*



FIXED
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.