Using registerAnonymousEventHandler to redraw UI
Posted: Thu Nov 05, 2015 7:28 am
Hey all, been playing a good bit with trying to gracefully handle redrawing the UI I've created when the Mudlet window gets resized (which still happens a ton on macs) since it starts to just look like trash without it.
From what I've read and searched around for, pretty much the only way to redraw is to call resetProfile(). This is fine, a bit of lag is involved when you next get a line from the MUD, but hey, can live with lag. However, it seems like GMCP is knocked off when that happens. Case in point, channel capture using GMCP stops working, the mapper stops getting its position updated, and other portions of my UI stop working.
Is there a better way to handle getting the UI to completely redraw itself that I'm missing?
From what I've read and searched around for, pretty much the only way to redraw is to call resetProfile(). This is fine, a bit of lag is involved when you next get a line from the MUD, but hey, can live with lag. However, it seems like GMCP is knocked off when that happens. Case in point, channel capture using GMCP stops working, the mapper stops getting its position updated, and other portions of my UI stop working.
Is there a better way to handle getting the UI to completely redraw itself that I'm missing?