unitframes

This commit is contained in:
Bunny67
2017-12-23 16:02:33 +03:00
parent 8091dfe7ed
commit f5d7682f92
5 changed files with 9 additions and 4 deletions
@@ -208,6 +208,7 @@ local function configureChildren(self)
local childAttr = "child"..i local childAttr = "child"..i
if not self:GetAttribute(childAttr) then if not self:GetAttribute(childAttr) then
local newButton = CreateFrame("Button", name.."UnitButton"..i, self) local newButton = CreateFrame("Button", name.."UnitButton"..i, self)
newButton:SetFrameStrata("LOW")
SetupUnitButtonConfiguration(self, newButton) SetupUnitButtonConfiguration(self, newButton)
self:SetAttribute(childAttr, newButton) self:SetAttribute(childAttr, newButton)
end end
@@ -3,7 +3,7 @@ local UF = E:GetModule("UnitFrames");
function UF:Construct_RaidIcon(frame) function UF:Construct_RaidIcon(frame)
local tex = frame.RaisedElementParent.TextureParent:CreateTexture(nil, "OVERLAY") local tex = frame.RaisedElementParent.TextureParent:CreateTexture(nil, "OVERLAY")
tex:SetTexture([[Interface\TargetingFrame\UI-RaidTargetingIcons]]) tex:SetTexture([[Interface\AddOns\ElvUI\media\textures\raidicons]])
tex:SetWidth(18) tex:SetWidth(18)
tex:SetHeight(18) tex:SetHeight(18)
tex:SetPoint("CENTER", frame.Health, "TOP", 0, 2) tex:SetPoint("CENTER", frame.Health, "TOP", 0, 2)
@@ -19,8 +19,9 @@ function UF:Construct_PartyFrames()
self:SetScript("OnLeave", UnitFrame_OnLeave) self:SetScript("OnLeave", UnitFrame_OnLeave)
self.RaisedElementParent = CreateFrame("Frame", nil, self) self.RaisedElementParent = CreateFrame("Frame", nil, self)
self.RaisedElementParent.TextureParent = CreateFrame("Frame", nil, self.RaisedElementParent)
self.RaisedElementParent:SetFrameLevel(self:GetFrameLevel() + 100) self.RaisedElementParent:SetFrameLevel(self:GetFrameLevel() + 100)
self.RaisedElementParent.TextureParent = CreateFrame("Frame", nil, self.RaisedElementParent)
self.RaisedElementParent.TextureParent:SetFrameLevel(self.RaisedElementParent:GetFrameLevel() + 1)
self.Health = UF:Construct_HealthBar(self, true, true, "RIGHT") self.Health = UF:Construct_HealthBar(self, true, true, "RIGHT")
self.Power = UF:Construct_PowerBar(self, true, true, "LEFT") self.Power = UF:Construct_PowerBar(self, true, true, "LEFT")
@@ -19,8 +19,9 @@ function UF:Construct_RaidFrames()
self:SetScript("OnLeave", UnitFrame_OnLeave) self:SetScript("OnLeave", UnitFrame_OnLeave)
self.RaisedElementParent = CreateFrame("Frame", nil, self) self.RaisedElementParent = CreateFrame("Frame", nil, self)
self.RaisedElementParent.TextureParent = CreateFrame("Frame", nil, self.RaisedElementParent)
self.RaisedElementParent:SetFrameLevel(self:GetFrameLevel() + 100) self.RaisedElementParent:SetFrameLevel(self:GetFrameLevel() + 100)
self.RaisedElementParent.TextureParent = CreateFrame("Frame", nil, self.RaisedElementParent)
self.RaisedElementParent.TextureParent:SetFrameLevel(self.RaisedElementParent:GetFrameLevel() + 1)
self.Health = UF:Construct_HealthBar(self, true, true, "RIGHT") self.Health = UF:Construct_HealthBar(self, true, true, "RIGHT")
self.Power = UF:Construct_PowerBar(self, true, true, "LEFT") self.Power = UF:Construct_PowerBar(self, true, true, "LEFT")
@@ -211,8 +211,9 @@ function UF:Construct_UF(frame, unit)
frame:SetFrameStrata("LOW") frame:SetFrameStrata("LOW")
frame.RaisedElementParent = CreateFrame("Frame", nil, frame) frame.RaisedElementParent = CreateFrame("Frame", nil, frame)
frame.RaisedElementParent.TextureParent = CreateFrame("Frame", nil, frame.RaisedElementParent)
frame.RaisedElementParent:SetFrameLevel(frame:GetFrameLevel() + 100) frame.RaisedElementParent:SetFrameLevel(frame:GetFrameLevel() + 100)
frame.RaisedElementParent.TextureParent = CreateFrame("Frame", nil, frame.RaisedElementParent)
frame.RaisedElementParent.TextureParent:SetFrameLevel(frame.RaisedElementParent:GetFrameLevel() + 1)
if not self["groupunits"][unit] then if not self["groupunits"][unit] then
local stringTitle = E:StringTitle(unit) local stringTitle = E:StringTitle(unit)
@@ -722,6 +723,7 @@ function UF:CreateAndUpdateHeaderGroup(group, groupFilter, template, headerUpdat
if db.numGroups then if db.numGroups then
self[group] = CreateFrame("Frame", "ElvUF_"..stringTitle, E.UIParent) self[group] = CreateFrame("Frame", "ElvUF_"..stringTitle, E.UIParent)
self[group]:SetFrameStrata("LOW")
self[group].groups = {} self[group].groups = {}
self[group].groupName = group self[group].groupName = group
self[group].template = self[group].template or template self[group].template = self[group].template or template