Fixes Enhanced character frame
Update nameplate coloring. Fix world map blips
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
local E, L, V, P, G = unpack(ElvUI)
|
||||
local mod = E:GetModule("Enhanced_Blizzard")
|
||||
local LSM = LibStub("LibSharedMedia-3.0")
|
||||
|
||||
local defaultSettings = {
|
||||
width = 512,
|
||||
height = 60,
|
||||
font = "PT Sans Narrow",
|
||||
fontSize = 15,
|
||||
fontOutline = "NONE"
|
||||
}
|
||||
|
||||
function mod:ErrorFrameSize(db)
|
||||
db = db or E.db.enhanced.blizzard.errorFrame
|
||||
|
||||
UIErrorsFrame:Size(db.width, db.height)
|
||||
UIErrorsFrame:SetFont(LSM:Fetch("font", db.font), db.fontSize, db.fontOutline)
|
||||
|
||||
if not UIErrorsFrame.mover then
|
||||
E:CreateMover(UIErrorsFrame, "UIErrorsFrameMover", L["Error Frame"], nil, nil, nil, "ALL,GENERAL", nil, "elvuiPlugins,enhanced,miscGroup,errorFrame")
|
||||
end
|
||||
end
|
||||
|
||||
function mod:CustomErrorFrameToggle()
|
||||
if E.db.enhanced.blizzard.errorFrame.enable then
|
||||
self:ErrorFrameSize()
|
||||
E:EnableMover(UIErrorsFrame.mover:GetName())
|
||||
else
|
||||
self:ErrorFrameSize(defaultSettings)
|
||||
UIErrorsFrame:Point("TOP", 0, -122)
|
||||
|
||||
if UIErrorsFrame.mover then
|
||||
E:DisableMover(UIErrorsFrame.mover:GetName())
|
||||
UIErrorsFrame.mover:ClearAllPoints()
|
||||
UIErrorsFrame.mover:Point("TOP", 0, -122)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user