Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-26-2008, 05:08 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Chat bar always visible

How can you make ChatBar always visible? I'm modifying it for my GUI, but the problem is ... it still shows and hides on tab. I've tried an onHide() and a timeout, but they both lag slightly, which looks horrible.

I thought I've done this before, but I don't remember how.

Thanks!
__________________
Reply With Quote
  #2  
Old 05-26-2008, 01:48 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The chat bar is automatically shown/hidden by the serverlist script, we could add some option (global variable) to make it stuck or so if you want
Reply With Quote
  #3  
Old 05-26-2008, 03:36 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stefan View Post
The chat bar is automatically shown/hidden by the serverlist script, we could add some option (global variable) to make it stuck or so if you want
Yes, please.

Especially since it's impossible to make chat stick on your player for more than like 5 seconds if you set player.chat.
__________________
Reply With Quote
  #4  
Old 05-26-2008, 05:10 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
I just make it non visible constantly and make my own
__________________

Reply With Quote
  #5  
Old 05-26-2008, 05:25 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Robin View Post
I just make it non visible constantly and make my own
I recreated it, but I want to make chat last longer
__________________
Reply With Quote
  #6  
Old 05-26-2008, 05:39 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
I recreated it, but I want to make chat last longer
Theres a similar thread about that problem. I would actually like to have a function like it is described in the thread, would make it much easier to create custom chat stuff.
Reply With Quote
  #7  
Old 05-26-2008, 05:42 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Crow View Post
Theres a similar thread about that problem. I would actually like to have a function like it is described in the thread, would make it much easier to create custom chat stuff.
I know, I posted in it.

I was originally trying just to make it always visible; now I'm forced to make a custom chat system instead.

I agree, would be great if that was implemented, and just remove toalls together as they are rarely used, or just make sure you can't send a toall.
__________________
Reply With Quote
  #8  
Old 05-27-2008, 12:08 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 cbk1994 View Post
I was originally trying just to make it always visible; now I'm forced to make a custom chat system instead.
Why? Cant you make your own chat bar GUI, and do something like:

PHP Code:
function MyChatBar.onAction()
{
  
ChatBar.text MyChatBar.text;
  
ChatBar.onAction();

  
// Or...?
  
ChatBar.scheduleevent(.05"Action"MyChatBar.text);

Untested, and doubt either of them will work, but worth a shot
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 05-27-2008 at 12:19 AM..
Reply With Quote
  #9  
Old 05-27-2008, 12:39 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I wish

I tried both of those before, neither work.
__________________
Reply With Quote
  #10  
Old 05-28-2008, 08:29 AM
Worship Worship is offline
Registered User
Join Date: May 2008
Posts: 4
Worship is on a distinguished road
You can use "ChatBar.visible = true;" in a timeout.
Reply With Quote
  #11  
Old 05-28-2008, 08:34 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
player.chat is always cleared 3 seconds after it's changed. ALWAYS.

Make player.chat = player.customchat in a timeout if you want to make it last longer.
__________________

Reply With Quote
  #12  
Old 05-28-2008, 02:21 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Robin View Post
player.chat is always cleared 3 seconds after it's changed. ALWAYS.
nope, doesn't clear my chat
__________________
Reply With Quote
  #13  
Old 05-29-2008, 01:39 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by cbk1994 View Post
I've tried a timeout, but it lags slightly, which looks horrible.
Quote:
Originally Posted by Worship View Post
You can use "ChatBar.visible = true;" in a timeout.
READ -> THINK -> POST

Quote:
Originally Posted by Robin View Post
player.chat is always cleared 3 seconds after it's changed. ALWAYS.

Make player.chat = player.customchat in a timeout if you want to make it last longer.
Not when using the default chat bar.
__________________
Reply With Quote
  #14  
Old 05-29-2008, 02:57 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
Not when using the default chat bar.
Exactly that, Stefan stated before that it only lasts longer when using the default chat bar because it's a secured process locked to exactly that script.
Reply With Quote
  #15  
Old 05-29-2008, 10:17 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Crow View Post
Exactly that, Stefan stated before that it only lasts longer when using the default chat bar because it's a secured process locked to exactly that script.
I know. That's why I want him to fix it

Not like we could use a time out to make it last longer if we REALLY wanted to display a bad message.
__________________
Reply With Quote
  #16  
Old 05-30-2008, 01:52 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
I know. That's why I want him to fix it

Not like we could use a time out to make it last longer if we REALLY wanted to display a bad message.
Well, when redoing the chatbar on Esteria back then I had a custom chat gani, so I just killed that restriction, but that's really way too much work to just get around such a small thing.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:50 PM.


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