Download
(2 Kb)
Download
Updated: 04-10-10 01:13 PM
Pictures
File Info
Updated:04-10-10 01:13 PM
Created:08-07-09 08:37 PM
Downloads:21,924
Favorites:136
MD5:
aTotemBar  Popular! (More than 5000 hits)
Version: 1.0a
by: Arimis [More]
aTotemBar is a simple totem addon that allows you to move, hide, and scale Blizzard's Default Totem Bar.

Its compatible with most other bar mods:
For Bartender4, Disable the Totem Bar
For Dominos, Disable the Dominos_Totem addon
For rActionBarStyler, no changes needed.

Commands:
/atbar lock
- This toggles the bar position lock. When the frame is black the bar is dragable.

/atbar hide
- This toggles the visibility of the bar

/atbar scale x.x
- Sets the scale of the bar, replace x.x with numbers (ie: 0.9)

**OmniCC or a similar addon is required to add numbers to the timers.
Version 1.0a:
Button Spacing: Adjust in the .LUA

Version 1.0:
Changed the Shaman and Level checks to use the same mechanics that Blizzard has built-in. (Hopefully no more random Nil errors)
Rewrote all the timers to be more efficient. It will also clear the timers when your totems are destroyed from out ranging them.
Default Value should now be set properly upon first run.
Corrected Right-Click to destroy totems.
Timers can now be disabled by setting "aTotemBarTimers = false" in the .lua
Blizzards Timers can now be disabled by setting "BlizzardTimers = false" in the .lua
*Both timers are enabled by default.
**If you're updating, you can safely delete embeds.xml from this addon's folder.

Version 0.8:
TOC Bumped for 3.3
Timers added (Consider this a Beta feature for the time being) *Option to disable coming shortly

Version 0.7:
Shaman Check revised again. Checking for Shaman and Level 30 or greater instead of checking for the default bars existence.

Version 0.6:
Shaman Check Take 2 - Removed the OnLoad() in favor of a check elsewhere (based on Tukz Feedback)

Version 0.5:
Now disables if you're not a Shaman or if you don't have the new Totem Bar yet. - Thanks Tukz
Fixed a small typo.

Version 0.4:
Reworked the frame code to use a completely custom frame instead of attempting to control the default. This should take care of the occasionally position loss.
User Request - Added a command to set the scale.

Version 0.2:
Removed the disable based on class code for the time being.
Tweaked the startup function a little bit.
Optional Files (0)


Archived Files (8)
File Name
Version
Size
Author
Date
1.0
2kB
Arimis
04-09-10 09:07 AM
0.8b
3kB
Arimis
02-20-10 03:24 PM
0.7
2kB
Arimis
08-13-09 05:54 AM
0.6
2kB
Arimis
08-10-09 10:47 AM
0.5
2kB
Arimis
08-10-09 07:01 AM
0.4
2kB
Arimis
08-08-09 07:52 PM
0.3
2kB
Arimis
08-08-09 06:15 AM
0.1
2kB
Arimis
08-07-09 08:37 PM


Post A Reply Comment Options
Unread 04-17-11, 07:25 AM  
taheen74
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 44
File comments: 12
Uploads: 1
Moving around while locked

For some reason my totem bar wants to move around anytime I have them relatively close to any of my action bars-- this is when I have it locked by the way. Normally happens after I log out/reload my UI. How do I stop it from doing that?
Last edited by taheen74 : 04-17-11 at 07:25 AM.
taheen74 is offline Report comment to moderator  
Reply With Quote
Unread 02-26-11, 03:09 AM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 210
Uploads: 0
TIME??

I DON'T KNOW WHY CAN'T SEE TIMER ON TOTEM ICON
Last edited by shinchih2001 : 02-26-11 at 04:10 AM.
shinchih2001 is offline Report comment to moderator  
Reply With Quote
Unread 10-24-10, 06:25 PM  
willgk
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 154
Uploads: 3
I'm confused by some of the posts, mentioning removing stuff from embeds.xml, as there is no embeds.xml, also, this addon works just fine for me.

