Mini-window Chat

Posted by Halig on Tue 10 Mar 2015 11:10 AM — 12 posts, 41,006 views.

Portugal #0
Hello to all.
I've been looking for a mini-window that saves the chat's on the MUD. I know that they are lot's of examples there, i'm trying to get the one from Fiendish to work.
I only need 5 channels, pray, tell, imm, hero and clan.
The syntax are as follow:

(.*) tells you (.*) - Tell channel
[(.*)]: (.*) - Imm channel
(.*) HEROs (.*) - Hero channel
(.*) Prays: (.*) - Pray channel
[(.*)] (.*) Clans: (.*) - Clan channel

Fiendish, if you could help me changing you plugin, cause i love the scroll bar and the fact that it keeps the colours that are originaly in the Output window.
Thank you.
Australia Forum Administrator #1
Just change the triggers it matches on. Have you tried that?
Portugal #2
Yes Nick, i did. But there are variables, functions more down that call things related to the channels that Fiendish uses. That's why i asked. Cause i only need those channels and the fact that his window has scroll, and that is important to me.
And i can't find the dependencies, like *.lua that he uses. I found one of them, and lot's of errors stop appearing, but there are more files that i'm missing.
USA Global Moderator #3
Are you trying to modify the one from the Aardwolf package itself or the one that Nick posted to the forum here a while ago?
Portugal #4
The one from the Aardwolf. I've search the forum, i didn't find anyone like yours, that keeps the original colour of the channel and that has scroll. That's the things i need, only that. The things if you right click, i don't need. I need to keep it simple.
Thank you
Portugal #5
Thank you the both of you. I've manage to get the one from Nick's working. It took me a while, but it is working :).
USA Global Moderator #6
Yeah, the one from Aardwolf package has a lot of code like GMCP handlers and stuff that is specifically written for Aardwolf. It diverged rather significantly from the much more simple format it used to have back when I was just experimenting with the concept of scrolling and resizing.

One of these days I'd love to go back and completely rewrite the whole thing to use modular and composable "text area" and "scrollbar" and "resizer" widgets. I have a pretty specific grand vision of how it would work, preserving all current functionality without breaking abstractions. But I may never get to it, and until then http://mushclient.com/forum/bbshowpost.php?id=10728 is an old version that works for any output.
Portugal #7
I see. It would be great :). Fiendish, tell me something, on the Nick's window, is it possible to create an alias to just clean all the window? the things inside it.
USA Global Moderator #8
http://mushclient.com/forum/?id=10728&reply=90#reply90
Portugal #9
I'm sorry man, i've read that and still i can't get there. It must be easy to do, but my brain is slow i think.
Australia Forum Administrator #10
I think he is referring to doing a WindowRectOp to clear the window. Or maybe you just need to clear the remembered text of recent chats.
Portugal #11
Done it. Thank you all.