This commit is contained in:
Crum
2018-05-31 23:48:09 -05:00
parent 17996e58ca
commit a7acd258b5
+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" 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)