Download
(2Kb)
Download
Updated: 07-02-12 07:37 PM
Updated:07-02-12 07:37 PM
Created:07-02-12 12:36 AM
Downloads:1,648
Favorites:2
MD5:

oUF Shadow Orbs Bar

Version: 1.03
by: tukz [More]

Little oUF plugins for Shadow Priest (shadow orbs) on MoP Beta. This is not yet include in oUF so Ive made a couple of weeks ago a plugin for it. Haste will probably include this feature in oUF at a later date so this plugin is just for helping oUF layout editor temporary on MoP Beta with their oUF layouts.

Layout Example:

Code:
-- Priest Shadow Orbs Bar
if select(2, UnitClass("player")) == "PRIEST" then
	local pb = CreateFrame("Frame", "TukuiShadowOrbsBar", self)
	pb:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 1)
	pb:SetWidth(250)
	pb:SetHeight(8)
	pb:SetBackdrop({
	  bgFile = texture, 
	  edgeFile = C.media.blank, 
	  tile = false, tileSize = 0, edgeSize = 1, 
	  insets = { left = -1, right = -1, top = -1, bottom = -1}
	})
	pb:SetBackdropColor(unpack(C.media.backdropcolor))
	pb:SetBackdropBorderColor(unpack(C.media.backdropcolor))
	
	for i = 1, 3 do
		pb[i] = CreateFrame("StatusBar", "TukuiShadowOrbsBar"..i, pb)
		pb[i]:SetHeight(8)
		pb[i]:SetStatusBarTexture(C.media.normTex)
		
		if i == 1 then
			pb[i]:SetWidth((250 / 3) - 1)
			pb[i]:SetPoint("LEFT", pb, "LEFT", 0, 0)
		else
			pb[i]:SetWidth((250 / 3))
			pb[i]:SetPoint("LEFT", pb[i-1], "RIGHT", 1, 0)
		end
	end
	
	self.ShadowOrbsBar = pb
end

Optional Files (0)


Post A Reply Comment Options
Unread 07-02-12, 08:30 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1146
Uploads: 17
You refer to Update rather than Path in Enable/Disable and AddElement.
Report comment to moderator  
Reply With Quote
Unread 07-02-12, 07:31 PM  
tukz
A Fallenroot Satyr
 
tukz's Avatar
AddOn Author - Click to view AddOns

Forum posts: 20
File comments: 50
Uploads: 3
Yeah, thanks, its edited and updated.
Report comment to moderator  
Reply With Quote
Unread 09-11-12, 03:43 PM  
xylocane
A Kobold Labourer

Forum posts: 1
File comments: 1
Uploads: 0
move bar

The shadow Orb bar is center right over my toon. Tried movers, but don't work.
This is the most annoying thing ever. Please let me know how to move this , so I can see my Toon.
Thanks much ahead of time :-)
Last edited by xylocane : 09-11-12 at 03:44 PM.
Report comment to moderator  
Reply With Quote
Unread 08-20-13, 11:03 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Hello friend,

I have been bussy with lua as hobby but i have issues

I got the bars but the bars are colored but i do not have orbs in the game




Code:
	local ShadowOrbsBar = function(self)

		if PlayerClass == "PRIEST" then
			self.ShadowOrbsBar = CreateFrame("Frame", nil, self)
			
			local Colors = {
				[1] = {109/255, 51/255, 188/255, 1},
				[2] = {139/255, 51/255, 188/255, 1},
				[3] = {179/255, 51/255, 188/255, 1},
			}

			for i= 1, 3 do
				self.ShadowOrbsBar[i] = CreateFrame("StatusBar", self:GetName().."_ShadowOrbsBar"..i, self)
				self.ShadowOrbsBar[i]:SetHeight(cfg.ShadowOrbs_height)
				self.ShadowOrbsBar[i]:SetWidth(cfg.ShadowOrbs_width)
				self.ShadowOrbsBar[i]:SetStatusBarTexture(texture)
				self.ShadowOrbsBar[i]:SetStatusBarColor(unpack(Colors[i]))
				self.ShadowOrbsBar[i].bg = self.ShadowOrbsBar[i]:CreateTexture(nil, "BORDER")
				self.ShadowOrbsBar[i].bg:SetAllPoints()
				self.ShadowOrbsBar[i].bg:SetTexture(texture)
				self.ShadowOrbsBar[i].bg:SetVertexColor(0.35, 0.35, 0.35, 0.35)
				if (i == 1) then
					self.ShadowOrbsBar[i]:SetPoint('LEFT', self, 'RIGHT', cfg.ShadowOrbs_x, cfg.ShadowOrbs_y)
				else
					self.ShadowOrbsBar[i]:SetPoint('TOPLEFT', self.ShadowOrbsBar[i-1], "TOPRIGHT", cfg.ShadowOrbs_spacing, 0)
				end
			end
		end
	end
Could u please help me?
Last edited by illum1n4ti : 08-20-13 at 11:03 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: