Once you get your emco configured how you want it, using "emco save" should save all the options so they come back. For code below, you can run it using the built in lua alias, for instance:
Code: Select all
lua demonnic.chat:setTimestampFormat("hh:mm:ssA")
I don't include it in every instance. You can add it to your own aliases if you like, without the "lua" in front.
1.
demonnic.chat:setTimestampFormat("hh:mm:ssA") would set it to 07:21:28PM . It's
pretty flexible
2. The character formatting is what you set in the above, so if you want 07|21|28pm you could use "hh|mm|ssa". Also, you can use
demonnic.chat:setTimestampBgColor("red") and setTimestampFgColor to change the overall fg and bg colors. It uses decho, so if you want to set individual elements you should be able to do demonnic.chat:setTimestampFormat("<255,0,0>hh<r>:<0,255,0>mm<r>:<0,0,255>ss<r>A") to make hours red, minutes green, and seconds blue.

- timestamp.png (868 Bytes) Viewed 2518 times
3. The green border is actually from the adjustable container. You could change this, but I think I'll add it to the emco color alias and do a release soon, as changing this is a bit more bothersome than you may be up for, and I may as well make it available to everybody.
4. They are saved to files in your profile directory. The following commands in Mudlet will show you the directories to copy from
Code: Select all
-- you want the EMCOPrebuilt*.lua files from here. There are 2 of them
lua getMudletHomeDir() .. "/EMCO/"
-- you want EMCOPrebuiltChatContainer.lua from the following dir
lua getMudletHomeDir() .. "/AdjustableContainer/"
5. To clear the contents of all the tabs
demonnic.chat:clearAll() and to clear a single tab
demonnic.chat:clear("tabname")
6. No on the color, it uses Geyser's built-in flash(). You can adjust the time in between the flashes by using
demonnic.chat:setBlinkTime(0.5) to set it to half a second, for instance.
For 7, you can set the wrap width manually by doing
Code: Select all
-- https://demonnic.github.io/mdk/current/classes/EMCO.html#EMCO:disableAutoWrap
demonnic.chat:disableAutoWrap()
-- https://demonnic.github.io/mdk/current/classes/EMCO.html#EMCO:setWrap
demonnic.chat:setWrap(20)
And find a wrap width which works for you. Should keep it from getting squished when you're in another tab.