Difference between revisions of "Mudlet Mapper"

From Mudlet
Jump to navigation Jump to search
(All content was moved to Manual:Mapper so turn this page into a mere redirect)
Tag: New redirect
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Mudlet's mapper is split into two parts for the best compatibility on all MUDs - the display and functions in Mudlet, and a per-MUD Lua script that tracks where you are, allows mapping and provides aliases for using the mapper.
+
#redirect [[Manual:Mapper]]
 
 
Pre-made mapping scripts are available from [https://forums.mudlet.org/search.php?keywords=mapping+script&terms=all&author=&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=400&t=0&submit=Search Mudlet forums]. For more information on mapping scripts, see [[Mapping_script]].
 
 
 
= Mapping =
 
== General Mudlet Mapper tips ==
 
# Don't move the room you're currently in, you'll go haywire
 
# The number when spreading/shrinking room selections it the ''multiplication'' factor - 2 is a good number to try
 
# Merging areas - see [https://forums.mudlet.org/viewtopic.php?f=8&t=2273&view=unread#unread this how-to by heiko]. In short, zoom out ''really'' far away on the area you'd like to move, and select everything (the selection affects all zlevels as well). Then right-click, select ''area'', and move them to another area. Your selection will still be selected - do '''not''' unselect - but right-click again, select ''move'', and move all of your still selected rooms in the new area so it fits.
 
 
 
= Placing the mapper into a corner =
 
 
 
Here's a snippet you can use to place the mapper window into a corner and have it automatically come up whenever you open Mudlet. To use this, create a new script (you can make it anywhere) and copy/paste the code into it.
 
 
 
<syntaxhighlight lang="lua">
 
local main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="mapper container"})
 
 
 
local mapper = Geyser.Mapper:new({
 
  name = "mapper",
 
  x = "70%", y = 0, -- edit here if you want to move it
 
  width = "30%", height = "50%"
 
}, main)
 
</syntaxhighlight>
 
 
 
=Create mapper as map window=
 
{{note}} available in Mudlet 4.7+
 
 
 
It‘s possible to create the mapper as a map window (similar to clicking the icon) like this:
 
<syntaxhighlight lang="lua">
 
myMapWidget = Geyser.Mapper:new({embedded=false})
 
</syntaxhighlight>
 
 
 
This will open a map window with your saved layout (if there is one, otherwise it will dock at the right corner)
 
 
 
To choose the position of the DockWindow at creation use: (this will create a map window docked at the left corner)
 
<syntaxhighlight lang="lua">
 
myMapWidget = Geyser.Mapper:new({embedded=false, dockPosition="left"})
 
</syntaxhighlight>
 
Possible dockPositions are left "l", right "r", top "t", bottom "b" and floating "f" <br>
 
To change the dockPosition after creation use:
 
<syntaxhighlight lang="lua">
 
myMapWidget:setDockPosition("f")
 
-- this will change myMapWidget dockPosition to "f" floating
 
</syntaxhighlight>
 

Latest revision as of 20:29, 1 February 2023

Redirect to: