mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
21 lines
562 B
Lua
21 lines
562 B
Lua
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
|
local B = E:GetModule("Blizzard");
|
|
|
|
--Cache global variables
|
|
--Lua functions
|
|
local _G = _G
|
|
--WoW API / Variables
|
|
|
|
function B:PositionDurabilityFrame()
|
|
DurabilityFrame:SetFrameStrata("HIGH")
|
|
|
|
local function SetPosition(self, _, parent)
|
|
if parent == "MinimapCluster" or parent == _G["MinimapCluster"] then
|
|
self:ClearAllPoints()
|
|
self:SetPoint("RIGHT", Minimap, "RIGHT")
|
|
self:SetScale(0.6)
|
|
end
|
|
end
|
|
|
|
hooksecurefunc(DurabilityFrame, "SetPoint", SetPosition)
|
|
end |