Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Scrolltobottom Gui question (https://forums.graalonline.com/forums/showthread.php?t=71189)

Angel_Light 01-03-2007 01:50 AM

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?

Skyld 01-03-2007 01:53 AM

What are you trying to do? What are PMG_Text_ and thiso.ircChat?

Angel_Light 01-03-2007 01:54 AM

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

Skyld 01-03-2007 02:10 AM

So something like (@ "PMG_Text_" @ thiso.ircChat).scrollToBottom(); ?

Angel_Light 01-03-2007 02:21 AM

no :/

Skyld 01-03-2007 02:32 AM

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. :/

Angel_Light 01-03-2007 02:40 AM

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 ¬.¬

Skyld 01-03-2007 02:42 AM

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)

Angel_Light 01-03-2007 02:46 AM

Quote:

Originally Posted by Skyld (Post 1260175)
(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

Skyld 01-03-2007 02:48 AM

Quote:

Originally Posted by Angel_Light (Post 1260177)
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.

Angel_Light 01-03-2007 02:55 AM

Yay there it goes, Thank you Skyld :)


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

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