Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new mdk emco: default blinkTime not defined #22

Closed
bduza opened this issue Jul 9, 2021 · 3 comments
Closed

new mdk emco: default blinkTime not defined #22

bduza opened this issue Jul 9, 2021 · 3 comments

Comments

@bduza
Copy link

bduza commented Jul 9, 2021

After I updated today, this code was throwing an error, saying a tempTimer was being defined with no time:
`
chancap = chancap or {}

function chancap.draw()
local EMCO = require("MDK.emco")
local actabcss =
[[
background-color: #48708a;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
]]
local iactabcss =
[[
background-color: #07111c;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border: 1px solid black;
]]
chancap.container = chancap.container or Adjustable.Container:new({name = "Chat Console"})
chancap.emco =
EMCO:new(
{
name = "chancap.emco",
allTab = true,
blink = true,
activeTabCSS = actabcss,
activeTabFGColor = "white",
inactiveTabCSS = iactabcss,
consoles = {"All", "Crew", "FT", "Clans", "RP", "Newbie"},
consoleContainerColor = "#07111c",
x = 0,
y = 0,
width = "100%",
height = "100%",
},
chancap.container
)
end
chancap.draw()`

After I put blinkTime = 3 into the constraints, it worked again. The API says 3 seconds should be default. Not a biggy, but it is something that happened.

@bduza
Copy link
Author

bduza commented Jul 9, 2021

github code tags didn't do a great job. I don't have time to figure out what I did wrong, so
https://pastebin.com/vBtHAbBm

@demonnic
Copy link
Owner

demonnic commented Aug 4, 2021

It's the order things are run in the instantiation. Will knock this out shortly.

@demonnic
Copy link
Owner

demonnic commented Aug 9, 2021

resolved in 2.4.0

@demonnic demonnic closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants