Adding small window

Posted by JNKNM on Wed 25 Jun 2014 11:29 AM — 5 posts, 19,997 views.

#0
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.
Australia Forum Administrator #1
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.
#2
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. :)
Australia Forum Administrator #3
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.
#4
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!