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 10-21-2006, 08:38 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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!)
__________________
Reply With Quote
  #2  
Old 10-21-2006, 08:56 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by xAndrewx View Post
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";

?
Reply With Quote
  #3  
Old 10-21-2006, 08:56 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by KuJi View Post
ChatBar.pos = {0, 150};
ChatBar.profile = "PROFILEIMGMAYB";

?
Hey you!
I'll try the profile, I mean the canMove = true;
__________________
Reply With Quote
  #4  
Old 10-21-2006, 08:59 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by xAndrewx View Post
Hey you!
I'll try the profile, I mean the canMove = true;
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 "";

Reply With Quote
  #5  
Old 10-21-2006, 09:03 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
True, but I don't really want to make a new one
I was looking for a way to be able to edit a gui
__________________
Reply With Quote
  #6  
Old 10-21-2006, 09:08 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by xAndrewx View Post
True, but I don't really want to make a new one
I was looking for a way to be able to edit a gui
PHP Code:
with (ChatBar)
{

Reply With Quote
  #7  
Old 10-21-2006, 09:19 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Still, doesn't fix the canmove
__________________
Reply With Quote
  #8  
Old 10-21-2006, 09:20 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by xAndrewx View Post
Still, doesn't fix the canmove
Hmm... can u code your custom one to detect your mouse x/y then?
Reply With Quote
  #9  
Old 10-21-2006, 09:22 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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?
__________________

Last edited by xAndrewx; 10-22-2006 at 10:00 AM..
Reply With Quote
  #10  
Old 10-22-2006, 04:01 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
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.
Reply With Quote
  #11  
Old 10-22-2006, 07:51 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Yay, Skyld you're a star =]
__________________
Reply With Quote
  #12  
Old 10-22-2006, 08:46 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Skyld View Post
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
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 05:41 AM.


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