Quote:
Originally Posted by Inverness
PHP Code:
function onCreated() {
hideTaskBar();
}
public function hideTaskBar() {
temp.newh = screenheight + Serverlist_TaskBar.height;
Serverlist_TaskBar.visible = false;
Serverlist_TaskButton_Toggle.visible = false; // stay always off
GraalControl.height = newh;
}
public function showTaskBar() {
Serverlist_TaskBar.visible = true;
GraalControl.height -= Serverlist_TaskBar.height;
}
function onKeyPressed() {
if (params[0] == 112) {
if (Serverlist_TaskBar.visible == false) {
showTaskBar();
}
else {
hideTaskBar();
}
}
}
Just make sure you dont have the serverlist open on creation, or things get mixed up.
|
Damn man...why the long script? That could easily be done in 4 lines or so.