EMCO, the Embeddable Multi Console Object!

Share your scripts and packages with other Mudlet users.
User avatar
demonnic
Posts: 621
Joined: Sat Dec 05, 2009 3:19 pm

Re: EMCO, the Embeddable Multi Console Object!

Post by demonnic »

In the meantime, someone fixed a typo and submitted the PR, so new release! https://github.com/demonnic/EMCO/releases/tag/1.4

User avatar
demonnic
Posts: 621
Joined: Sat Dec 05, 2009 3:19 pm

Re: EMCO, the Embeddable Multi Console Object!

Post by demonnic »

Ok, I decided not to fold the movable functionality into EMCO, as I feel like the adjustable container fills that role nicely on its own and rather than reproducing that functionality myself I lean towards encouraging them to use the adjustable container and then make that the container for the EMCO.

User avatar
demonnic
Posts: 621
Joined: Sat Dec 05, 2009 3:19 pm

Re: EMCO, the Embeddable Multi Console Object!

Post by demonnic »

EMCO 1.5 released! Get it HERE
Bugfixes
  • If you don't have a tab named All but let allTabName default to All, EMCO will no longer error during instantiation. Also allTabName will now default to the name of the first console in your EMCO if you do not specify one, instead of All which may not exist.
  • If your EMCO is in a container and set to take up 100% of it, it will now properly do so. Thanks @Edru2 for the PR on this one
    You can now :echo to the all tab and it won't double up the echo.
New features
  • Adds wrappers for c/d/h/echoLink/Popup functionality, with timestamps and mirroring to an allTab
  • Adds new optional argument to c/d/h/echo. All your existing calls as myEMCO:echo(tabName, text) will still work, but you can now add , true as the final argument and it will exclude the echo from the all tab. Works for append and all the echo, echoLink, and echoPopup variants.
  • Also adds new constraint, allTabExclusions. This is a table that should contain a list of the tabs you never want mirrors to the all tab.
  • Adds EMCO:addAllTabExclusion(tabName) and EMCO:removeAllTabExclusion(tabName) for interacting with the allTabExclusions table after EMCO instantiation.

starkj
Posts: 12
Joined: Sat Jan 18, 2014 6:14 pm

Re: EMCO, the Embeddable Multi Console Object!

Post by starkj »

Howdy! I'm checking out EMCO, (never used YATCO), but I'm having an issue getting it running.

I'm using this (copied from the example on the wiki, then tweaked the tabs and the size):

Code: Select all

testCon = Geyser.Container:new({
  x = "640",
	y = "0",
	height = "600px",
	width = "295px",
})

local stylesheet = [[background-color: rgb(0,180,0,255); border-width: 1px; border-style: solid; border-color: gold; border-radius: 10px;]]
local istylesheet = [[background-color: rgb(60,60,60,255); border-width: 1px; border-style: solid; border-color: gold; border-radius: 10px;]]
testEMCO = EMCO:new({
  x = "0",
  y = "0",
  width = "100%",
  height = "100%",
  allTab = true,
  allTabName = "All",
  gap = 2,
  consoleColor = "blue",
  consoles = {
    "Tells",
    "All"
  },
  activeTabCSS = stylesheet,
  inactiveTabCSS = istylesheet,
}, testCon)
And then I have a trigger for detecting tells that does:

Code: Select all

selectCurrentLine()
demonnic.chat:append("Tells")
deselect()
resetFormat()
I see my lovely blue window in the upper right, with 2 tabs - Tells, All, but i'm not seeing any text show up in either of them. I did verify that my trigger is firing. Any suggestions?

Thank you!

User avatar
demonnic
Posts: 621
Joined: Sat Dec 05, 2009 3:19 pm

Re: EMCO, the Embeddable Multi Console Object!

Post by demonnic »

as that's written, you want testEMCO:append("Tells") , the demonnic.chat is for those who are trying to keep their older yatco stuff working

starkj
Posts: 12
Joined: Sat Jan 18, 2014 6:14 pm

Re: EMCO, the Embeddable Multi Console Object!

Post by starkj »

Worked like a charm, thank you!

Now to add some other chatlines and figure out my multiline trigger. :)

Post Reply