Download
(3Kb)
Download
Updated: 12-16-09 07:35 AM
Pictures
File Info
Updated:12-16-09 07:35 AM
Created:06-03-09 09:02 AM
Downloads:14,142
Favorites:69
MD5:

oUF TotemBar  Popular! (More than 5000 hits)

Version: r4
by: Soeters [More]

I've stopped playing WoW, so this addon won't be updated again, at least not by me.
If someone feels like updating it, just PM me.


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

r4
Added a destroy totem option
TOC update

r3
TOC bump

r2
Added the .Name element for the totem Name
Post A Reply Comment Options
Unread 09-25-12, 06:24 AM  
ckaotik
A Fallenroot Satyr
 
ckaotik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 168
Uploads: 5
It seems that either the events for totems have slightly changed with MoP or MoP oUF versions changed their event handling.

Either way, to get your totem bar up and running again, you need to add 'true' as a third argument to the totem bar's event registration within oUF_TotemBar's lua file. This is so that no unit is required for handling the event.
Code:
self:RegisterEvent("PLAYER_TOTEM_UPDATE", Event, true)
__________________
It all starts to make a creepy kind of sense. Avatar
Report comment to moderator  
Reply With Quote
Unread 08-08-10, 03:20 AM  
Elen'
A Murloc Raider
 
Elen''s Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 36
Uploads: 2
Le problème est résolu, j'avais oublié le :


Code:
local playerClass = string.upper(select(2, UnitClass('player')))
Merci quand-même
Report comment to moderator  
Reply With Quote
Unread 08-06-10, 03:40 PM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 20
L'as-tu bien rajouté dans les dépendances optionnelles dans ton fichier TOC. Vu que ton layout est chargé avant le plugin (ordre alphabétique) il risque de pas le voir chargé si tu lui as pas signalé de l'attendre.
C'est la seule raison que je vois
__________________
Report comment to moderator  
Reply With Quote
Unread 08-03-10, 11:20 AM  
Elen'
A Murloc Raider
 
Elen''s Avatar
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 36
Uploads: 2
Salut !

Voilà, j'ai un souci avec ton add-on, quand j'essaie d'intégrer les barres de totem a mon Layout pour oUF, je n'ai rien qui s'affiche (pas d'erreur non plus)

Je ne me suis pas compliqué la vie, j'ai juste copié/collé le code que tu as linké au dessous

En modifiant avec mes Locals, ça donne ça:

