Graal Forums

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

xAndrewx 10-21-2006 08:38 PM

ChatBar
 
Well, I'm trying to manipulate my player's chat bar.
However, I can't seem to get do the following:
  • Move anyplace
  • Instead of a background, give the chatbox a border
I don't suppose anyone has any idea how to do this?
(I don't want to make my own!)

KuJi 10-21-2006 08:56 PM

Quote:

Originally Posted by xAndrewx (Post 1233951)
Well, I'm trying to manipulate my player's chat bar.
However, I can't seem to get do the following:
  • Move anyplace
  • Instead of a background, give the chatbox a border
I don't suppose anyone has any idea how to do this?
(I don't want to make my own!)

ChatBar.pos = {0, 150};
ChatBar.profile = "PROFILEIMGMAYB";

?

xAndrewx 10-21-2006 08:56 PM

Quote:

Originally Posted by KuJi (Post 1233969)
ChatBar.pos = {0, 150};
ChatBar.profile = "PROFILEIMGMAYB";

?

Hey you!
I'll try the profile, I mean the canMove = true; :p

KuJi 10-21-2006 08:59 PM

Quote:

Originally Posted by xAndrewx (Post 1233970)
Hey you!
I'll try the profile, I mean the canMove = true; :p

Haha, hey.. just got unbant ;). And my internets almost fixed lol.

ChatBar.canMove = true;?

Wouldn't it be easier to:
PHP Code:

function onCreated()
{
  
ChatBar.Destroy();

  new 
GuiCtrlShiz("ChatBar")
  {
    
canmove true;
    
// ETC
  
}
}

function 
ChatBar.onAction()
{
  
player.chat ChatBar.text;
  
ChatBar.text "";



xAndrewx 10-21-2006 09:03 PM

True, but I don't really want to make a new one :p
I was looking for a way to be able to edit a gui

KuJi 10-21-2006 09:08 PM

Quote:

Originally Posted by xAndrewx (Post 1233978)
True, but I don't really want to make a new one :p
I was looking for a way to be able to edit a gui

PHP Code:

with (ChatBar)
{



xAndrewx 10-21-2006 09:19 PM

Still, doesn't fix the canmove :(

KuJi 10-21-2006 09:20 PM

Quote:

Originally Posted by xAndrewx (Post 1233989)
Still, doesn't fix the canmove :(

Hmm... can u code your custom one to detect your mouse x/y then?

xAndrewx 10-21-2006 09:22 PM

I could do a custom one, I wouldn't want too though :P


Ok, so i've decided to make my own. How would I use my own sprite sheet?

Skyld 10-22-2006 04:01 PM

I think you might be looking for the Control.editing = true; attribute. It is an attribute designed for use with the GUI editor which allows you to drag, resize (, etc) controls.

xAndrewx 10-22-2006 07:51 PM

Yay, Skyld you're a star =]

KuJi 10-22-2006 08:46 PM

Quote:

Originally Posted by Skyld (Post 1234308)
I think you might be looking for the Control.editing = true; attribute. It is an attribute designed for use with the GUI editor which allows you to drag, resize (, etc) controls.

Walaa, coolio


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

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