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.

34 lines
1.0 KiB

local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule('Skins')
local _G = _G
local CreateFrame = CreateFrame
local hooksecurefunc = hooksecurefunc
function S:SkinQuestTimers()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.questtimers) then return end
local QuestTimerFrame = _G.QuestTimerFrame
S:HandleFrame(QuestTimerFrame, true)
E:CreateMover(QuestTimerFrame, 'QuestTimerFrameMover', _G.QUEST_TIMERS)
QuestTimerFrame:ClearAllPoints()
QuestTimerFrame:SetAllPoints(_G.QuestTimerFrameMover)
_G.QuestTimerHeader:Point('TOP', 1, 8)
local QuestTimerFrameHolder = CreateFrame('Frame', 'QuestTimerFrameHolder', E.UIParent)
QuestTimerFrameHolder:Size(150, 22)
QuestTimerFrameHolder:SetPoint('TOP', _G.QuestTimerFrameMover, 'TOP')
hooksecurefunc(QuestTimerFrame, 'SetPoint', function(_, _, parent)
if parent ~= QuestTimerFrameHolder then
QuestTimerFrame:ClearAllPoints()
QuestTimerFrame:Point('TOP', QuestTimerFrameHolder, 'TOP')
end
end)
end
S:AddCallback('SkinQuestTimers')