Chat miniwindow?

Posted by Zirix on Wed 27 Apr 2016 02:25 AM — 10 posts, 38,890 views.

#0
How would I go about creating a miniwindow that captures channel lines? Preferably a scrollable window, doesn't need to be resizable or movamble as I'm placing the window locations manually. I assume it would somehow work with sending matched trigger line to a new window somehow?

Examples of the kind of lines I would want to capture are.
Zirix [newbie]: testing
Zirix [chat]: testing 123
Zirix [wanted]: test 123
[chat]: Zirix goes 'Mmmmm..'.


Probably also notable that each channel does have their own channel colour that runs through the whole messages (naturally sometimes multi-line due to message length). Although when checking 'last chat/newbie/wanted/etc..' they have a timestamp in front of the message that doesn't have the colour.
(06:36) Zirix [chat]: Testing 123
Amended on Wed 27 Apr 2016 02:35 AM by Zirix
USA #1
See this thread.
http://www.gammon.com.au/forum/?id=10728&reply=5#reply5
#2
Thanks for the link but that seems way out of my skill level to modify and I have no need for resizing or moving the window as I'd rather place its location and size manually.
Australia Forum Administrator #3
All you basically have to do is use the code in reply #5 in the link above, and change the triggers to match whatever your MUD sends. The relevant lines are in bold in the post.
USA #4
I've edited the <script> portion of it, removing the drag handlers, resizers, and resizer functions no longer used while adding a couple more variables so you can set the window positions easily.

There is one thing I couldn't quite figure out, and that is where the window resizer widget was, there is now a gap there. Need to expand the scroll bar part of it, and move the button down to where the gap was (and also edit the lines). Perhaps someone else here can help out with that?

If you don't mind the little gap in it...
I had to take some spaces out so it would allow me to post it below, due to the 6000 character limit.

EDIT: Couldn't get it to post even after removing a bunch of the spaces. So here it is on pastebin.
http://pastebin.com/SR7D4f03

Anyways, just set these to whatever.

WINDOW_WIDTH = 600
WINDOW_HEIGHT = 100
WINDOW_LEFT = 0
WINDOW_TOP = 0
Amended on Thu 28 Apr 2016 01:19 AM by Wuggly
#5
Thanks to the both of you! Works perfectly now.
USA #6
By the way. If you are making like a layout, you could always draw whatever mini-window is under it after drawing the chat mini-window to cover up that gap.

I had some more time and looked back into my own plugin to see how I solved the gap issue, and turns out I just covered it up with another mini-window lol.

Glad you got it all working.
#7
Yep I'm working on getting all kinds of useful miniwindows into a layout currently. http://i64.tinypic.com/nnadls.jpg is what I have so far and later I hope to add an inventory window and possibly a window showing currently active buffs/debuffs.
Amended on Fri 29 Apr 2016 01:46 PM by Zirix
USA Global Moderator #8
Zirix said:

Yep I'm working on getting all kinds of useful miniwindows into a layout currently. https://www.dropbox.com/s/wtfmxg3in7rizh3/Screenshot%202016-04-28%2014.41.57.png?dl=0 is what I have so far and later I hope to add an inventory window and possibly a window showing currently active buffs/debuffs.

That's a broken link for me.
#9
Fiendish said:

Zirix said:

Yep I\'m working on getting all kinds of useful miniwindows into a layout currently. https://www.dropbox.com/s/wtfmxg3in7rizh3/Screenshot%202016-04-28%2014.41.57.png?dl=0 is what I have so far and later I hope to add an inventory window and possibly a window showing currently active buffs/debuffs.

That\'s a broken link for me.


Oh must have deleted the link when cleaning up old dropbox links, edited with a tinypic link.