update tables

This commit is contained in:
Crum
2018-12-06 19:55:03 -06:00
parent cb90d0f1e5
commit 4d0cc6c85c
68 changed files with 705 additions and 597 deletions
+9 -9
View File
@@ -200,7 +200,7 @@ function mod:StyleFrame(parent, noBackdrop, point)
if not noBackdrop then
point.backdrop = parent:CreateTexture(nil, "BACKGROUND")
point.backdrop:SetAllPoints(point)
point.backdrop:SetTexture(unpack(E["media"].backdropfadecolor))
point.backdrop:SetTexture(unpack(E.media.backdropfadecolor))
end
if E.PixelMode then
@@ -208,25 +208,25 @@ function mod:StyleFrame(parent, noBackdrop, point)
point.bordertop:SetPoint("TOPLEFT", point, "TOPLEFT", -noscalemult, noscalemult)
point.bordertop:SetPoint("TOPRIGHT", point, "TOPRIGHT", noscalemult, noscalemult)
point.bordertop:SetHeight(noscalemult)
point.bordertop:SetTexture(unpack(E["media"].bordercolor))
point.bordertop:SetTexture(unpack(E.media.bordercolor))
point.borderbottom = parent:CreateTexture()
point.borderbottom:SetPoint("BOTTOMLEFT", point, "BOTTOMLEFT", -noscalemult, -noscalemult)
point.borderbottom:SetPoint("BOTTOMRIGHT", point, "BOTTOMRIGHT", noscalemult, -noscalemult)
point.borderbottom:SetHeight(noscalemult)
point.borderbottom:SetTexture(unpack(E["media"].bordercolor))
point.borderbottom:SetTexture(unpack(E.media.bordercolor))
point.borderleft = parent:CreateTexture()
point.borderleft:SetPoint("TOPLEFT", point, "TOPLEFT", -noscalemult, noscalemult)
point.borderleft:SetPoint("BOTTOMLEFT", point, "BOTTOMLEFT", noscalemult, -noscalemult)
point.borderleft:SetWidth(noscalemult)
point.borderleft:SetTexture(unpack(E["media"].bordercolor))
point.borderleft:SetTexture(unpack(E.media.bordercolor))
point.borderright = parent:CreateTexture()
point.borderright:SetPoint("TOPRIGHT", point, "TOPRIGHT", noscalemult, noscalemult)
point.borderright:SetPoint("BOTTOMRIGHT", point, "BOTTOMRIGHT", -noscalemult, -noscalemult)
point.borderright:SetWidth(noscalemult)
point.borderright:SetTexture(unpack(E["media"].bordercolor))
point.borderright:SetTexture(unpack(E.media.bordercolor))
else
point.bordertop = parent:CreateTexture(nil, "OVERLAY")
point.bordertop:SetPoint("TOPLEFT", point, "TOPLEFT", -noscalemult, noscalemult*2)
@@ -521,7 +521,7 @@ function mod:AnimatedHide()
num = num + 1
end
if num < 1 then
end
end
@@ -649,7 +649,7 @@ function mod:OnUpdate()
end
for frame in pairs(mod.VisiblePlates) do
if mod.hasTarget then
if mod.hasTarget then
frame.alpha = frame:GetParent():GetAlpha()
else
frame.alpha = 1
@@ -801,8 +801,8 @@ function mod:ClassCache_ClassUpdated(_, name, class)
end
function mod:Initialize()
self.db = E.db["nameplates"]
if E.private["nameplates"].enable ~= true then return end
self.db = E.db.nameplates
if E.private.nameplates.enable ~= true then return end
self.hasTarget = false