You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.0 KiB

4 years ago
local E, L, V, P, G = unpack(ElvUI)
5 years ago
local S = E:GetModule('Skins')
local _G = _G
local CreateFrame = CreateFrame
local hooksecurefunc = hooksecurefunc
5 months ago
local function SetupDisplay(frame)
if frame.Icon then
frame.Icon:ClearAllPoints()
frame.Icon:Point('CENTER', frame, 'CENTER', 0, 0)
end
if frame.AbilityName then
frame.AbilityName:ClearAllPoints()
frame.AbilityName:Point('BOTTOM', frame, 0, -28)
frame.AbilityName:FontTemplate(nil, 20, 'OUTLINE')
frame.AbilityName.scrollTime = nil -- huh?
end
if frame.TimeLeft then
frame.TimeLeft.NumberText:ClearAllPoints()
frame.TimeLeft.NumberText:Point('BOTTOM', frame, 4, -58)
frame.TimeLeft.NumberText:FontTemplate(nil, 20, 'OUTLINE')
frame.TimeLeft.NumberText.scrollTime = nil -- huh?
frame.TimeLeft.SecondsText:ClearAllPoints()
frame.TimeLeft.SecondsText:Point('BOTTOM', frame, 0, -80)
frame.TimeLeft.SecondsText:FontTemplate(nil, 20, 'OUTLINE')
frame.TimeLeft.SecondsText.scrollTime = nil -- huh?
end
-- always stop shake animation on start
if frame.Anim:IsPlaying() then
frame.Anim:Stop()
end
end
5 years ago
function S:LossOfControlFrame()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.losscontrol) then return end
--/run LossOfControlFrame.fadeTime = 2000; LossOfControlFrame_SetUpDisplay(LossOfControlFrame, true, 'CONFUSE', 2094, 'Disoriented', [[Interface\Icons\Spell_Shadow_MindSteal]], 72101.9765625, 7.9950003623962, 8, 0, 5, 2)
local LossOfControlFrame = _G.LossOfControlFrame
local IconBackdrop = CreateFrame('Frame', nil, LossOfControlFrame)
IconBackdrop:SetTemplate()
IconBackdrop:SetOutside(LossOfControlFrame.Icon)
5 months ago
IconBackdrop:OffsetFrameLevel(-1, LossOfControlFrame)
5 years ago
LossOfControlFrame.Icon:SetTexCoord(.1, .9, .1, .9)
LossOfControlFrame:StripTextures()
LossOfControlFrame.AbilityName:ClearAllPoints()
LossOfControlFrame:Size(LossOfControlFrame.Icon:GetWidth() + 50)
5 months ago
hooksecurefunc(LossOfControlFrame, 'SetUpDisplay', SetupDisplay)
5 years ago
end
S:AddCallback('LossOfControlFrame')