I do have one request for the addon, the little glow around the totems type looks much better than the tooltip graphic that's around each button (it's border). Can you please remove the tooltip border from around them?
willgk is offline Report comment to moderator  
Reply With Quote
Unread 10-15-10, 11:34 AM  
Favrus
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Originally posted by Arimis
Now that 4.0 is live, I'll make some updates this weekend.

Awesome, I miss it sooo much already. I can't understand why no one else has made a totem add on like this. All the other UI addons have crappy, bulky totem bars.

happy dance
Favrus is offline Report comment to moderator  
Reply With Quote
Unread 10-15-10, 07:42 AM  
Arimis
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 50
Uploads: 1
Now that 4.0 is live, I'll make some updates this weekend.
Arimis is offline Report comment to moderator  
Reply With Quote
Unread 10-14-10, 02:23 AM  
Boundingox
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 4
Uploads: 2
Originally posted by Burnum
getting an error in 4.
Load up embeds.xml and change everywhere you see this: to self:

After that, it seems to basically be working for me again. (Though I noticed there's a list of spell IDs in aTotemBar.lua that might also want some updating.)
Boundingox is offline Report comment to moderator  
Reply With Quote
Unread 10-13-10, 11:47 PM  
Burnum
A Defias Bandit
 
Burnum's Avatar

Forum posts: 2
File comments: 81
Uploads: 0
getting an error in 4.


Code:
Error occured in: Global
Count: 1
Message: [string "aTotemBar:OnLoad"] line 1:
   attempt to index global 'this' (a nil value)
Debug:
   [C]: ?
   [string "*:OnLoad"]:1:
      [string "*:OnLoad"]:1
Burnum is offline Report comment to moderator  
Reply With Quote
Unread 08-19-10, 11:56 AM  
illament
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
First and foremost, I love this addon.

Secondly, Im getting the issue with it resetting x position when I restart wow or /rl, I tried the code that was suggested to be changed, and i still have the issue.

Any help?
illament is offline Report comment to moderator  
Reply With Quote
Unread 07-26-10, 10:05 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1164
File comments: 1110
Uploads: 29
This might be something you can try if you're still looking for ideas for skinning, it's fairly simple.

Code:
for i = 1, 12 do
	hooker = _G["MultiCastActionButton"..i];
	hooker:HookScript("OnClick", aTotemBar_Destroy)
	hooker:SetFrameStrata("MEDIUM")
	hooker:SetFrameLevel(3)

	Style = hooker:CreateTexture(nil, "OVERLAY", hooker)
	Style:SetTexture(TOTEM_BORDER)
	Style:SetVertexColor(0, 0.6, 0.6)
	Style:SetPoint("TOPLEFT", hooker, "TOPLEFT", -2, 2)
	Style:SetPoint("BOTTOMRIGHT", hooker, "BOTTOMRIGHT", 2, -2)
end
Replace TOTEM_BORDER and (0, 0.6, 0.6) with texture/colour of choice. I haven't yet been able to find out how to change the texcoord of the icons though, or how to hide the default blizz border - so the texture will need to be large enough to cover that up.
Haleth is online now Report comment to moderator  
Reply With Quote
Unread 05-24-10, 09:58 PM  
gogocons
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Originally posted by shiin
I had an issue with the current version of aTotemBar resetting its x coordinate after each logout. I solved the problem by clearing all anchors to aTotemBar (aTotemBar:ClearAllPoints( ); ) before setting its position in aTotemBar_LoadVariables.

Reason: At creation time a CENTER anchor is set for aTotemBar. Later when the variables are loaded and the actual position is set, usually another anchor is used. Anchors are not exclusive, a frame can have multiple anchors and WoW tries to put all of them into effect as good as possible.
To clarify, I have been able to fix the reset on relog glitch by changing:

Code:
aTotemBar:RegisterEvent("VARIABLES_LOADED")
aTotemBar:RegisterEvent("PLAYER_ENTERING_WORLD")
aTotemBar:RegisterEvent("PLAYER_TOTEM_UPDATE")

aTotemBar:SetScript("OnEvent", function(self,event,...)
        if ( event == "VARIABLES_LOADED" ) then
                aTotemBar_LoadVariables()
;

into this:

Code:
aTotemBar:RegisterEvent("VARIABLES_LOADED")
aTotemBar:RegisterEvent("PLAYER_ENTERING_WORLD")
aTotemBar:RegisterEvent("PLAYER_TOTEM_UPDATE")

aTotemBar:ClearAllPoints()
aTotemBar:SetScript("OnEvent", function(self,event,...)
        if ( event == "VARIABLES_LOADED" ) then
                aTotemBar_LoadVariables();
shiin had the right idea but some users may have been confused by the way you said it, hope this clears things up
gogocons is offline Report comment to moderator  
Reply With Quote
Unread 05-06-10, 04:11 PM  
Solae
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Originally posted by Arimis
I've had a busy week so far, I'll try to get some fixes going over today and possibly into tomorrow. Thanks for the input/support!
Hi guys,

I really like your addon, appreciate your input =) thanks a lot, but I have got the same problem - the totembar resets each time after logout, so we had to do some changes with lua - please have a look - it has helped me and maybe will help you to change the luas...

aTotemBar:RegisterEvent("ADDON_LOADED")
aTotemBar:RegisterEvent("PLAYER_ENTERING_WORLD")
aTotemBar:RegisterEvent("PLAYER_TOTEM_UPDATE")

aTotemBar:SetScript("OnEvent", function(self,event,...)
if ( event == "ADDON_LOADED" ) then
aTotemBar_LoadVariables();

The bits where you see ("ADDON_LOADED") were changed from ("VARIABLES_LOADED")

Hope it helps

Hugs and kisses from sunny Moscow

P.S. =) Taken from the http://www.wowwiki.com/Events/V "ADDON_LOADED"

Fired in response to the CVars, Keybindings and other associated "Blizzard" variables being loaded. Since key bindings and macros in particular may be stored on the server they event may be delayed a bit beyond the original loading sequence.

Previously (prior to 3.0.1) the VARIABLES_LOADED event was part of the loading sequence. Although it still occurs within the same general timeframe as the other events, it no longer has a guaranteed order that can be relied on. This may be problematic to addons that relied on the order of VARIABLES_LOADED, specifically that it would fire before PLAYER_ENTERING_WORLD.

Addons should not use this event to check if their addon's saved variables have loaded. They can use ADDON_LOADED (testing for arg1 being the name of the addon) or another appropriate event to initialize, ensuring that the addon works when loaded on demand.
Last edited by Solae : 05-06-10 at 04:17 PM.
Solae is offline Report comment to moderator  
Reply With Quote
Unread 04-20-10, 05:27 AM  
Arimis
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 50
Uploads: 1
I've had a busy week so far, I'll try to get some fixes going over today and possibly into tomorrow. Thanks for the input/support!
Arimis is offline Report comment to moderator  
Reply With Quote
Unread 04-19-10, 09:28 AM  
Ihadurca
An Aku'mai Servant
 
Ihadurca's Avatar

Forum posts: 37
File comments: 32
Uploads: 0
I'm having the same issue as well. Every re-log or re-load it resets to the middle.
Ihadurca is offline Report comment to moderator  
Reply With Quote
Unread 04-17-10, 11:49 AM  
shiin
A Fallenroot Satyr

Forum posts: 23
File comments: 24
Uploads: 0
I had an issue with the current version of aTotemBar resetting its x coordinate after each logout. I solved the problem by clearing all anchors to aTotemBar (aTotemBar:ClearAllPoints( ); ) before setting its position in aTotemBar_LoadVariables.

Reason: At creation time a CENTER anchor is set for aTotemBar. Later when the variables are loaded and the actual position is set, usually another anchor is used. Anchors are not exclusive, a frame can have multiple anchors and WoW tries to put all of them into effect as good as possible.
Last edited by shiin : 04-17-10 at 11:49 AM.
shiin is offline Report comment to moderator  
Reply With Quote
Unread 04-13-10, 06:08 PM  
Arimis
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 50
Uploads: 1
Re: ButtonFacade Support?

Originally posted by cudgel
Does this AddOn support ButtonFacade? If not, could it?
Other than fixing bugs, skinning is my top priority....and let me tell you it's quite a pain.
Arimis is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: