WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   oUF_Classbar (https://www.wowinterface.com/forums/showthread.php?t=54581)

zork 10-01-16 03:20 PM

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


All times are GMT -6. The time now is 03:58 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI