Language:
Lua     Change language:
Pastebin: 123468
Author: Anonymous
Subject: Re: TotemBar integration exemple
Created: 2009-08-27 03:38:13
Download and save
Toggle line numbers
1if IsAddOnLoaded("oUF_TotemBar") and unit == "player"  and playerClass == "SHAMAN" then 
2    self.TotemBar = {} 
3    for i = 1, 4 do 
4        self.TotemBar[i] = CreateFrame("StatusBar", nil, self) 
5        self.TotemBar[i]:SetHeight(7
6        self.TotemBar[i]:SetWidth(230/4 - 0.85
7        if (i == 1) then 
8            self.TotemBar[i]:SetPoint("TOPLEFT", self, "BOTTOMLEFT", 0, -1
9        else 
10            self.TotemBar[i]:SetPoint("TOPLEFT", self.TotemBar[i-1], "TOPRIGHT", 1, 0
11        end 
12        self.TotemBar[i]:SetStatusBarTexture(statusbar) 
13        self.TotemBar[i]:SetBackdrop(backdrop) 
14        self.TotemBar[i]:SetBackdropColor(0, 0, 0
15        self.TotemBar[i]:SetMinMaxValues(0, 1
16        self.TotemBar[i].destroy = true 
17 
18        self.TotemBar[i].bg = self.TotemBar[i]:CreateTexture(nil, "BORDER"
19        self.TotemBar[i].bg:SetAllPoints(self.TotemBar[i]) 
20        self.TotemBar[i].bg:SetTexture(statusbar) 
21        self.TotemBar[i].bg.multiplier = 0.25 
22 
23    end 
24end 
Thread:
[115326] TotemBar integration exemple by Soeters at 2009-06-03 11:00:19 (diff)
  [123468] Re: TotemBar integration exemple by Anonymous at 2009-08-27 03:38:13
  [131013] Re: TotemBar integration exemple by Anonymous at 2010-01-05 10:44:59 (diff)
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.