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 01-03-2007, 01:50 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Scrolltobottom Gui question

How can I get this to work, I have it in a timeout currently

PMG_Text_ @ thiso.ircChat.scrolltobottom();

I've tried a few things with no sucess so any thoughts from the Graal Scripting Community?
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 01-03-2007, 01:53 AM
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
What are you trying to do? What are PMG_Text_ and thiso.ircChat?
__________________
Skyld
Reply With Quote
  #3  
Old 01-03-2007, 01:54 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
PMG_Text is a GuiMLText line and thiso.ircChat is the name of whatever IRC Server the player has joined, and I want it to scroll to the bottom everytime the player sends a msg or something, I know it's not the best to put it in a timeout but I'm going to change when I figure out how it works
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 01-03-2007, 02:10 AM
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
So something like (@ "PMG_Text_" @ thiso.ircChat).scrollToBottom(); ?
__________________
Skyld
Reply With Quote
  #5  
Old 01-03-2007, 02:21 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
no :/
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 01-03-2007, 02:32 AM
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
Then explain better what you are trying to achieve, and why parts of what you're doing are relevant or whatever. The goal of this thread is cryptic. :/
__________________
Skyld
Reply With Quote
  #7  
Old 01-03-2007, 02:40 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
The weapon is basically like Kuji IRC except I modified it. I replaced GIRC with PMG. I just want the text box to scroll to the bottom everytime something gets added to it.

Kuji IRC

http://forums.graalonline.com/forums...ad.php?t=69121


To Kuji : Don't worry, I left your name in it ¬.¬
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 01-03-2007, 02:42 AM
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
If your question is where is the best place to put your .scrollToBottom(), then why not just put it in the event where the text is being received?

In this case, at the end of function onAddMsg()?

(Still not understanding what "PMG_Text_ @ thiso.ircChat.scrolltobottom();" is trying to do)
__________________
Skyld
Reply With Quote
  #9  
Old 01-03-2007, 02:46 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Skyld View Post
(Still not understanding what "PMG_Text_ @ thiso.ircChat.scrolltobottom();" is trying to do)
It's trying to get the text box to scroll down to the bottom, also my Gui programming isnt top notch either so that might be it too
__________________
Deep into the Darkness peering...
Reply With Quote
  #10  
Old 01-03-2007, 02:48 AM
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
Quote:
Originally Posted by Angel_Light View Post
It's trying to get the text box to scroll down to the bottom
But it doesn't make any sense.

If you want to scroll PMG_Text_foo, you must do this:
PHP Code:
thiso.ircChat "foo";
(@ 
"PMG_Text_" thiso.ircChat).scrollToBottom(); 
If you're not trying to do that, I've got no idea what you're trying to do, because "PMG_Text_ @ thiso.ircChat" will confuse the engine and certainly won't behave how you think.
__________________
Skyld
Reply With Quote
  #11  
Old 01-03-2007, 02:55 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Yay there it goes, Thank you Skyld
__________________
Deep into the Darkness peering...
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 04:40 PM.


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