The repository:
https://github.com/Chris7/Mudlet
New changes:
Package Exporter
Still specific to my Repo:
added optional parameter to clearRoomUserData of the type of userdata you want to clear.
clearLabels method added to remove GUI elements
getSpecialExitsTable/SwapTable removed
mapper variable with setMapVar removed and replaced with lua functions (getMapCoords for mapper coords of room id, getMapLocation for room id, setMapLocation to set room id, getMapSize to get map width)
New options in profile preferences -- ability to have panning enabled by default or not, and ability to customize what keys to use for added functionality like selecting multiple rooms
I changed tempTrigger to have an optional boolean argument. If you want, you can use:
tempTrigger(pattern,command,true)
which will cause the trigger to automatically destruct after it fires.
New method:
openWebPage(path). This will take either a path to a website, or a string that is HTML and render that html in a webview. This is useful for people who have their own help setup.
addMapMenu, addMapEvent altered to support events when no rooms are selected.
addMapMenu(uniquename, parent, displayname) --only uniquename required
addMapEvent(uniquename, event, parent, displayname, args) -- only unqiuename/event required
new variable UI
variable hiding
Added the ability for users to have their own functions in the mapper right click menu. Here's an example:
new functions: addMapEvent(event display name, event script name, parent menu)
The parent menu name is optional, and if left blank it will appear in the main content. If it has a parent, it will appear under that menu item
removeMapEvent(display name)
getMapEvents()
addMapMenu(display name, parent)
This will create a dropdown menu you can add to. Menus can be nested if a parent if given, if no parent is given it will be on the main menu.
removeMapMenu(name) - removes menu and any children of that menu
getMapMenus()
For events created, any room that is selected or group or rooms selected will be returned as arguments to the event. This hopefully will allow people to extend their own merge functions, etc. with the GUI of the mapper. Here is an example of setting up a way to color rooms via right click.
Experimental variable GUI:
To add a table->Add group.
To add a variable -> Add Item.
Variables and tables can be nested under existing tables by selecting the table and clicking 'add group'.
Saving variables -> click the box to have a variable save/autoload. Tables/etc save just fine.
Fixed a bug where editting special exits was crashing (due to the new version of QT?)
Fixed centerview to update the area dropdown.
Existing changes in the latest Official Beta:
2D/3D Mapper pans with the mouse. Use control+click to use the old functionality of left clicking on the map (speedwalking still works the same)
searchRoomUserData(key, query) function to search the user data of all rooms
Zone list in the mapper is alphabetical
Labels respect the z axis and don't show up everywhere.
Area switching places the view field of the mapper in the first room of the area now.
tempComplexRegexTrigger added
Right-click menu to set player location on map
Fixed setCustomEnvColor to provide the alpha channel as well. New syntax: setCustomEnvColor(id, r, g, b, alpha), if alpha is omitted it will default to opaque. This was the reason there were inconsistencies in the color scheme from custom colors.
Incorporated Vadi's loadMap function
Added built-in exit stub and completion support to the map.
New functions for exit stubs:
direction in the following cases corresponds to their numerical mapping (ie 1=north)
setExitStub(roomid, direction, status) -status 1 or 0 to turn off/on
getExitStubs(roomid) - table with all exit stubs (value is stub direction, key is just iterator)
connetExitStub(roomid, direction) - searches for closest room in given direction, if it finds a matching exit stub on that room, automatically removes stubs and creates exit.
connectExitStub(roomid, toroom, direction) - will connect a stub from roomid to toroom in the given direction.
The mapper will show your stubs as incomplete links.
Central module system added.
Two new label callbacks: setOnEnter and setOnLeave to call a given function when a label is entered/left with the mouse.
example code for a label, labels[tab]
labels[tab]:setOnEnter("onEnter", tab)
function onEnter(tab)
display("entered!")
end
Priorities added to module system. Two new methods to set them from the command line (in addition to setting them from the module manager window), getModulePriority, and setModulePriority.
Bug fix: tempTrigger and a few other methods now return their trigger id instead of pattern, thus killTrigger can work.
Added a lua change within Geyser, you can nest labels much easier. One nuance: You cannot put a nested label within a container (it must be its own container).
Here's a trivial example:
new method: updateMap() to cause the map view to update
new method: getMapLabel(area #, label or id #). Returns a table with x,y,z,height,width, and text of label. If multiple labels exist with same text, returns them all.
change: searchRoom returns room id as key
Merge: Vadi's profile settings change
Added versioning system for automatically backing up modules and a new info box for the module manager to provide some information on modules, syncing, and backing up