Technically, I guess the showWindow/hideWindow isn't needed if they're moved off-screen, but anyway
If you want mudlet to remember which tab was last open when starting a new session, you can optionally load the 'saveGlobals' file that includes a timer that activates every 5 minutes. Then all you need to do is table.load("/home/Brodie/.config/Mudlet/globals", globals) somewhere in-script, although Windozers will need to change the path for both.
Basically then, you call chatStartup() in a script, which then creates a window on the righthand side of the screen (dimensions not perfect) with a row of tabs on the top. Clicking these tabs highlights them and makes that particular 'channel' visible. You can customise the position/size in the chat script
Keep in mind that you'll need separate triggers for each channel now, the script section for each should look something like:
Code: Select all
selectString(line,1)
copy()
--To the "All" tab first:
appendBuffer("chatall")
--Say this was the (Market): trigger,
appendBuffer("chatmarket")
--Optional:
--deleteLine()
Maybe it's not all that useful, it was mostly just an experiment
Edit: As per Heiko's request, screenshot!
(It's the box on the right)
Also, packaged and rewritten a little. Font text for labels is also white.