To create the window, I use the following in my init() function that is run whenever I connect.
Code: Select all
--Put your screen resolution in here
resolutionX = 1440
resolutionY = 900
createMiniConsole("mapcap", resolutionX-440, 0, 400, 350)
setBackgroundColor("mapcap", 20, 0, 0, 0 ) -- gives the background of the window a -slight- noticable color
Next I have some triggers that detect the map, and then call this function:
Code: Select all
function cutMap()
selectString(line, 1)
cut()
appendBuffer("mapcap")
end
This ends up looking like the following:
Preview <-- clicky
I'm tidying this up into a package, will post it momentarily.