Thread: GUI snippet
View Single Post
Old 04-13-2011, 08:13 AM   #22
KaVir
Legend
 
KaVir's Avatar
 
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
KaVir will become famous soon enoughKaVir will become famous soon enough
Re: GUI snippet

Using MUSHClient's omit_from_output feature, I assume? That , and (because the text is actually drawn then removed) won't work for screen readers, and may cause flickering if you send a lot of data. If you want to omit multiple lines you'll need to look at something like Nick Gammon's plugin (although that'll strip all blank lines, making the display look a bit squashed). Other clients will require their own solutions.

Your plugin will also need some way to tell the mud what data it wishes to receive. You could try looking over some of the older threads on the MUSHclient forums for inspiration (particularly the Aardwolf ones from 2006-2008), as your approach is similar to the way the "old school" plugins worked, before the recent push towards out-of-band protocols.

The snippet lets you avoid all of these issues of course, using a generic solution that works on a range of clients, but that's not all it does - it also supports extended colour, client detection, clickable links, inline graphics, unicode characters, sound, etc. And it's public domain, so there are no licence restrictions.

Bryantos also uploaded earlier today, if anyone's interested.
KaVir is offline   Reply With Quote