Category: oUF: Plugins
Addon Information
Works with 3.3
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Soeters's Portal Bug Reports Feature Requests
Author:
Version:
r4
Date:
12-16-2009 08:35 AM
Size:
2.89 Kb
Downloads:
3,890
Favorites:
68
MD5:
Pictures
Click to enlarge
Exemple of integration in oUF_Deith
oUF TotemBar
Overview

oUF_TotemBar is a little plugin for shamans using oUF.
You will need oUF, a layout providing support for this plugin.


Features
  • Status bar for every totem
  • Abbreviated name (for exemple Strength of Earth Totem will be S.o.E.T and Totem of Wrath will be T.o.W.).
  • Custom colors if you want
  • Custom delay
  • Delete one totem on click, every totem on shift-click

Click here to submit a bug
Click here for a feature request



Documentation


All the documentation is at the top of oUF_TotemBar.lua but you can also see an exemple of integration here.
You will need to add oUF_TotemBar in the optional dependencies of your layout in the TOC file.
(New): The .Name element is now handled, it looks like every fontstring for elements

Thanks
haste for helping me with my (several) errors
p3lim for his RuneBar inspiration
  Change Log - oUF TotemBar
r4
Added a destroy totem option
TOC update

r3
TOC bump

r2
Added the .Name element for the totem Name
  Archived Versions - oUF TotemBar
File Name
Version
Size
Author
Date
r3
3kB
Soeters
08-05-2009 05:24 AM
r2
3kB
Soeters
07-29-2009 02:13 PM
r1
2kB
Soeters
06-03-2009 11:02 AM
  Comments - oUF TotemBar
Post A Reply Comment Options
Old 01-23-2010, 09:12 AM  
Soeters
A Black Drake
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 87
File comments: 172
Uploads: 21
It's .Destroy and not .destroy
I updated it for my layout but only on my version and I forgot to update it

The only thing you have to do is adding
Code:
self.TotemBar.Destroy = true
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-23-2010, 07:32 AM  
Caellian
A Chromatic Dragonspawn
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 705
Uploads: 4
Quote:
Originally posted by Soeters
Yes it works, a simple right-click destroy the clicked totem, a shift-click destroy them all
Weird then, i'm obviously using the latest version of your plugin.

Tried in my layout, no go, then i even tried your layout, still no go.

You don't seems to have the .destroy in it though.
__________________


Quote:
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-23-2010, 07:30 AM  
Soeters
A Black Drake
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 87
File comments: 172
Uploads: 21
Yes it works, a simple right-click destroy the clicked totem, a shift-click destroy them all
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-23-2010, 07:13 AM  
Caellian
A Chromatic Dragonspawn
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 705
Uploads: 4
In its current state, does the .Destroy option work ?
__________________


Quote:
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }

Last edited by Caellian : 01-23-2010 at 07:14 AM.
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-19-2010, 09:34 AM  
Soeters
A Black Drake
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 87
File comments: 172
Uploads: 21
Then can you zip me your version and send it so that I can test on my computer and try to fix it
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-17-2010, 12:49 PM  
Jadessia
A Kobold Labourer
 
Jadessia's Avatar

Forum posts: 1
File comments: 8
Uploads: 0
Quote:
Originally posted by Soeters
Fixed version: http://wowi.pastey.net/131553

That didn't work because you didn't add the piece of code in the good place, but I fixed this
sadly this didn't work either, i tried with placing it there before but i had same result, being that the layout doesnt work and default blizzard frames are shown instead. thanks for the help tho
Jadessia is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-17-2010, 06:27 AM  
Soeters
A Black Drake
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 87
File comments: 172
Uploads: 21
Quote:
Originally posted by Jadessia
ahh sorry

well i changed it to class and still nothing.

http://wowi.pastey.net/131531-2fmb

thats the entire layout but yeah settings file aint included.
Fixed version: http://wowi.pastey.net/131553

That didn't work because you didn't add the piece of code in the good place, but I fixed this
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-16-2010, 11:42 AM  
Jadessia
A Kobold Labourer
 
Jadessia's Avatar

Forum posts: 1
File comments: 8
Uploads: 0
ahh sorry

well i changed it to class and still nothing.

http://wowi.pastey.net/131531-2fmb

thats the entire layout but yeah settings file aint included.
Jadessia is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-16-2010, 07:18 AM  
Soeters
A Black Drake
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 87
File comments: 172
Uploads: 21
Is the variable playerClass set somewhere because if it's not set then it will never be true and you'll never see a bar, that's why I wanted to see the whole layout
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-15-2010, 03:11 PM  
Jadessia
A Kobold Labourer
 
