daily pastebin goal
42%
SHARE
TWEET

zMyTweaks

myLocalStream May 22nd, 2017 (edited) 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Создаем папку World of Warcraft\Interface\AddOns\zMyTweaks
  2. в ней два файла:
  3. zMyTweaks.lua
  4. -- Just copy/paste your code here now. It will execute every time the game loads.
  5.  
  6. LARGE_NUMBER_SEPERATOR = " "
  7.  
  8. -- This file is loaded from "HideAzeriteBar.toc"
  9.  
  10. -- This is a comment, you can replace it with the LUA code that you wish to make into an Addon!
  11. --local b=AzeriteWatchBar b:UnregisterAllEvents() b:Hide() b.Show=b.Hide
  12.   function AzeriteBarMixin:ShouldBeVisible()
  13. --    if (UnitLevel("player") >= MAX_PLAYER_LEVEL and not IsXPUserDisabled()) then
  14. --        return C_AzeriteItem.FindActiveAzeriteItem();
  15. --    end
  16.     return false;
  17.   end
  18.  
  19. -- Замена портретов на иконку класса
  20. hooksecurefunc("UnitFramePortrait_Update",function(self)
  21.     if self.portrait then
  22.         if UnitIsPlayer(self.unit) then                
  23.             local t = CLASS_ICON_TCOORDS[select(2, UnitClass(self.unit))]
  24.             if t then
  25.                 self.portrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
  26.                 self.portrait:SetTexCoord(unpack(t))
  27.             end
  28.         else
  29.             self.portrait:SetTexCoord(0,1,0,1)
  30.         end
  31.     end
  32. end)
  33.  
  34. -- Ниже уже не использую
  35.  
  36. -- Текст боя на иконки персонажа
  37. --PlayerHitIndicator:Hide()
  38. --PlayerHitIndicator.Show=function() end
  39.  
  40. -- Убрать орлов у панелей
  41. --MainMenuBarLeftEndCap:Hide()
  42. --MainMenuBarRightEndCap:Hide()
  43.  
  44. -- Скрол миникарты
  45. --MinimapZoomIn:Hide()
  46. --MinimapZoomOut:Hide()
  47. --Minimap:EnableMouseWheel(true)
  48. --Minimap:SetScript('onmousewheel', function(self, delta)
  49. --        if delta > 0 then
  50. --                Minimap_ZoomIn()
  51. --        else
  52. --                Minimap_ZoomOut()
  53. --        end
  54. --end)
  55. --MiniMapTracking:ClearAllPoints()
  56. --MiniMapTracking:SetPoint("TOPRIGHT", -26, 7)
  57.  
  58. -- Отключение мерцания в зоне отдыха
  59. --hooksecurefunc("PlayerFrame_UpdateStatus", function()
  60. --if IsResting("player") then
  61. --PlayerStatusTexture:Hide()
  62. --PlayerRestIcon:Hide()
  63. --PlayerRestGlow:Hide()
  64. --PlayerStatusGlow:Hide()
  65. --elseif PlayerFrame.inCombat then
  66. --PlayerStatusTexture:Hide()
  67. --PlayerAttackIcon:Hide()
  68. --PlayerRestIcon:Hide()
  69. --PlayerAttackGlow:Hide()
  70. --PlayerRestGlow:Hide()
  71. --PlayerStatusGlow:Hide()
  72. --PlayerAttackBackground:Hide() end end)
  73.  
  74. -- Отключение всякого в бою, название штуки можно узнать командой /fstack
  75. -- , 'ObjectiveTrackerFrame' -- Квесты
  76. --local mcf, fth = CreateFrame, {'GarrisonLandingPageMinimapButton'}
  77. --CreateFrame
  78. --= function(f,n,p,t) for _,v in pairs(fth) do t = (n == v) and
  79. --t..',SecureHandlerShowHideTemplate' or t end return mcf(f,n,p,t) end
  80. --for _,v in pairs(fth) do RegisterStateDriver(_G[v],'visibility','[combat]hide;show') end
  81.  
  82. --Размер Фреймов
  83. --PlayerFrame:SetScale(1.4)
  84. --TargetFrame:SetScale(1.4)
  85. --Boss1TargetFrame:SetScale(1.2)
  86. --Boss2TargetFrame:SetScale(1.2)
  87. --Boss3TargetFrame:SetScale(1.2)
  88. --Boss4TargetFrame:SetScale(1.2)
  89.  
  90. zMyTweaks.toc
  91. ## Title: zMy tweaks
  92. ## Interface: 80000
  93. ## Author: IamTsey
  94. ## Version: 1.0
  95.  
  96. zMyTweaks.lua
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