/branches/Beta/MapNotes
See the README file for more information. |
]] |
MAPNOTES_VERSION = "5.12.30000"; |
MAPNOTES_VERSION = "5.14.30000"; |
MAPNOTES_EDITION = "Fan's Update"; |
MN_DEFAULT_SCALE = 0.75; |
end |
function MapNotes_MainCommandHandler(cmd, prms) |
NuN_Message(cmd, prms); |
if ( ( cmd == "-allow" ) or ( cmd == "-a" ) ) then |
MapNotes_OneNote(prms); |
MN_Info2WideEditBox:SetText(""); |
MN_CreatorWideEditBox:SetText(MapNotes_TempData_Creator); |
MapNotes_HideAll(); |
MapNotes_TempData_miniNote = nil; |
if ( MapNotes_SetNextAsMiniNote == 1 ) or ( MapNotes_SetNextAsMiniNote == 2 ) then |
MapNotes_TempData_miniNote = true; |
end |
MapNotesEditFrame:Show(); |
end |
MAPNOTES_OWNNOTES = "Show notes created by your character"; |
MAPNOTES_OTHERNOTES = "Show notes received from other characters"; |
MAPNOTES_HIGHLIGHT_LASTCREATED = "Highlight last created note in |cFFFF0000red|r"; |
MAPNOTES_HIGHLIGHT_MININOTE = "Highlight note selected for MiniNote in |cFF6666FFblue|r"; |
MAPNOTES_HIGHLIGHT_MININOTE = "Highlight note selected for MiniNote"; |
MAPNOTES_ACCEPTINCOMING = "Accept incoming notes from other players"; |
MAPNOTES_INCOMING_CAP = "Decline notes if they would leave less than 5 notes free"; |
MAPNOTES_AUTOPARTYASMININOTE = "Automatically set party notes as MiniNote."; |
## Interface: 30000 |
## Title: MapNotes |c0000FF00(5.12.30000)|r |
## Title: MapNotes |c0000FF00(5.14.30000)|r |
## Author: Telic (originally ciphersimian) |
## eMail: telic@hotmail.co.uk |
## Version: 5.12.30000 |
## Version: 5.14.30000 |
## URL: See README for download sites |
## Notes: Adds a note system to the WorldMap - Other AddOns can also now 'Plug In' and allow notes to be made on their frames eg AlphaMap |
## Notes-deDE: Ermöglicht es Notizen auf der Karte zu platzieren. |
****************************************** |
MapNotes (Fan's Update) README v5.12.30000 |
MapNotes (Fan's Update) README v5.14.30000 |
****************************************** |
Maintainer: Telic <telic@hotmail.co.uk> |
********** |
======================================= |
Changes in v5.14.30000 from v5.13.30000 |
======================================= |
- fix to stop new notes being turned on as Mininotes by accident |
======================================= |
Changes in v5.13.30000 from v5.12.30000 |
======================================= |
- fix to slash command handler |
"Sorry about that now." - Dougal looks sheepish |
- update to TomTom and Cartographer pointer support |
======================================= |
Changes in v5.12.30000 from v5.11.30000 |
======================================= |
- option to set MapNotes as Cartographer Waypoint arrow |
- fix to some legacy slash commands which were not toc 30000 compliant |
- option to set MapNotes as TomTom arrow |
- datafix script for users who fell foul of the legacy slash command bug |
/script MN_IntegrityCheck() |
- option to set MapNotes as Cartographer Waypoint arrow from note right click menu (Beta functionality) |
- option to set MapNotes as TomTom arrow from note right click menu (Beta functionality) |
======================================= |
Changes in v5.11.30000 from v5.10.30000 |
======================================= |
if ( note ) then |
note = note[MapNotes.dd.id]; |
if ( note ) then |
if ( PointyPointy ) then |
if ( PointyPointy ) then -- in development |
MapNotes.pointy = PP.Set; |
MapNotes.pointyP[1] = MapNotes.dd.key; |
MapNotes.pointyP[2] = MapNotes.dd.id; |
MapNotes.pointy = Cartographer_Waypoints.AddLHWaypoint; |
local c, z = MapNotes_Keys[MapNotes.dd.key].c, MapNotes_Keys[MapNotes.dd.key].z; |
if ( ( c ) and ( z ) ) then |
MapNotes.pointyP[1] = c; |
MapNotes.pointyP[2] = z; |
MapNotes.pointyP[3] = MapNotes.dd.x; |
MapNotes.pointyP[4] = MapNotes.dd.y; |
MapNotes.pointyP[5] = note.name; |
MapNotes.pointyP[1] = Cartographer_Waypoints; |
MapNotes.pointyP[2] = c; |
MapNotes.pointyP[3] = z; |
MapNotes.pointyP[4] = MapNotes.dd.x; |
MapNotes.pointyP[5] = MapNotes.dd.y; |
MapNotes.pointyP[6] = note.name; |
text = "Cartographer: "..MN_WAYPOINT; |
ignore = nil; |
end |
MapNotes.pointy = TomTom.AddZWaypoint; |
local c, z = MapNotes_Keys[MapNotes.dd.key].c, MapNotes_Keys[MapNotes.dd.key].z; |
if ( ( c ) and ( z ) ) then |
MapNotes.pointyP[1] = c; |
MapNotes.pointyP[2] = z; |
MapNotes.pointyP[3] = MapNotes.dd.x*100; |
MapNotes.pointyP[4] = MapNotes.dd.y*100; |
MapNotes.pointyP[5] = note.name; |
MapNotes.pointyP[1] = TomTom; -- pass 'self' as first parameter |
MapNotes.pointyP[2] = c; |
MapNotes.pointyP[3] = z; |
MapNotes.pointyP[4] = MapNotes.dd.x*100; |
MapNotes.pointyP[5] = MapNotes.dd.y*100; |
MapNotes.pointyP[6] = note.name; |
text = "TomTom: "..MN_WAYPOINT; |
ignore = nil; |
end |