Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.13 KB | None | 0 0
  1. -- This file is loaded from "TestAddon.toc"
  2.  
  3.  
  4. DefaultCompactUnitFrameOptions.displayRoleIcon = false
  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. hooksecurefunc("PlayerFrame_UpdateStatus",function()
  7. -- make changes to PlayerFrame here
  8.  
  9. PlayerStatusTexture:Hide()
  10. PlayerRestIcon:Hide()
  11. PlayerAttackIcon:Hide()
  12. PlayerRestGlow:Hide()
  13. PlayerLevelText:Hide()
  14. PlayerAttackGlow:Hide()
  15. PlayerStatusGlow:Hide()
  16. PlayerFrameFlash:Hide()
  17.  
  18. TargetFrameFlash:Hide()
  19. end)
  20.  
  21. FocusFrameSpellBar:SetScale(1.3)
  22. PlayerFrame:SetScale(1.055)
  23. TargetFrame:SetScale(1.055)
  24. FocusFrame:SetScale(1.055)
  25. TargetFrameSpellBar:SetScale(1.3)
  26.  
  27.  
  28. MiniMapTrackingBackground:SetAlpha(0)
  29. MiniMapTrackingIcon:SetAlpha(0)
  30. MiniMapMailFrame:Hide()
  31. MiniMapMailIcon:Hide()
  32. MiniMapMailBorder:Hide()
  33. MinimapBorderTop:SetAlpha(0)
  34. MinimapZoomOut:Hide()
  35. MinimapZoomIn:Hide()
  36. MinimapZoneTextButton:Hide()
  37. MiniMapTracking:Hide()
  38. MiniMapWorldMapButton:Hide()
  39. GameTimeFrame:Hide()
  40.  
  41. ActionBarUpButton:Hide()
  42. ActionBarDownButton:Hide()
  43. StatusTrackingBarManager:Hide()
  44.  
  45. TargetFrameTextureFramePrestigeBadge:SetAlpha(0)
  46. TargetFrameTextureFramePrestigePortrait:SetAlpha(0)
  47. PlayerPrestigeBadge:SetAlpha(0)
  48. PlayerPrestigePortrait:SetAlpha(0)
  49. FocusFrameTextureFramePrestigeBadge:SetAlpha(0)
  50. FocusFrameTextureFramePrestigePortrait:SetAlpha(0)
  51.  
  52.  
  53. ObjectiveTrackerBlocksFrame:Hide()
  54. ObjectiveTrackerFrame.HeaderMenu.MinimizeButton:Hide()
  55.  
  56.  
  57. MainMenuBarArtFrame:SetScale(1.12)
  58.  
  59.  
  60.  
  61. SetCVar("NameplateGlobalScale",0.8)
  62. SetCVar("NamePlateHorizontalScale",1)
  63. SetCVar("nameplateMinScale",1)
  64. SetCVar("nameplateMotion",1)
  65.  
  66. SetCVar("nameplateMotionSpeed",0.03)
  67. SetCVar("nameplateOverlapH",0.3)
  68. SetCVar("nameplateOverlapV",0.5)
  69. SetCVar("NamePlateVerticalScale",2)
  70.  
  71.  
  72. MainMenuBarArtFrame:ClearAllPoints()
  73. MainMenuBarArtFrame:SetPoint("CENTER",2,2)
  74. MainMenuBarArtFrame.SetPoint = function() end
  75. ActionButton1:ClearAllPoints()
  76. ActionButton1:SetPoint("cENTER",-233,24)
  77. ActionButton1.SetPoint = function() end
  78. MultiBarBottomLeftButton1:ClearAllPoints()
  79. MultiBarBottomLeftButton1:SetPoint("cENTER",-232,18)
  80. MultiBarBottomLeftButton1.SetPoint = function() end
  81. StanceButton1:ClearAllPoints()
  82. StanceButton1:SetPoint("cENTER",-6000,0)
  83. StanceButton1.SetPoint = function() end
  84.  
  85.  
  86.  
  87. for i = 1, 12 do _G["MultiBarBottomLeftButton"..i.."HotKey"]:SetAlpha(0) end
  88. for i = 1, 12 do _G["MultiBarBottomRightButton"..i.."HotKey"]:SetAlpha(0) end
  89. for i = 1, 12 do _G["ActionButton"..i.."HotKey"]:SetAlpha(0) end
  90.  
  91.  
  92. MainMenuBarArtFrameBackground:Hide()
  93. MainMenuBarArtFrame.LeftEndCap:Hide()
  94. MainMenuBarArtFrame.RightEndCap:Hide()
  95. MainMenuBarArtFrame.PageNumber:Hide()
  96.  
  97.  
  98.  
  99.  
  100. PlayerHitIndicator:SetText(nil)
  101. PlayerHitIndicator.SetText = function() end
  102. PetHitIndicator:SetText(nil)
  103. PetHitIndicator.SetText = function() end
  104.  
  105. PlayerPVPIcon:SetAlpha(0)
  106. FocusFrameTextureFramePVPIcon:SetAlpha(0)
  107. TargetFrameTextureFramePVPIcon:SetAlpha(0)
  108.  
  109. GarrisonLandingPageMinimapButton:SetAlpha(0)
  110.  
  111. local f=CreateFrame("Frame")
  112. f:SetScript("OnEvent",function(self,event,...)
  113. if event=="PLAYER_TARGET_CHANGED" then
  114. -- do TargetFrame changes here
  115. TargetFrameTextureFrameTexture:SetTexture("Interface\\TargetingFrame\\UI-TargetingFrame-NoLevel")
  116. TargetFrameTextureFrameLevelText:Hide()
  117. elseif event=="PLAYER_FOCUS_CHANGED" then
  118. -- do FocusFrame changes here
  119. FocusFrameTextureFrameTexture:SetTexture("Interface\\TargetingFrame\\UI-TargetingFrame-NoLevel")
  120. FocusFrameTextureFrameLevelText:Hide()
  121. end
  122. end)
  123. f:RegisterEvent("PLAYER_TARGET_CHANGED")
  124. f:RegisterEvent("PLAYER_FOCUS_CHANGED")
  125.  
  126. select(1,LossOfControlFrame:GetRegions()):SetAlpha(0)
  127. select(2,LossOfControlFrame:GetRegions()):SetAlpha(0) select(3,LossOfControlFrame:GetRegions()):SetAlpha(0)
  128. select(2,LossOfControlFrame:GetChildren()):SetAlpha(0)
  129. select(5,LossOfControlFrame:GetRegions()):SetAlpha(0)
  130.  
  131. LossOfControlFrame:ClearAllPoints()
  132. LossOfControlFrame:SetPoint("CENTER",UIParent,"CENTER",74,0)
  133. LossOfControlFrame.SetPoint = function() end
  134.  
  135. LossOfControlFrame:SetScale(1)
  136.  
  137. TargetFrameToT:ClearAllPoints()
  138. TargetFrameToT:SetPoint("TOPLEFT", 128, -63)
  139. TargetFrameToT.SetPoint = function() end
  140.  
  141. FocusFrameToT:ClearAllPoints()
  142. FocusFrameToT:SetPoint("TOPLEFT", 128, -63)
  143. FocusFrameToT.SetPoint = function() end
  144.  
  145. GameTimeFrame:Hide()
  146.  
  147. function Movebuff() BuffFrame:ClearAllPoints() BuffFrame:SetScale(1.1) BuffFrame:SetPoint("CENTER",PlayerFrame,"CENTER",850,80) end hooksecurefunc("UIParent_UpdateTopFramePositions",Movebuff) Movebuff()
  148. function sp(f,i) tr="TOPRIGHT";f2=f.debuffFrames;s=f2[1]:GetWidth();f3=f2[i];f3:SetSize(s,s);f3:ClearAllPoints();if i>6 then f3:SetPoint("BOTTOMRIGHT",f2[i-3],tr,0,0) else f3:SetPoint(tr,f2[1],tr,-(s*(i-3)),0) end end
  149. function CBF(f,i) bf=CreateFrame("Button",f:GetName().."Debuff"..i,f,"CompactDebuffTemplate");bf.baseSize=22;bf:SetSize(f.buffFrames[1]:GetSize()) end;function mv(f) for i=4,12 do sp(f,i) end end
  150. function mv3(f) CompactUnitFrame_SetMaxDebuffs(f,12); if not f.debuffFrames[4] then for i=4,12 do CBF(f,i) end end mv(f) end;hooksecurefunc("CompactUnitFrame_UpdateDebuffs",function(f) if f:GetName():match("^Compact") then mv3(f) end end);
  151.  
  152. UIErrorsFrame:SetAlpha(0)
  153. DefaultCompactUnitFrameOptions.displayName = false
  154. SetCVar("comboPointLocation",1)
  155.  
  156.  
  157. CharacterMicroButton:ClearAllPoints()
  158. CharacterMicroButton:SetPoint("CENTER",-6000,0)
  159. CharacterMicroButton.SetPoint = function() end
  160. MicroButtonAndBagsBar:ClearAllPoints()
  161. MicroButtonAndBagsBar:SetPoint("CENTER",-6000,0)
  162. MicroButtonAndBagsBar.SetPoint = function() end
  163.  
  164. CastingBarFrame:ClearAllPoints() CastingBarFrame:SetPoint("CENTER",UIParent,"CENTER", 0, -145)
  165. CastingBarFrame.SetPoint = function() end
  166. CastingBarFrame:SetScale(1.3)
  167.  
  168. PlayerName:Hide()
  169. FocusFrameTextureFrameName:Hide()
  170. TargetFrameTextureFrameName:Hide()
  171. TargetFrameToTTextureFrameName:Hide()
  172. FocusFrameToTTextureFrameName:Hide()
  173.  
  174.  
  175. PlayerFrameRoleIcon:SetAlpha(0)
  176. PlayerFrameGroupIndicator.Show = function() return end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement