QUOTE(ImOkRuOk @ Feb 3 2005, 01:09 AM)
Ok, I love this;) I also did the hide clock code with this, witch makes the panel hide, now just need to update to hide the clock in the opposite direction;) (hint hint)
Well assuming you are using evil_teds code to hide the clock and assuming you are using the info_panel code from above ( starts with //Custom Info Panel Code) then this should sort it out
find
CODE
function HideClock()
{
bClockVisable = false;
var w = theMainMenu.children[0].children[0];
w.theMainMenuClock.SetRotation(0, 2, 0, -3);
w.theMainMenuClock.fade = 1.0;
w.theMainMenuClock.SetTranslation(285.900002, -89.261000, -40.399994);
w.theMainMenuClock.fade = 0.75;
w.theMainMenuClock.SetAlpha(0);
thePlayerPanelIn.Play();
}
function ShowClock()
{
bClockVisable = true;
var w = theMainMenu.children[0].children[0];
w.theMainMenuClock.SetRotation(0, 0, 0, 0);
w.theMainMenuClock.fade = 1.0;
w.theMainMenuClock.SetTranslation(-360.1900002, -250.261000, -210.399994);
w.theMainMenuClock.fade = 0.75;
w.theMainMenuClock.SetAlpha(1);
thePlayerPanelOut.Play();
}
and change it to look like this:
CODE
function HideClock()
{
bClockVisable = false;
var w = theMainMenu.children[0].children[0];
w.theMainMenuClock.SetRotation(0, 2, 0, -3);
w.theMainMenuClock.fade = 1.0;
w.theMainMenuClock.SetTranslation(285.900002, -89.261000, -40.399994);
w.theMainMenuClock.fade = 0.75;
w.theMainMenuClock.SetAlpha(0);
w.theMainMenuInfo.SetRotation(0, 2, 0, -3);
w.theMainMenuInfo.fade = 1.0;
w.theMainMenuInfo.SetTranslation(-475.900002, -89.261000, -40.399994);
w.theMainMenuInfo.fade = 0.75;
w.theMainMenuInfo.SetAlpha(0);
thePlayerPanelIn.Play();
}
function ShowClock()
{
bClockVisable = true;
var w = theMainMenu.children[0].children[0];
w.theMainMenuClock.SetRotation(0, 0, 0, 0);
w.theMainMenuClock.fade = 1.0;
w.theMainMenuClock.SetTranslation(-360.1900002, -250.261000, -210.399994);
w.theMainMenuClock.fade = 0.75;
w.theMainMenuClock.SetAlpha(1);
w.theMainMenuInfo.SetRotation(0, 0, 0, 0);
w.theMainMenuInfo.fade = 1.0;
w.theMainMenuInfo.SetTranslation(170.1900002, -250.261000, -210.399994);
w.theMainMenuInfo.fade = 0.75;
w.theMainMenuInfo.SetAlpha(1);
thePlayerPanelOut.Play();
}
If in the HideClock function you change this line
CODE
w.theMainMenuInfo.SetTranslation(-475.900002, -89.261000, -40.399994);
to be
CODE
w.theMainMenuInfo.SetTranslation(285.900002, -89.261000, -40.399994);
Then both panels appear from and disappear to the same spot.
I prefer to use the info panel code with the urls back again so I get a backing panel on my info box.