Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Chat bar always visible (https://forums.graalonline.com/forums/showthread.php?t=79832)

cbk1994 05-26-2008 05:08 AM

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!

Admins 05-26-2008 01:48 PM

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

cbk1994 05-26-2008 03:36 PM

Quote:

Originally Posted by Stefan (Post 1392446)
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.

Robin 05-26-2008 05:10 PM

I just make it non visible constantly and make my own :)

cbk1994 05-26-2008 05:25 PM

Quote:

Originally Posted by Robin (Post 1392476)
I just make it non visible constantly and make my own :)

I recreated it, but I want to make chat last longer :cry:

Crow 05-26-2008 05:39 PM

Quote:

Originally Posted by cbk1994 (Post 1392485)
I recreated it, but I want to make chat last longer :cry:

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.

cbk1994 05-26-2008 05:42 PM

Quote:

Originally Posted by Crow (Post 1392499)
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.

xXziroXx 05-27-2008 12:08 AM

Quote:

Originally Posted by cbk1994 (Post 1392505)
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 :)

cbk1994 05-27-2008 12:39 AM

I wish :(

I tried both of those before, neither work.

Worship 05-28-2008 08:29 AM

You can use "ChatBar.visible = true;" in a timeout.

Robin 05-28-2008 08:34 AM

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.

Chompy 05-28-2008 02:21 PM

Quote:

Originally Posted by Robin (Post 1392944)
player.chat is always cleared 3 seconds after it's changed. ALWAYS.

nope, doesn't clear my chat

cbk1994 05-29-2008 01:39 AM

Quote:

Originally Posted by cbk1994 (Post 1392419)
I've tried a timeout, but it lags slightly, which looks horrible.

Quote:

Originally Posted by Worship (Post 1392942)
You can use "ChatBar.visible = true;" in a timeout.

READ -> THINK -> POST

Quote:

Originally Posted by Robin (Post 1392944)
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.

Crow 05-29-2008 02:57 PM

Quote:

Originally Posted by cbk1994 (Post 1393112)
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.

cbk1994 05-29-2008 10:17 PM

Quote:

Originally Posted by Crow (Post 1393166)
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.


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

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