| Updated: | 12-16-09 06:35 AM |
| Created: | 06-03-09 09:02 AM |
| Downloads: | 11,001 |
| Favorites: | 78 |
| MD5: |

File Name |
Version |
Size |
Author |
Date |
r3 |
3kB |
Soeters |
08-05-09 03:24 AM |
|
r2 |
3kB |
Soeters |
07-29-09 12:13 PM |
|
r1 |
2kB |
Soeters |
06-03-09 09:02 AM |
![]() |
Comment Options |
|
|
|
|
Le problème est résolu, j'avais oublié le :
Code:
local playerClass = string.upper(select(2, UnitClass('player')))
![]() |
|
|
|
|
|
|
|
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) ?
|
|
|
|
|
|
|
|
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.
![]() |
|
|
|
|
|
|
|
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. ![]() |
|
|
|
|
|
|
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
|
|
|
|
|
|
||
|
A Kobold Labourer
Forum posts: 0
File comments: 15
Uploads: 0
|
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. |
|
|
|
|
|
||
If you could just paste the code of oUF_coree using oUF_TotemBar, I could see the problem. |
||
|
|
|
|
|
|
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?
|
|
|
|
|
|
|
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 |
|
|
|
|
|
||
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. |
||
|
|
|
|
|
|
Yes it works, a simple right-click destroy the clicked totem, a shift-click destroy them all
|
|
|
|
|
|
|
|
In its current state, does the .Destroy option work ?
Last edited by Caellian : 01-23-10 at 05:14 AM.
|
|
|
|
![]() |
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.