Thread: oUF_Classbar
View Single Post
10-01-16, 03:20 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
oUF_Classbar

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

Module:
https://github.com/zorker/rothui/blo.../rClassBar.lua

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


More:
http://imgur.com/a/A5zIz
http://imgur.com/a/EA4Dh
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"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