remove temp folder structure

This commit is contained in:
Crum
2018-02-19 21:03:21 -06:00
parent 85a2a5bcf7
commit 611f11aff9
408 changed files with 0 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local B = E:GetModule("Blizzard");
--Cache global variables
--Lua functions
local min = math.min
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local GetScreenWidth = GetScreenWidth
local GetScreenHeight = GetScreenHeight
local WatchFrameHolder = CreateFrame("Frame", "WatchFrameHolder", E.UIParent)
WatchFrameHolder:SetWidth(150)
WatchFrameHolder:SetHeight(22)
WatchFrameHolder:SetPoint("TOPRIGHT", E.UIParent, "TOPRIGHT", -135, -300)
function B:SetWatchFrameHeight()
local top = QuestWatchFrame:GetTop() or 0
local screenHeight = GetScreenHeight()
local gapFromTop = screenHeight - top
local maxHeight = screenHeight - gapFromTop
local watchFrameHeight = min(maxHeight, E.db.general.watchFrameHeight)
QuestWatchFrame:SetHeight(watchFrameHeight)
end
function B:MoveWatchFrame()
E:CreateMover(WatchFrameHolder, "WatchFrameMover", L["Watch Frame"])
WatchFrameHolder:SetAllPoints(WatchFrameMover)
QuestWatchFrame:ClearAllPoints()
QuestWatchFrame:SetPoint("TOP", WatchFrameHolder, "TOP")
B:SetWatchFrameHeight()
QuestWatchFrame:SetClampedToScreen(false)
hooksecurefunc(QuestWatchFrame, "SetPoint", function(_, _, parent)
if parent ~= WatchFrameHolder then
QuestWatchFrame:ClearAllPoints()
QuestWatchFrame:SetPoint("TOP", WatchFrameHolder, "TOP")
end
end)
end