Difference between revisions of "Mudlet Mapper"

From Mudlet
Jump to navigation Jump to search
Line 4: Line 4:
  
 
<lua>
 
<lua>
local main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="ofn.whc"})
+
local main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="ofn.whc"})
  
local mapper = Geyser.Mapper:new({
+
local mapper = Geyser.Mapper:new({
name = "mapper",
+
  name = "mapper",
x = "70%", y = 0, -- edit here if you want to move it
+
  x = "70%", y = 0, -- edit here if you want to move it
width = "30%", height = "50%"
+
  width = "30%", height = "50%"
}, main)
+
}, main)
 
</lua>
 
</lua>

Revision as of 22:53, 7 June 2011

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 and copy/paste the code into it.

<lua> local main = Geyser.Container:new({x=0,y=0,width="100%",height="100%",name="ofn.whc"})

local mapper = Geyser.Mapper:new({

 name = "mapper",
 x = "70%", y = 0, -- edit here if you want to move it
 width = "30%", height = "50%"

}, main) </lua>