Code:
if IsAddOnLoaded("oUF_TotemBar") and class == "SHAMAN" then
	self.TotemBar = {}
	self.TotemBar.Destroy = true
	for i = 1, 4 do
		self.TotemBar[i] = CreateFrame("StatusBar", nil, self)
		self.TotemBar[i]:SetHeight(4)
		self.TotemBar[i]:SetWidth(width/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(statusbar)
		self.TotemBar[i]:SetBackdrop(statusbackback)
		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(statusbar)
		self.TotemBar[i].bg.multiplier = 0.3
	end
end
Quand on lit le code, ça devrait fonctionner et pourtant, non ...

Tu aurais une idée?
Report comment to moderator  
Reply With Quote
Unread 04-24-10, 07:50 AM  
Mokane
A Deviate Faerie Dragon
 
Mokane's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 21
Uploads: 1
Originally posted by Soeters
Yeah I might consider it, but how would you like to see it implemented (I no longer play my shaman so I don't have any idea) ?
Most are click on totem type (fire, water, etc) and there is a dropdown that shows all totems of that type. Clicking on the totem in the dropdown sets it to your default for that set. Again, there are many other addons that do this so if you don't want to do this no harm done.
Report comment to moderator  
Reply With Quote
Unread 04-24-10, 05:37 AM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 20
Yeah I might consider it, but how would you like to see it implemented (I no longer play my shaman so I don't have any idea) ?
__________________
Report comment to moderator  
Reply With Quote
Unread 04-23-10, 10:23 PM  
Mokane
A Deviate Faerie Dragon
 
Mokane's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 21
Uploads: 1
Any thoughts on if you are going to add the ability to change totem sets through this? Really the only feature missing from other totem bar mods. Great plugin work so far though. Thanks a ton for it.
Report comment to moderator  
Reply With Quote
Unread 03-31-10, 07:46 PM  
FyreFoxx
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 0
Ah, thank you! Works like a charm now! I don't see any abbreviated names, but I can live with that. At least the unsummon action works. ^_^ Thank you for being patient with me and helping me to fix the coding. You, sir, are god for making this.
Report comment to moderator  
Reply With Quote
Unread 03-31-10, 01:39 PM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 20
The code should be like that
Code:
if IsAddOnLoaded("oUF_TotemBar") and class == "SHAMAN" then
	self.TotemBar = {}
	self.TotemBar.Destroy = true
	for i = 1, 4 do
		self.TotemBar[i] = CreateFrame("StatusBar", nil, self)
		self.TotemBar[i]:SetHeight(4)
		self.TotemBar[i]:SetWidth(width/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(texture2)
		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(texture2)
		self.TotemBar[i].bg.multiplier = 0.3
	end
end
__________________
Report comment to moderator  
Reply With Quote
Unread 03-28-10, 05:28 PM  
FyreFoxx
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 0
Originally posted by Soeters
If the option isn't set then add it by yourself.
If you could just paste the code of oUF_coree using oUF_TotemBar, I could see the problem.
I 'think' this is the part you wanted?

end
if IsAddOnLoaded("oUF_TotemBar") and class == "SHAMAN" then
self.TotemBar = {}
for i = 1, 4 do
self.TotemBar[i] = CreateFrame("StatusBar", nil, self)
self.TotemBar[i]:SetHeight(4)
self.TotemBar[i]:SetWidth(width/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(texture2)
self.TotemBar[i]:SetBackdrop(backdrop)
self.TotemBar[i]:SetBackdropColor(0, 0, 0)
self.TotemBar[i]:SetMinMaxValues(0, 1)
self.TotemBar[i].destroy = true

self.TotemBar[i].bg = self.TotemBar[i]:CreateTexture(nil, "BORDER")
self.TotemBar[i].bg:SetAllPoints(self.TotemBar[i])
self.TotemBar[i].bg:SetTexture(texture2)
self.TotemBar[i].bg.multiplier = 0.3
end

I was slightly confused reading the post, and a bit delayed due to forgetfulness. That's the bit in Coree's layout that I found using the addon.
Report comment to moderator  
Reply With Quote
Unread 03-20-10, 06:30 AM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 20
Originally posted by FyreFoxx
Okay, so I've installed your addon, but I can't seem to get it to work properly. There is no "self.TotemBar.Destroy = true" anywhere in the code and I'm not even sure where to place it otherwise. I can SEE the bars, but they remain blank (white/grey) even with totems out, and therefore, not clickable. I'm using Coree's layout and it does have the dependency enabled. Anything I need to supply to you for a fix to this?
If the option isn't set then add it by yourself.
If you could just paste the code of oUF_coree using oUF_TotemBar, I could see the problem.
__________________
Report comment to moderator  
Reply With Quote
Unread 03-18-10, 01:05 PM  
FyreFoxx
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 0
Okay, so I've installed your addon, but I can't seem to get it to work properly. There is no "self.TotemBar.Destroy = true" anywhere in the code and I'm not even sure where to place it otherwise. I can SEE the bars, but they remain blank (white/grey) even with totems out, and therefore, not clickable. I'm using Coree's layout and it does have the dependency enabled. Anything I need to supply to you for a fix to this?
Report comment to moderator  
Reply With Quote
Unread 01-23-10, 08:12 AM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 20
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
__________________
Report comment to moderator  
Reply With Quote
Unread 01-23-10, 06:32 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
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.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Report comment to moderator  
Reply With Quote
Unread 01-23-10, 06:30 AM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 20
Yes it works, a simple right-click destroy the clicked totem, a shift-click destroy them all
__________________
Report comment to moderator  
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.