Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Adding small window

Adding small window

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by JNKNM   (3 posts)  Bio
Date Wed 25 Jun 2014 11:29 AM (UTC)
Message
Hey folks,

I'm a newbie in plugins scripting (haven't made one myself from scratch, but modified a dozen - small changes mostly done by trial and error)
Is there an easy way to make simple script/modify existing one to create separate window and display there something that currently is displayed in world window (e.g. world.ColourNote/Tell)?

Many thanks for help in advance.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 25 Jun 2014 10:56 PM (UTC)
Message
This will probably answer your question:

http://www.gammon.com.au/forum/?id=9626

It shows making a miniwindow and showing the current exits. You could of course show anything you want in it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by JNKNM   (3 posts)  Bio
Date Reply #2 on Thu 26 Jun 2014 02:53 PM (UTC)
Message
This looks neat, but I thought about a plugin that prints in another small window, like e.g. Aardwolf does.

Maybe it'll be easier to explain by showing you a plugin that I want to modify.


https://gist.github.com/anonymous/4dff9122fee77e84dc23
This one shows health (kondycja) of all creatures at the location

https://gist.github.com/anonymous/35c863aab6735b783ad5
This one draws exits.

In short - I want whatever those plugins print in "world", to print in another window instead. Sorry for Polish in the code. :)
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 27 Jun 2014 06:03 AM (UTC)
Message
Quote:

I thought about a plugin that prints in another small window ...


That however is exactly how Aardwolf does it. It uses miniwindows for all their windows. They are highly configurable, you can make them any size. Look at some of the other "Getting Started" stuff, particularly the one about an inventory window. It shows how you can choose the exact size of the window depending on how much you have to show.

There is a module that lets you drag the window around with a couple of extra lines of code.

I suggest you start using Lua, it is much more flexible than VBscript.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by JNKNM   (3 posts)  Bio
Date Reply #4 on Fri 27 Jun 2014 06:31 AM (UTC)
Message
Yes. I guess I'll end up learning and using lua. So far I'm trying to modify someone else's scripts that I'm currently using to play, and they were using vbscript.

Thanks for help!
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,553 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.