update np

This commit is contained in:
Bunny67
2018-07-28 21:14:28 +03:00
parent 05914d85e3
commit 31a64d0ca8
6 changed files with 50 additions and 17 deletions
@@ -44,7 +44,7 @@ function mod:ConfigureElement_CPoints(frame)
end
function mod:ConstructElement_CPoints(parent)
local frame = CreateFrame("Frame", nil, parent.HealthBar)
local frame = CreateFrame("Frame", "$parentComboPoints", parent.HealthBar)
frame:SetPoint("CENTER", parent.HealthBar, "BOTTOM")
frame:SetWidth(68)
frame:SetHeight(1)
+1 -2
View File
@@ -127,8 +127,7 @@ function mod:ConfigureElement_Glow(frame)
end
function mod:ConstructElement_Glow(frame)
local f = CreateFrame("Frame", nil, frame)
f:SetFrameLevel(frame.HealthBar:GetFrameLevel() - 1)
local f = CreateFrame("Frame", "$parentGlow", frame)
f:SetBackdrop({edgeFile = LSM:Fetch("border", "ElvUI GlowBorder"), edgeSize = E:Scale(6)})
f:Hide()
@@ -139,7 +139,7 @@ function mod:ConfigureElement_HealthBar(frame, configuring)
end
function mod:ConstructElement_HealthBar(parent)
local frame = CreateFrame("StatusBar", nil, parent)
local frame = CreateFrame("StatusBar", "$parentHealthBar", parent)
self:StyleFrame(frame)
--[[
frame:SetScript("OnSizeChanged", function()
@@ -29,7 +29,7 @@ function mod:ConfigureElement_Highlight(frame)
end
function mod:ConstructElement_Highlight(frame)
local f = CreateFrame("Frame", nil, frame)
local f = CreateFrame("Frame", "$parentHighlight", frame)
f.texture = frame.HealthBar:CreateTexture(nil, "ARTWORK")
f.texture:SetVertexColor(1, 1, 1, 0.3)
f.texture:Hide()