continuation of oUF_GPS

This commit is contained in:
Crum
2018-05-31 12:09:08 -05:00
parent e1842c2779
commit 17996e58ca
4 changed files with 28 additions and 26 deletions
+11 -11
View File
@@ -267,18 +267,18 @@ end
local arrow
function GetPlayerFacing()
if not arrow then
local obj = Minimap
for i = 1, obj:GetNumChildren() do
local child = select(i, obj:GetChildren())
if child and child.GetModel and child:GetModel() == "interface\\minimap\\minimaparrow.m2" then
arrow = child
break
end
end
end
if not arrow then
local obj = Minimap
for i = 1, obj:GetNumChildren() do
local child = select(i, obj:GetChildren())
if child and child.GetModel and child:GetModel() == "Interface\\Minimap\\MinimapArrow" then
arrow = child
break
end
end
end
return arrow and arrow:GetFacing()
return arrow and arrow:GetFacing()
end
function ToggleFrame(frame)