I'm trying to set up Mudlet to change the border values every time I resize Mudlet. I want the values to change, not be set, so that if I make the window half size, the border is halved, etc.function updateWindowSize()
globals.windowWidth, globals.windowHeight = getMainWindowSize()
globals.windowWidth = globals.windowWidth - 15
end
function updateBorders()
updateWindowSize()
setBorderTop(25)
setBorderRight(****)
end
Anyway, updateBorders() is called by the sysWindowResizeEvent event. That seems to work. However, when I resize the window, the setBorderRight() crashes Mudlet.
I tried putting in set values (25) as well as equations (0.25 * windowWidth), all of which crash the program. Ironically, setBorderTop() works fine.
Any help?