MDK
MDK copied to clipboard
Mudlet Mapper does not redraw correctly if you are using the setMapTabName() and enableMapTab() commands.
Hey @demonnic Just FYI. Was playing around with adding the mapper to an EMCO console. If I add it on creation as in this: myContainer = EMCO:new({ name = containerName, x = 0, y = 0, width = "100%", height = "100%", tabFontSize = asui.settings.tabFontSize, tabHeight = asui.settings.tabHeight, gap = asui.settings.tabGap, fontSize = asui.settings.consoleFontSize, font = asui.settings.consoleFont, tabFont = asui.settings.consoleFont, allTab = false, autoWrap = false, mapTab = true, mapTabName = "mapper", tabBoxColor = asui.settings.tabBarColor, leftMargin = 4, consoleColor = asui.settings.consoleBackgroundColor, activeTabFGColor = asui.settings.activeTabFGColor, activeTabCSS = asui.settings.activeTab, inactiveTabFGColor = asui.settings.inactiveTabFGColor, inactiveTabCSS = asui.settings.inactiveTab, consoles = console }, window) It works like it should. But if I use the options to add it later:
myContainer:setMapTabName("mapper") myContainer:enableMapTab()
Then it has issues on redraw if the window is changed in size. The only thing that will bring it back correctly is to do a myContainer:reset() on it. The mapper isn't kept inside the miniconsole, but will draw itself outside the actual window, unless I run the reset() command