Okay, latest update:
- Linked in with Fubar_Factions (closest I could find to a 'FactionsFu') to change to the specified faction on load (it won't follow the changes unless you retoggle the option)
- It now jostles the various ui elephants correctly
- Fixed various bugs (colours, sparks etc)
- tidied up the menu
It works perfectly and error free! I love it to bits!
Edit: Although while playing with it I had a thought. A 'auto-text-type select' would be nice. So the bar text would change to whatever faction you started watching. Or if a bar was removed the text would switch to the remaining bar (so if you turned off the rep bar the text would change to exp, if there were no bars enabled the text style would changed to 'none). If a bar was enabled the text style would change to that bar.
Just a random thought. It would have to be optional, as some people don't like their bar text changing from what they set to. And you'd prolly have to allow text changes to be made manually (the auto-text-type change would only happen when a bar was disabled/enabled/changed).
If I load only FuBar (2.0), BugSack, BugGrabber and FuXPFu I get this error:
FuBar_FuXPFu\FuBar_FuXPFu.lua:6: AceAddon: AceOO-2.0: Library "AceDebug-2.0" does not exist.
<in C code>: in function `error'
AceLibrary\AceLibrary.lua:106: in function <...nterface\AddOns\FuBar\libs\AceLibrary\AceLibrary.lua:37>
AceLibrary\AceLibrary.lua:157: in function `pcall'
AceAddon-2.0\AceAddon-2.0.lua:357: in function `new'
FuBar_FuXPFu\FuBar_FuXPFu.lua:6: in main chunk
And no FuXPFu in my FuBar... just a Bugsack with this error. I tried it out because I couldn't get FuXPFu to follow my choice of "Show as Experience Bar" from the Factions page in the default UI (the one you get by pressing "U"). It seems as FuXPFu has it's own table for choosing the faction to show. I also normally use FuBar_FactionsFu to track my standings, and for easy switching what faction to show as XP-Bar. FuBar_FactionsFu has not been touched since http://svn.wowace.com/files was born, but it used to live at http://svn.wowace.com/root/trunk/FuBar_FactionsFu in the SVN, and probably still do :)
The old version of FuXPFu showed the faction that was checked in the default UI (Or checked with FuBar_FactionsFu since that seems to be the same). This probably applies to what faction gets checked by tekAutoRep also.
I can't get my head around how to make the "Watched Faction" work, I assume it should follow what I choose as "Show as experience bar" in the Reputation tab of my character. But when loading only FuBar and FuXPFu, setting FuXpFu to show Watched Faction it still doesn't follow my choice in the Reputation tab (screenshot provided).
Any pointers as to what I might be doing wrong would be deeply appreciated. Other than that it's a lovely addon, and it's even better now after the latest slew of good updates. Thanks wobin!
Thanks KnThrak! I tried that just now, but no joy :( It works once... but changing faction again from the Reputation tab doesn't make FuFXFu follow. I guess it would follow if TekAutoRep changed faction since there's a hook for it - but changing faction manually doesn't work (for me).
Before the second bar for rep was added, FuXPFu seemed to hook into GetWatchedFactionInfo(). Which if I'm not mistaken refers to the games function to watch factions via the Faction Tab as some have pointed out. So if the game's watched faction was changed FuXPFu's info and bars would update accordingly and on demand (not just on load). The only bad thing is that you couldn't see the exp bar also.. which is nice for pre level 60 characters.
This worked inately with TekAutoRep and also FuBar_FactionsFu , because those also work off of GetWatchedFactionInfo(). FuXPFu would work perfectly if it retrieved faction information how it did before, and would work with those two mods and Blizzard's Faction Monitoring with minimal code. (I think)
I hate making requests, but have had little luck changing FuXPFu to work for factions how it did previously as I know very little about coding. This would seem to simplify things. Having a quick way to select your watched faction is a nice feature as it currently does. FactionsFu does this also, through the mouseover tooltip. So I like using FactionsFu, TekAutoRep and former versions of FuXPFu together as they all retrieved faction info the same way.
I hope this doesn't sound pushy or demanding, just a friendly pointer and request :). I appreciate all your hard work and wish I could be of more help. Sorry for the long explaination. Thanks again for all the time you've put into this addon.
Thanks wobin, just noticed you had been trying for what I already requested. Not sure how long the Watched Faction choice has been in the list, but little embarassed as I didn't notice it before hehe. Nor did I quite realize people in the posts right before me were talking about that specifically. I'll see how this runs, much appreciation :).
I haven't had a great deal of time to look at the OnEnable and OnInitialize function calls, but it appears that the second Rep bar disappears on ReloadUI. I'm able to get it back by toggling the option twice, of course.
I've been receiving the following error for the past few days. I've tried updating my Jostle lib and making sure all my other Ace2 addons were up to date, but I've had no luck.
[2006/09/15 08:17:16-253]: Jostle-2.0\Jostle-2.0.lua:33: attempt to index field `frame' (a nil value)
<in C code>: ?
Jostle-2.0\Jostle-2.0.lua:33: in function `?'
Jostle-2.0\Jostle-2.0.lua:477: in function <...nterface\AddOns\FuBar\libs\Jostle-2.0\Jostle-2.0.lua:476>
Using 2.0.10823 and even though I have FuBar set to use a character specific profile on each of my characters, FuXPFu is still using the same settings across all characters. Watched Faction is also still not updating correctly when changing the faction in the reputation window or FactionsFu.