View Single Post
11-03-08, 01:42 PM   #201
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Originally Posted by hipjipp View Post
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
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }