Tabbed Chat Window?

Posted by IREMUSH on Sun 07 Feb 2016 01:41 AM — 6 posts, 26,232 views.

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