Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-13-2007, 09:02 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #2  
Old 07-13-2007, 09:04 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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).
__________________
Skyld
Reply With Quote
  #3  
Old 07-13-2007, 09:37 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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).
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #4  
Old 07-13-2007, 11:49 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Toy with:
Serverlist_TaskBar
Serverlist_Taskbar_Menu

Don't blame me if you get in trouble though!
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 07-14-2007, 12:16 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #6  
Old 07-14-2007, 12:36 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
If only somebody would convert that to GS1..
Reply With Quote
  #7  
Old 07-14-2007, 12:47 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by LoneAngelIbesu View Post
If only somebody would convert that to GS1..
You CANT convert that to GS1 actually.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 07-14-2007, 03:25 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #9  
Old 07-14-2007, 03:30 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
yeah, that's why I wanted to check the visibility of the serverlist instead of just toggling visibility.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #10  
Old 07-15-2007, 07:00 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
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.
__________________
Do it with a DON!
Reply With Quote
  #11  
Old 07-15-2007, 07:06 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by zokemon View Post
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.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:07 AM.


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