Originally Posted by hipjipp
Thanks! Working nicely now. Now i'm just going to add a border around it to make it look sleeker.. =)
Edit: I can't seem to get my self.Threat.bg to be created by self.Threat, it bums out.
Code:
Attempt to call method "CreateTexture" (a nil value)
Code:
self.Threat = self.Health:CreateTexture(nil,"BACKGROUND")
self.Threat:SetTexture(statusbar)
self.Threat:SetPoint("RIGHT", self, "LEFT", -2, 0)
self.Threat:SetHeight(20)
self.Threat:SetWidth(10)
self.Threat.bg = self.Threat:CreateTexture(nil, "BORDER")
self.Threat.bg:SetAllPoints(self.Threat)
self.Threat.bg:SetTexture(.25, .25, .25)
|
From my understanding you're trying to create a texture attached to another texture instead of a status bar, a .bg needs a statusbar to attach to, any higher instance correct me if i'm wrong