Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
Download
Updated: 07-02-12 07:37 PM
Updated:07-02-12 07:37 PM
Created:07-02-12 12:36 AM
Downloads:1,083
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)


Archived Files (2)
File Name
Version
Size
Author
Date
1.02
2kB
tukz
07-02-12 07:29 PM
1.01
2kB
tukz
07-02-12 01:57 AM


Post A Reply Comment Options
Unread 08-20-13, 11:03 AM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 71
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 Cashtro : 08-20-13 at 11:03 AM.
Cashtro is offline 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.
xylocane is offline 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: 6
Yeah, thanks, its edited and updated.
tukz is offline Report comment to moderator  
Reply With Quote
Unread 07-02-12, 08:30 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1172
File comments: 1137
Uploads: 31
You refer to Update rather than Path in Enable/Disable and AddElement.
Haleth is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: