/
## Interface: 70200 |
## Interface: 70300 |
## Title: SimpleCoords |
## Version: 3.02 |
## Version: 3.10 |
## Notes: Show map coordinates in movable frame. |
## Author: Schnoggo |
## Dependencies: |
## Interface: 70200 |
## Interface: 70300 |
## Title: Lib: HereBeDragons-1.0 |
## Notes: HereBeDragons is a data API for the World of Warcraft mapping system |
## Author: Nevcairiel |
## X-Category: Library |
## X-License: BSD |
## X-Website: http://www.wowace.com/addons/herebedragons/ |
## Version: 1.18-release |
## Version: 1.19-release |
LibStub\LibStub.lua |
CallbackHandler-1.0\CallbackHandler-1.0.lua |
-- HereBeDragons is a data API for the World of Warcraft mapping system |
local MAJOR, MINOR = "HereBeDragons-1.0", 32 |
local MAJOR, MINOR = "HereBeDragons-1.0", 33 |
assert(LibStub, MAJOR .. " requires LibStub") |
local HereBeDragons, oldversion = LibStub:NewLibrary(MAJOR, MINOR) |
local atan2 = math.atan2 |
local pairs, ipairs = pairs, ipairs |
local type = type |
local band = bit.band |
-- WoW API upvalues |
local UnitPosition = UnitPosition |
end |
-- gather map info, but only if this isn't an upgrade (or the upgrade version forces a re-map) |
if not oldversion or oldversion < 30 then |
if not oldversion or oldversion < 33 then |
-- wipe old data, if required, otherwise the upgrade path isn't triggered |
if oldversion then |
wipe(mapData) |
local function processTransforms() |
wipe(transforms) |
for _, tID in ipairs(GetWorldMapTransforms()) do |
local terrainMapID, newTerrainMapID, _, _, transformMinY, transformMaxY, transformMinX, transformMaxX, offsetY, offsetX = GetWorldMapTransformInfo(tID) |
if offsetY ~= 0 or offsetX ~= 0 then |
local terrainMapID, newTerrainMapID, _, _, transformMinY, transformMaxY, transformMinX, transformMaxX, offsetY, offsetX, flags = GetWorldMapTransformInfo(tID) |
-- flag 4 indicates the transform is only for the flight map |
if band(flags, 4) ~= 4 and (offsetY ~= 0 or offsetX ~= 0) then |
local transform = { |
instanceID = terrainMapID, |
newInstanceID = newTerrainMapID, |
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
..\FrameXML\UI.xsd"> |
<Script file="CallbackHandler-1.0.lua"/> |
</Ui> |
SimpleCoords v3.02 |
SimpleCoords v3.10 |
Description |
=========== |
VERSION HISTORY |
=============== |
Jun 27, 2019 (3.10) |
* Updated TOC and version for WoW client 7.3 |
* Updated HereBeDragons lib to 1.19 |
Mar 30, 2017 (3.02) |
* Updated TOC and version for WoW client 7.2 |
* Updated HereBeDragons lib to 1.18 |