Advertisement
Guest User

Untitled

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