7/15/2023 0 Comments Mudlet svo moving singleprompt![]() together will extensive support for Lua scripting. Mudlet is multi platform graphical client, which is supporting many interesting features including all standard ones like triggers, aliases, scripts, keys. " \n " end end setClipboardText ( parsed ) end registerAnonymousEventHandler ( "onMouseCopyExample", "onMouseCopyExample" ) ansi2decho ansi2decho(text, default_colour) Converts ANSI colour sequences in text to colour tags that can be processed by the decho() function. Mudlet Aardwolf GUI ( MAG) is set of enhancements for Mudlet client created specially for Aardwolf mud. symbol end end if l ~= endRow then parsed = parsed. symbol else lastColor = color parsed = parsed. An example showing implementing a hecho-friendly copy option: addMouseEvent ( "hecho copy", "onMouseCopyExample" ) function rgbToHex ( r, g, b ) local rgb = ( r * 0x10000 ) ( g * 0x100 ) b return string.format ( "#%x", rgb ) end function onMouseCopyExample ( event, menu, window, startCol, startRow, endCol, endRow ) - Check whether there's an actual selection if startCol = endCol and startRow = endRow then return end local parsed = "" local lastColor = nil - Loop through each symbol within the range for l = startRow, endRow do local cStart = l = startRow and startCol or 0 moveCursor ( window, cStart, l ) local cEnd = l = endRow and endCol or # getCurrentLine () - 1 for c = cStart, cEnd do selectSection ( window, c, 1 ) local symbol = getSelection ( window ) or "" - Convert the foreground color to a hex format, suitable for hecho local color = rgbToHex ( getFgColor ( window )) - Don't repeat the color if previous one was the same if color = lastColor then parsed = parsed. They deal mainly with miniconsole/label/gauge creation and manipulation as well as displaying or formatting information on the screen.ĪddCommandLineMenuEvent addCommandLineMenuEvent( label, eventName)Īdds item to right click menu associated with command line. I'm on Mac (El Capitan v.10.11.6) if that helps.All functions that help you construct custom GUIs. ![]() Using svo.addbalanceful / svo.addbalanceless on these events will guarantee the functions exist first, and makes sure your functions are re-added when the queues are cleared. I also tried looking at the updater scripts on the old v.11, to see if I could just replace the download source with the new github page, but I'm not sure what all needs to be changed there, or if that would actually fix anything. That, however, is rather clumsy - and you can avoid it by hooking onto the two Mudlet events Svof raises for you: svo balanceless ready and svo balanceful ready. The only thing that has had a remote amount of success is opening the Scripts tab, and importing the zip file through there, but it only installs the "svof Dragon Limb Counter" and nothing else. I've also tried installing previous versions, like v.24, and still nothing, which leads me to think it's an issue with the Package Manager/Mudlet, rather than the zip files. Tried downloading the zip file, unzipping to a different folder and rezipping, then install, and still the same result. I have tried creating a fresh profile in Mudlet and installing from there, same result. I've asked on the Discord, on the Achaean forums, and in-game, and no one seems to have a solution. The package manager just closes, and nothing is installed. I was on the old SVO system, v.11, and now when I try to install the latest version from the github releases page through Mudlet's package manager, it doesn't install. So I recently returned to playing Achaea, using Mudlet.
0 Comments
Leave a Reply. |