Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. local mm = Minimap
  2.  
  3. local f = CreateFrame("Frame")
  4.  
  5. local update = function()
  6.     local mods = IsShiftKeyDown() and IsControlKeyDown()
  7.    
  8.     mm:EnableMouse(mods)
  9.     mm:EnableMouseWheel(mods)
  10. end
  11.  
  12. local init = function()
  13.     for i = 1, mm:GetNumChildren() do
  14.       local child = select(i, mm:GetChildren())
  15.       if child then
  16.           local from, anchor, to, x, y = child:GetPoint()
  17.           child:SetPoint(from, Minimap:GetParent(), to, x, y)
  18.           child:SetParent(Minimap:GetParent())
  19.           child:Hide()
  20.         end
  21.     end
  22.     mm:GetParent():Hide()
  23.  
  24.     mm:SetParent(UIParent)
  25.     mm:SetPoint("CENTER", UIParent, "CENTER", 0, -40)
  26.     mm:SetAlpha(0)
  27.     mm:SetSize(350, 350)
  28.     mm:EnableMouse(false)
  29.     mm:EnableMouseWheel(false)
  30.  
  31.     mm:SetArchBlobRingScalar(0)
  32.     mm:SetArchBlobRingAlpha(0)
  33.     mm:SetQuestBlobRingScalar(0)
  34.     mm:SetQuestBlobRingAlpha(0)
  35.  
  36.     f:SetScript("OnUpdate", update)
  37. end
  38.  
  39. f:SetScript("OnUpdate", init)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement