nice, it works now,
local smallcircle5 = CreateFrame("Frame", "SmallCircleTopCenter", self)
smallcircle5:RegisterEvent("GROUP_ROSTER_UPDATE")
smallcircle5:SetFrameLevel(self.Health:GetFrameLevel() + 5)
local smallcircle5texture = smallcircle5:CreateTexture(nil, "ARTWORK")
smallcircle5:SetScript("OnEvent", function(self, event, ...)
if IsInGroup(unit) then
smallcircle5texture:SetTexture(m.textures.smallcircle)
end
end)
smallcircle5texture:SetPoint('CENTER', self, 46, 35)
smallcircle5texture:SetSize(26,26)
smallcircle5texture:SetTexCoord(0, 1, 0, 1)
|
But the texture stays, even if im not in group anymore.