SHARE
TWEET

8.2 wow

a guest Jul 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TargetFrameToT:ClearAllPoints();TargetFrameToT:SetPoint("LEFT",TargetFrame,"RIGHT",-108,-38);FocusFrameToT:ClearAllPoints();FocusFrameToT:SetPoint("LEFT",FocusFrame,"RIGHT",-108,-38)
  2.  
  3. MicroButtonAndBagsBar:Hide()
  4.  
  5. local U=UnitIsUnit hooksecurefunc("CompactUnitFrame_UpdateName",function(F)if IsActiveBattlefieldArena()and F.unit:find("nameplate")then for i=1,5 do if U( F.unit ,"arena"..i)then F.name:SetText(i)F.name:SetTextColor(1,1,0)break end end end end)
  6.  
  7. ChatFrameToggleVoiceDeafenButton:ClearAllPoints()
  8. ChatFrameToggleVoiceDeafenButton:SetPoint("LEFT", UIParent, -150, 0)
  9. ChatFrameToggleVoiceMuteButton:ClearAllPoints()
  10. ChatFrameToggleVoiceMuteButton:SetPoint("LEFT", UIParent, -150, 0)
  11. ChatFrameChannelButton:ClearAllPoints()
  12. ChatFrameChannelButton:SetPoint("LEFT", UIParent, -150, 0)
  13.  
  14. local LARGE_AURA_SIZE = 20 -- Auras you applied to target/focus. Default size 20
  15. local SMALL_AURA_SIZE = 18 -- Auras others applied to target/focus. Default size 18
  16. local AURA_OFFSET_Y = 3
  17. hooksecurefunc("TargetFrame_UpdateAuraPositions", function(self, auraName, numAuras, numOppositeAuras, largeAuraList, updateFunc, maxRowWidth, offsetX, mirrorAurasVertically)
  18. -- a lot of this complexity is in place to allow the auras to wrap around the target of target frame if it's shown
  19. -- Position auras
  20. local size;
  21. local offsetY = AURA_OFFSET_Y;
  22. -- current width of a row, increases as auras are added and resets when a new aura's width exceeds the max row width
  23. local rowWidth = 0;
  24. local firstBuffOnRow = 1;
  25. for i=1, numAuras do
  26. -- update size and offset info based on large aura status
  27. if ( largeAuraList[i] ) then
  28. size = LARGE_AURA_SIZE;
  29. offsetY = AURA_OFFSET_Y + AURA_OFFSET_Y;
  30. else
  31. size = SMALL_AURA_SIZE;
  32. end
  33. -- anchor the current aura
  34. if ( i == 1 ) then
  35. rowWidth = size;
  36. else
  37. rowWidth = rowWidth + size + offsetX;
  38. end
  39. if ( rowWidth > maxRowWidth ) then
  40. -- this aura would cause the current row to exceed the max row width, so make this aura
  41. -- the start of a new row instead
  42. updateFunc(self, auraName, i, numOppositeAuras, firstBuffOnRow, size, offsetX, offsetY, mirrorAurasVertically);
  43. rowWidth = size;
  44. firstBuffOnRow = i;
  45. offsetY = AURA_OFFSET_Y;
  46. else
  47. updateFunc(self, auraName, i, numOppositeAuras, i - 1, size, offsetX, offsetY, mirrorAurasVertically);
  48. end
  49. end
  50. end)
  51.  
  52. MinimapZoomIn:Hide()
  53. MinimapZoomOut:Hide()
  54. Minimap:EnableMouseWheel(true)
  55. Minimap:SetScript('OnMouseWheel', function(self, delta)
  56.     if delta > 0 then
  57.         Minimap_ZoomIn()
  58.     else
  59.         Minimap_ZoomOut()
  60.     end
  61. end)
  62. MiniMapTracking:ClearAllPoints()
  63. MiniMapTracking:SetPoint("TOPRIGHT", -26, 7)
  64.  
  65. local function colour(statusbar, unit)
  66.     local _, class, c
  67.     if UnitIsPlayer(unit) and UnitIsConnected(unit) and unit == statusbar.unit and UnitClass(unit) then
  68.         _, class = UnitClass(unit)
  69.         c = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
  70.         statusbar:SetStatusBarColor(c.r, c.g, c.b)
  71.     end
  72. end
  73.  
  74. hooksecurefunc("UnitFrameHealthBar_Update", colour)
  75. hooksecurefunc("HealthBar_OnValueChanged", function(self)
  76.     colour(self, self.unit)
  77. end)
  78.  
  79. local frame = CreateFrame("FRAME")
  80. frame:RegisterEvent("GROUP_ROSTER_UPDATE")
  81. frame:RegisterEvent("PLAYER_TARGET_CHANGED")
  82. frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
  83. frame:RegisterEvent("UNIT_FACTION")
  84.  
  85. local function eventHandler(self, event, ...)
  86.     if UnitIsPlayer("target") then
  87.         c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
  88.         TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b, 0)
  89.     end
  90.     if UnitIsPlayer("focus") then
  91.         c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
  92.         FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b, 0)
  93.     end
  94.   if PlayerFrame:IsShown() and not PlayerFrame.bg then
  95.         c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
  96.         bg=PlayerFrame:CreateTexture()
  97.         bg:SetPoint("TOPLEFT",PlayerFrameBackground)
  98.         bg:SetPoint("BOTTOMRIGHT",PlayerFrameBackground,0,22)
  99.         bg:SetTexture(TargetFrameNameBackground:GetTexture())
  100.         bg:SetVertexColor(c.r,c.g,c.b,0)
  101.         PlayerFrame.bg=true
  102.     end
  103. end
  104.  
  105. frame:SetScript("OnEvent", eventHandler)
  106.  
  107. for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground}) do
  108.     BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
  109. end
  110.  
  111. PetHitIndicator:SetText(nil)
  112. PetHitIndicator.SetText = function() end
  113. PetName:Hide()
  114.  
  115. PlayerFrame:SetScale(1.07)
  116. TargetFrame:SetScale(1.07)
  117. FocusFrame:SetScale(1.07)
  118. TargetFrameToT:SetScale(1)
  119. FocusFrameToT:SetScale(1)
  120.  
  121. BuffFrame:SetScale(1.20)
  122. DebuffFrame:SetScale(1.20)
  123. FocusFrameSpellBar:SetScale(1.0)
  124. TargetFrameSpellBar:SetScale(1.0)
  125. ChatFrameChannelButton:Hide()
  126. QuickJoinToastButton:Hide()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top