Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hide the graal5 taskbar? (https://forums.graalonline.com/forums/showthread.php?t=75314)

JkWhoSaysNi 07-13-2007 09:02 PM

Hide the graal5 taskbar?
 
Well that sure is annoying. I want to hide it as it was in graal4. It seems entirely pointless to me.

I'm hoping i can change it as is possible with the chatbar, but i need the objects name.

Skyld 07-13-2007 09:04 PM

Users can minimize the bar if they want to. Why do you need to permanently hide it for them?

The bar also does not take up GraalControl space (it is not overlapping in-game content).

JkWhoSaysNi 07-13-2007 09:37 PM

Which is even more of a problem :P

I wrote a chat system which sits at the bottom of the screen and is already too tall ;)

Even though it's at the bottom of the graalcontrol the user has even less space because of the added start bar.

I wish to disable it (or at least style it so it matches my GUI graphics).

zokemon 07-13-2007 11:49 PM

Toy with:
Serverlist_TaskBar
Serverlist_Taskbar_Menu

Don't blame me if you get in trouble though!

JkWhoSaysNi 07-14-2007 12:16 AM

trouble?

thanks, I figured out how to hide it:

PHP Code:

this.gcheight screenheight Serverlist_TaskBar.height;
 
Serverlist_TaskBar.hide();
GraalControl.height this.gcheight

Now, I want to restore it when F1 is pressed

PHP Code:

function onKeyPressed() {
 if (
params[0] == 112) {
     
Serverlist_TaskBar.show();
     
GraalControl.height -= ServerList_TaskBar.height;
 }


Ideally I want a way to in there to check whether the serverlist is visible, but I don't know the names for the controls in the serverlist.

LoneAngelIbesu 07-14-2007 12:36 AM

If only somebody would convert that to GS1..

xXziroXx 07-14-2007 12:47 AM

Quote:

Originally Posted by LoneAngelIbesu (Post 1329456)
If only somebody would convert that to GS1..

You CANT convert that to GS1 actually.

Inverness 07-14-2007 03:25 AM

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.

JkWhoSaysNi 07-14-2007 03:30 AM

yeah, that's why I wanted to check the visibility of the serverlist instead of just toggling visibility.

zokemon 07-15-2007 07:00 AM

Quote:

Originally Posted by Inverness (Post 1329558)
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.

Inverness 07-15-2007 07:06 AM

Quote:

Originally Posted by zokemon (Post 1330582)
Damn man...why the long script? That could easily be done in 4 lines or so.

I don't care, its not like its important.


All times are GMT +2. The time now is 12:47 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.