Quantcast oUF_Classbar - WoWInterface
Thread Tools Display Modes
10-01-16, 03:20 PM   #1
A Pyroguard Emberseer
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,612

Wrote myself a classbar module based on classicons.

Lua Code:
  1. --CreateClassBar
  2. local function CreateClassBar(self)
  3.   local s = CreateFrame("StatusBar", nil, self)
  4.   s:SetStatusBarTexture(mediapath.."statusbar")
  5.   s:SetHeight(self:GetHeight()/5)
  6.   s:SetWidth((self:GetWidth()-5)/2)
  7.   s:SetPoint("BOTTOMRIGHT",self,"TOPRIGHT",0,5)
  8.   --bg
  9.   local bg = s:CreateTexture(nil, "BACKGROUND")
  10.   bg:SetTexture(mediapath.."statusbar")
  11.   bg:SetAllPoints(s)
  12.   bg.multiplier = 0.3
  13.   s.bg = bg
  14.   --references
  15.   self.ClassBar = s
  16. end


How it looks: (the small bar above the player unitframe is the classbar. In this case combo points)

| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-01-16 at 05:54 PM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_Classbar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off