Jadessia's Avatar

Forum posts: 1
File comments: 8
Uploads: 0
Quote:
Originally posted by Soeters
Verify that the textures are correctly set (e.g SetStatusBarTexture(tex) can be another thing).
If you're not really sure then post the layout here: http://wowi.pastey.net/
Then give me the link and I'll try to fix it
this is the code i use. settings.xxx is because the font/statusbar texture is in its on lua file.

Code:
if IsAddOnLoaded("oUF_TotemBar") and unit == "player"  and playerClass == "SHAMAN" then
	self.TotemBar = {}
	for i = 1, 4 do
		self.TotemBar[i] = CreateFrame("StatusBar", nil, self)
		self.TotemBar[i]:SetHeight(7)
		self.TotemBar[i]:SetWidth(240/4 - 0.85)
		if (i == 1) then
			self.TotemBar[i]:SetPoint("TOPLEFT", self, "BOTTOMLEFT", 0, -1)
		else
			self.TotemBar[i]:SetPoint("TOPLEFT", self.TotemBar[i-1], "TOPRIGHT", 1, 0)
		end
		self.TotemBar[i]:SetStatusBarTexture(settings.texture)
		self.TotemBar[i]:SetBackdrop(backdrop)
		self.TotemBar[i]:SetBackdropColor(0, 0, 0)
		self.TotemBar[i]:SetMinMaxValues(0, 1)
						
		self.TotemBar[i].bg = self.TotemBar[i]:CreateTexture(nil, "BORDER")
		self.TotemBar[i].bg:SetAllPoints(self.TotemBar[i])
		self.TotemBar[i].bg:SetTexture(settings.texture)
		self.TotemBar[i].bg.multiplier = 0.25
		
		self.TotemBar[i].Name = SetFontString(self.TotemBar[i],settings.font,12)
		self.TotemBar[i].Name:SetPoint("LEFT",self.TotemBar[i],"LEFT",1,0)

	end
end
Jadessia is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-15-2010, 09:58 AM  
Soeters
A Black Drake
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 87
File comments: 172
Uploads: 21
Quote:
Originally posted by Jadessia
Hello,

Trying to implant this into oUF_Alza (Alza UI), i copied the code from Deith and added it into the layout. but when i log on and cast totems no bars comes up.

i also have totemtimers installed but dunno if that can be the reason :S

i also added oUF_TotemBar to Toc optional files etc and can't really find any reason why its not working :S and as i'm fairly new to coding and only know a little basics i thought i should ask you the author.

thanks in advance!
Verify that the textures are correctly set (e.g SetStatusBarTexture(tex) can be another thing).
If you're not really sure then post the layout here: http://wowi.pastey.net/
Then give me the link and I'll try to fix it
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-14-2010, 05:43 PM  
Jadessia
A Kobold Labourer
 
Jadessia's Avatar

Forum posts: 1
File comments: 8
Uploads: 0
Hello,

Trying to implant this into oUF_Alza (Alza UI), i copied the code from Deith and added it into the layout. but when i log on and cast totems no bars comes up.

i also have totemtimers installed but dunno if that can be the reason :S

i also added oUF_TotemBar to Toc optional files etc and can't really find any reason why its not working :S and as i'm fairly new to coding and only know a little basics i thought i should ask you the author.

thanks in advance!
Jadessia is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-17-2009, 12:20 PM  
Jrz
A Defias Bandit

Forum posts: 2
File comments: 1
Uploads: 0
oUF_TotemBar + oUF_Tukz

Hello,

I was wondering if you would be able to check out my post here: http://www.wowinterface.com/forums/s...ad.php?t=29336 and offer any advice.

I'm only linking it to not clutter this section with essentially a double-post. I'm checking for replies both here and in that thread, so whichever is easiest to reply in works for me!
Jrz is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-16-2009, 08:58 AM  
Soeters
A Black Drake
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 87
File comments: 172
Uploads: 21
Quote:
Originally posted by Ferous
You are the best! Thank you!
That wasn't too hard to implement
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-16-2009, 08:49 AM  
Ferous
Imaginary!
 
Ferous's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 223
File comments: 481
Uploads: 24
Quote:
Originally posted by Soeters
Yes that's one of the features I'm working on
You are the best! Thank you!
Ferous is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.