Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TargetFrameToT:ClearAllPoints();TargetFrameToT:SetPoint("LEFT",TargetFrame,"RIGHT",-108,-38);FocusFrameToT:ClearAllPoints();FocusFrameToT:SetPoint("LEFT",FocusFrame,"RIGHT",-108,-38)
- MicroButtonAndBagsBar:Hide()
- 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)
- ChatFrameToggleVoiceDeafenButton:ClearAllPoints()
- ChatFrameToggleVoiceDeafenButton:SetPoint("LEFT", UIParent, -150, 0)
- ChatFrameToggleVoiceMuteButton:ClearAllPoints()
- ChatFrameToggleVoiceMuteButton:SetPoint("LEFT", UIParent, -150, 0)
- ChatFrameChannelButton:ClearAllPoints()
- ChatFrameChannelButton:SetPoint("LEFT", UIParent, -150, 0)
- local LARGE_AURA_SIZE = 20 -- Auras you applied to target/focus. Default size 20
- local SMALL_AURA_SIZE = 18 -- Auras others applied to target/focus. Default size 18
- local AURA_OFFSET_Y = 3
- hooksecurefunc("TargetFrame_UpdateAuraPositions", function(self, auraName, numAuras, numOppositeAuras, largeAuraList, updateFunc, maxRowWidth, offsetX, mirrorAurasVertically)
- -- a lot of this complexity is in place to allow the auras to wrap around the target of target frame if it's shown
- -- Position auras
- local size;
- local offsetY = AURA_OFFSET_Y;
- -- current width of a row, increases as auras are added and resets when a new aura's width exceeds the max row width
- local rowWidth = 0;
- local firstBuffOnRow = 1;
- for i=1, numAuras do
- -- update size and offset info based on large aura status
- if ( largeAuraList[i] ) then
- size = LARGE_AURA_SIZE;
- offsetY = AURA_OFFSET_Y + AURA_OFFSET_Y;
- else
- size = SMALL_AURA_SIZE;
- end
- -- anchor the current aura
- if ( i == 1 ) then
- rowWidth = size;
- else
- rowWidth = rowWidth + size + offsetX;
- end
- if ( rowWidth > maxRowWidth ) then
- -- this aura would cause the current row to exceed the max row width, so make this aura
- -- the start of a new row instead
- updateFunc(self, auraName, i, numOppositeAuras, firstBuffOnRow, size, offsetX, offsetY, mirrorAurasVertically);
- rowWidth = size;
- firstBuffOnRow = i;
- offsetY = AURA_OFFSET_Y;
- else
- updateFunc(self, auraName, i, numOppositeAuras, i - 1, size, offsetX, offsetY, mirrorAurasVertically);
- end
- end
- end)
- MinimapZoomIn:Hide()
- MinimapZoomOut:Hide()
- Minimap:EnableMouseWheel(true)
- Minimap:SetScript('OnMouseWheel', function(self, delta)
- if delta > 0 then
- Minimap_ZoomIn()
- else
- Minimap_ZoomOut()
- end
- end)
- MiniMapTracking:ClearAllPoints()
- MiniMapTracking:SetPoint("TOPRIGHT", -26, 7)
- local function colour(statusbar, unit)
- local _, class, c
- if UnitIsPlayer(unit) and UnitIsConnected(unit) and unit == statusbar.unit and UnitClass(unit) then
- _, class = UnitClass(unit)
- c = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
- statusbar:SetStatusBarColor(c.r, c.g, c.b)
- end
- end
- hooksecurefunc("UnitFrameHealthBar_Update", colour)
- hooksecurefunc("HealthBar_OnValueChanged", function(self)
- colour(self, self.unit)
- end)
- local frame = CreateFrame("FRAME")
- frame:RegisterEvent("GROUP_ROSTER_UPDATE")
- frame:RegisterEvent("PLAYER_TARGET_CHANGED")
- frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
- frame:RegisterEvent("UNIT_FACTION")
- local function eventHandler(self, event, ...)
- if UnitIsPlayer("target") then
- c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
- TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b, 0)
- end
- if UnitIsPlayer("focus") then
- c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
- FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b, 0)
- end
- if PlayerFrame:IsShown() and not PlayerFrame.bg then
- c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
- bg=PlayerFrame:CreateTexture()
- bg:SetPoint("TOPLEFT",PlayerFrameBackground)
- bg:SetPoint("BOTTOMRIGHT",PlayerFrameBackground,0,22)
- bg:SetTexture(TargetFrameNameBackground:GetTexture())
- bg:SetVertexColor(c.r,c.g,c.b,0)
- PlayerFrame.bg=true
- end
- end
- frame:SetScript("OnEvent", eventHandler)
- for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground}) do
- BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
- end
- PetHitIndicator:SetText(nil)
- PetHitIndicator.SetText = function() end
- PetName:Hide()
- PlayerFrame:SetScale(1.07)
- TargetFrame:SetScale(1.07)
- FocusFrame:SetScale(1.07)
- TargetFrameToT:SetScale(1)
- FocusFrameToT:SetScale(1)
- BuffFrame:SetScale(1.20)
- DebuffFrame:SetScale(1.20)
- FocusFrameSpellBar:SetScale(1.0)
- TargetFrameSpellBar:SetScale(1.0)
- ChatFrameChannelButton:Hide()
- QuickJoinToastButton:Hide()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement