public
Description: WoW Addon - Square Minimap and more
Homepage: http://www.tekkub.net/
Clone URL: git://github.com/tekkub/squeenix.git
Click here to lend your support to: squeenix and make a donation at www.pledgie.com !
squeenix / NESW.lua
100644 19 lines (13 sloc) 0.394 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if not Squeenix then return end
local Squeenix = Squeenix
 
 
local f = CreateFrame("Frame", nil, Minimap)
f:SetAllPoints()
for dir,anc in pairs{W = "LEFT", S = "BOTTOM", E = "RIGHT"} do
local w = f:CreateFontString()
w:SetFontObject(GameFontWhite)
w:SetPoint("CENTER", f, anc)
w:SetText(dir)
end
 
 
function Squeenix:ShowCompass()
if self.db.hidecompass then f:Hide() else f:Show() end
end