[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Tabbed Chat Window?

Tabbed Chat Window?

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


Posted by IREMUSH   (12 posts)  [Biography] bio
Date Sun 07 Feb 2016 01:41 AM (UTC)
Message
So I am looking at the minichat window and it is very useful but with the sheer volume of noise you can get it would be nice to set this up as a tabbed window, so one tab for tells one for says one for societies one for city. Can anyone point me at something like that?

Thanks
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 07 Feb 2016 08:50 AM (UTC)
Message
I don't think anyone has done it (but if anyone has, it would probably be Fiendish), but that isn't that hard to do.

Draw some tabs at the bottom (or top, wherever) of your window. When you click on a tab, you "remember" which tab you are on. Then redraw the window only showing messages that match the tab.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 07 Feb 2016 08:54 AM (UTC)
Message
There is something a bit like that here: http://www.gammon.com.au/forum/?id=9664

That draws more, or less, things in a miniwindow, depending on what "expansion" tabs you click on. It's much the same thing with tabs.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Sun 07 Feb 2016 02:42 PM (UTC)
Message
I haven't gotten around to doing it for Aardwolf yet.
So many things to do, so little time. I'd want to completely refactor my chat window plugin, which is not a trivial amount of work.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by IREMUSH   (12 posts)  [Biography] bio
Date Reply #4 on Sun 07 Feb 2016 05:25 PM (UTC)
Message
Thanks for the feedback. I guess that is why I wasn't finding any samples. It looks like Nick did some tabbed things for his inventory window. I'll prod through that and see what it yields. :)
[Go to top] top

Posted by Wuggly   USA  (112 posts)  [Biography] bio
Date Reply #5 on Wed 02 Mar 2016 04:33 AM (UTC)

Amended on Wed 02 Mar 2016 06:16 AM (UTC) by Wuggly

Message
I made something that works in a similar way. I adapted Nick's hyperlink code
http://www.gammon.com.au/forum/?id=12868&reply=7#reply7

to display 4 pages of different links using only 1 miniwindow. You can change pages by clicking page 2, 3 etc.. or by using an alias like view page 3 view page 1 etc..

Anyways here's a link to the code on pastebin. Putting it there as it is a bit long and didn't want to clutter this topic up.
http://pastebin.com/5f19r2kb

Keep in mind... the coding comes from a newbie but at least it will be easier to understand how I've done it hehe.

Mainly scroll down through it and look at the show_map_list () function. Was done using simple variables.

Line 439 is where the function starts. Line 485 is where it draws into the window depending on what page you are viewing. So just think of pages as tabs in your case.

Hope it helps!
[Go to top] 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.


16,945 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]