Graal Forums

Graal Forums (http://forums.graalonline.com/forums/index.php)
-   NPC Scripting (http://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   ChatBar Changes (http://forums.graalonline.com/forums/showthread.php?t=134267480)

sssssssssss 12-01-2012 06:46 PM

ChatBar Changes
 
I thought I had seen it before but can't seem to find it now.....

What are the things to change the default chatbar look ect? Also can it's location be changed?

Along with that, I have a gui window towards the bottom and it lays over the default chat bar. I have the window on layer 4, and have tried ChatBar.layer = 6; or something, but the chatbar stays behind it. Any pointers?

Tigairius 12-01-2012 07:04 PM

The ChatBar is a GuiTextEditCtrl and you can access it just like one. The object's name is "ChatBar". Example:

Graal Script Code:

with (ChatBar) {
  
useOwnProfile true;
  
profile.fillColor "0, 0, 0, 255";


And one other:

Graal Script Code:

function ChatBar.onAction() {
  if (
ChatBar.text == "/command") {
    
// do command here

    
ChatBar.text "";
  }


As far as the GUI laying over the ChatBar, try calling ChatBar.showTop()

sssssssssss 12-01-2012 07:13 PM

what about it popping under a gui window? I've tried setting the layer like said above, like any other gui, but its a no go.

Tigairius 12-01-2012 07:14 PM

Quote:

Originally Posted by sssssssssss (Post 1708391)
what about it popping under a gui window? I've tried setting the layer like said above, like any other gui, but its a no go.

Use GuiControl.bringtofront() or GuiControl.showtop()
Graal Script Code:

function ChatBar.onShow() {
  
ChatBar.bringToFront();



sssssssssss 12-01-2012 07:40 PM

Thank you. Can't believe I missed that.. xD


All times are GMT +2. The time now is 04:41 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.