Broker Factions

Broker Factions is a simple Ace3 LDB Data Feed plugin that provides an easy way to monitor your reputation with the various factions. It is loosely based on FactionsFu (Elkano) and the older Titan Factions (Phanx).

What it does:

Provides a tooltip where all faction reputations are summarized. Details can be customized in the configuration panel (Right-Click on the plugin to bring up the configuration screen automatically). Factions that are under collapsed groups (or subgroups), in Blizzard's reputation tab frame (character screen) will not be shown. Likewise, inactive factions will be hidden. You may at any point expand or collapse a faction "header" (group) by simply right clicking on it (ensure that the "Show Collapsed Headers" option is enabled, in the configuration panel, if for some reason you are unable to view a faction group after collapsing it).

Provides a button where the addon's monitored reputation can be shown. You can select the faction you wish to monitor from either the configuration panel or by simply left clicking on it from the tooltip. Factions that are inactive/under collapsed groups will not be monitored. You may also choose to hide the monitored faction entirely, if you only want to view the tooltip, every now and then.

Session gains can be shown on both the button and the tooltip.

The addon "remembers" collapsed groups that you set per session and will attempt to restore these settings automatically, whenever you enter the world.

Provides an option so that your monitored faction switches automatically to reflect the faction you last gained reputation with (you also have the option to ignore negative reputation gains). Also provides options to use Blizzard's monitored faction or even set your own monitored faction as the "watched" faction (the one shown above the normal experience bar if not level capped). You may set a "watched" faction shown as an experience bar, by holding down Ctrl and clicking on a valid faction with reputation, either from the tooltip or by ctrl + clicking the plugin itself.

Provides an option to paste reputation info into a currently opened chat box. Just hold down Shift and click either on the plugin or on a valid faction with reputation, shown on the tooltip.

Provides an option to scale the tooltip and/or use a scrolling slider, to avoid issues with extremely large and detailed tooltips.

What it doesn't do:

It will not automatically set a faction to monitor according to your location/zone. I have decided against implementing this feature, so that the plugin can peacefully coexist and "cooperate" with addons that automatically switch Blizzard's reputation bar (the one above the experience bar if not level capped) according to your location.

3.2.6 Release
- Updated ToC version for WoW 4.2
3.2.5 Release
- First "full function" release with new code
3.2.4 Beta
- Fixed db options bug. (thanks Torhal)
3.2.3 Beta
- Fixed a config bug
3.2.2-beta
- This is the first release after taking this addon over. Fairly large portions of the code have been rewritten. Since Bliz implemented several changes that made some portions of this addon obsolete. I've removed that code.
- Most tooltip functions are now restored and working as before (or better).
- I have not yet implemented showing *any* information on the LDB display bar, though that is up next.
- I usually don't move beta version over, opting instead of wait for a full release, but I think its good to get the new code in circulation, and getting feedback and bug reports. PLEASE let me know what you find and do or don't like.3.1 [2009.08.04]
- Library update.
- Removed LibQTipClick-1.1 from embeds.
- Modified tooltip click handler to use SetCellScript method, present in LibQTip-1.0.
- Set the BackdropBorderColor and alpha to always reflect the original values of the GameTooltip.
- .toc bump for WoW version 3.2.
---------------------------3.0b [2009.06.21]
- Updated Chinese localization.
---------------------------3.0 [2009.06.16]
- Major Update
- Properly localized a few forgotten global vars.
- Embedded LibQTipClick-1.1. Added support for a clickable tooltip.
- Left clicking a faction name, on the plugin's tooltip will now cause said faction to be "watched" on the button/block. Note: Left click will NOT function if the user has selected the "Use Blizzard's faction watch" option, in the plugin's configuration menu.
- Shift + left clicking a faction name, on the plugin's tooltip will paste the faction information on a chat frame editbox (assuming it's open).
- Ctrl + left clicking a faction name, on the plugin's tooltip will cause said faction to be "watched" on the default Blizzard reputation bar. Note: Ctrl + Left click will NOT function if the user has selected the "Use Blizzard's faction watch" option, in the plugin's configuration menu.
- Added a new option under the configuration "Tooltip" category, that enables the user to hide the "hint" from the plugin's tooltip.
- Split the code in the OnEnter script to acquire and set tooltip properties and implemented a new function to actually draw the rest of the tooltip, in order to facilitate clickable functionality for faction headers.
- Right clicking a faction header will now cause it to collapse or expand and the tooltip will be automatically redrawn to reflect the changes in the faction index.
- Refined the argument return table for the callback handler function, to also return the faction's index ID, in order to avoid unnecessary checks using the faction name.
- Refined the tooltip hint, to provide better explanation in regards to the new functionality.
- Updated localization to support the tooltip changes (work in progress).
---------------------------2.4 [2009.06.05]
- Updated to the latest revision of LibQTip-1.0 that deals with the clipping issue once and for all.
- Updated .toc with proper tags for Minion support.
---------------------------2.3c [2009.05.26]
- Updated to r92 of LibQTip.
---------------------------2.3b [2009.05.24]
- Updated to r87 of LibQTip-1.0 in order to resolve the issue with the problematic upgrade code.
---------------------------2.3 [2009.05.24]
- Updated to r83 of LibQTip-1.0.
- Removed the hack of the previous version, properly "releasing" the tooltip again, when the mouse isn't over it.
- Updated French localization.
---------------------------2.2 [2009.05.16]
- Attempt to fix the broken Faction tooltip, when interacting with specific plugins using the same version of LibQTip-1.0, pending a proper update of the library.
---------------------------2.1 [2009.05.15]
- Fixed a small bug, where the tooltip would not display properly after moving the plugin.
- Updated Chinese and Korean localization.
---------------------------2.0 [2009.05.14]
- Updated Ace3 and LibQTip-1.0 (Elkano's scrollable branch merged).
- Corrected errors in localization (work in progress).
- Moved the slider controlling tooltip scale, under the 'Tooltip' tab, in the plugin's configuration menu.
- Implemented a new option to add an optional scrolling slider to the tooltip (can be found under the 'Tooltip' tab, in the plugin's configuration menu).
- Allowed the mouse cursor to be placed over the tooltip, in order to enable mousewheel control of the scrolling slider.
- Small optimization fixes.
---------------------------1.10 [2009.05.09]
- Added an option to reset session reputation gains, in the configuration menu ("General" tab).
- Added Chinese localization.
- Library update.
---------------------------1.9b [2009.04.13]
- Updated .toc to 30100
- Ace3 Update.
- Updated Korean localization.
- Properly added a global variable holding initial faction reputation values, to the addon's namespace.
- Moved icon setting according to player faction, to the PLAYER_LOGIN event.
---------------------------1.9 [2009.03.24]
- Library Update.
- Added two more options for the tooltip configuration category, "Show Collapsed Headers" and "Show Collapsed Header Suffix". Appropriate descriptions can be found by hovering over said options.
- Added Korean localization.
- Fixed a few global references for the sake of code brevity.
---------------------------1.8 [2009.02.03]
- Moved saved variables initialization from VARIABLES_LOADED to ADDON_LOADED event for reliability and performance purposes.
- Properly initialized variables when the addon is installed and loaded for the first time.
- Added a new option to ignore Exalted factions when the addon is set to auto-switch to a faction on reputation gains or losses.
---------------------------1.7 [2009.01.18]
- Fixed a bug where the column titles would not display if only faction headers were visible.
- Added French localization.
---------------------------1.6b [2009.01.10]
- Fixed a bug that would prevent the state of a few variables from properly being set to false, between sessions.
---------------------------1.6 [2009.01.09]
- Added two new options in the addon configuration tab(s), "Ignore negative reputation gains" and "Colorize faction statistics".
---------------------------1.5b [2009.01.08]
- Cosmetic changes to the tooltip so that the 2nd column isn't too close to the faction names.
---------------------------1.5 [2009.01.08]
- Configuration menu has been totally revamped. Display details for factions/reputation have been split into tabs for Button/Tooltip.
- Removed unnecessary labels and characters.
- Ace3 update.
- LibQTip-1.0 beta update (experimental). This version should allow players to change tooltip style (background/borders etc) via addons that manipulate the GameTooltip.
---------------------------1.4b [2008.11.09]
- LibTooltip-1.0 renamed to LibQTip-1.0. Implemented necessary changes.
---------------------------1.4 [2008.10.28]
- Added German localization.
- Implemented code changes to support non-English locales for reputation gains and new factions discovered.
- Fixed a bug (hopefully) where more than 1 factions would not set initial values properly, when 'discovered'.
- Added a slider widget in the configuration menu, that allows the user to explicitly set the tooltip scale, in order to compensate for abnormally large tooltips.
---------------------------1.3 [2008.10.28]
- Ace3 Update.
- Removed Wotlk specific code.
- Implemented an option to hide text entirely from the button/block.
- Revamped tooltip handling. LibTooltip-1.0 (beta) is now being used, faction data should properly appear, justified in columns.
- Implemented different DO icons for Horde/Alliance.
---------------------------1.2b [2008.10.14]
- Moved LibDataBroker-1.1 outside libs to properly support no-external version.
- Ace3 lib update.
- .toc bump for WoW 3.0.
---------------------------1.2 [2008.09.28]
- Fixed a bug with certain Wrath of the Lich King factions that also act as headers. The addon should now properly show such factions on the tooltip and monitor them as intended.
- Implemented a couple of safeguards just in case something goes wrong when faction info is requested and not found.
- Added data source type for the LDB object.
---------------------------1.1b [2008.09.26]
- Fixed an issue where newly discovered factions would not register an initial reputation value in order to properly monitor session gains.
- Fixed a small locale typo.
---------------------------1.0b [2008.09.26]
- Initial release (committed proper zip)

Originally posted by Strongbow Ignore this as this is obviously working and due to my numbness didn't find out until after i wrote this.

-Strongbow-

Diplomancer and addons like that are exactly the reason I didn't bother to add a "faction per zone watch" feature in Broker Factions. It has already been done and anyone can simply set "Use Blizzard's Faction watch" and if he has an addon that changes Blizzard's watched faction on zoning, then this change will be reflected on Broker Faction's button/block, automatically.

Originally posted by Tristanian Diplomancer and addons like that are exactly the reason I didn't bother to add a "faction per zone watch" feature in Broker Factions. It has already been done and anyone can simply set "Use Blizzard's Faction watch" and if he has an addon that changes Blizzard's watched faction on zoning, then this change will be reflected on Broker Faction's button/block, automatically.

One more request:
I like to be able to see how much rep I've gained with a faction during a session. However, I have no need to see this info on the broker display itself, as I find it's more than sufficient to display such data in the tooltip.

As such, could the option to display rep gained that session be split into two such options: one for the broker display text, the other for the tooltip display?

For that matter, such separated options would be wonderful for most of the text displays.

Originally posted by saltorio One more request:
I like to be able to see how much rep I've gained with a faction during a session. However, I have no need to see this info on the broker display itself, as I find it's more than sufficient to display such data in the tooltip.

As such, could the option to display rep gained that session be split into two such options: one for the broker display text, the other for the tooltip display?

For that matter, such separated options would be wonderful for most of the text displays.

Thanks again!

Should be fairly easy to do for the next release. Apologies but due to a serious problem lately I haven't had time to spend on the addon.

I cannot seem to mouse into the popup box. Is this a known issue? And I would like to be able to display JUST the current %, minus actual number and faction name, can this be implemented similar to FactionsFu (which is currently my very last Fubar addon)?

Originally posted by ant1pathy I cannot seem to mouse into the popup box. Is this a known issue? And I would like to be able to display JUST the current %, minus actual number and faction name, can this be implemented similar to FactionsFu (which is currently my very last Fubar addon)?

I have decided that I'm probably going to split the options into tabs or something, along the lines of "General", "Button", "Tooltip".

I haven't really decided on the final layout or the options being available for Button/Tooltip (that's why you are not seeing an update, I need to think about this a bit and experiment, while not abandoning other projects and with Wotlk down on my throat, there isn't much time, I do want to play the game as well heh) but it is my intention to make most things configurable, while still NOT making the final label unreadable or confusing.

Originally posted by Tristanian I have decided that I'm probably going to split the options into tabs or something, along the lines of "General", "Button", "Tooltip".

I haven't really decided on the final layout or the options being available for Button/Tooltip (that's why you are not seeing an update, I need to think about this a bit and experiment, while not abandoning other projects and with Wotlk down on my throat, there isn't much time, I do want to play the game as well heh) but it is my intention to make most things configurable, while still NOT making the final label unreadable or confusing.

One thing I've noticed recently while leveling my Druid through Outland, is that Broker_Factions has a tendency to display negative rep gains when you gain rep with Aldor/Scryer, since you also lose rep with the opposing faction, and I think the log reports the rep loss last.

You might want to offer a filter to disable faction switching when for rep loss, or come up with some other way to deal with this. As a Scryer, I don't care how bad my rep is with the Aldor.

Originally posted by saltorio One thing I've noticed recently while leveling my Druid through Outland, is that Broker_Factions has a tendency to display negative rep gains when you gain rep with Aldor/Scryer, since you also lose rep with the opposing faction, and I think the log reports the rep loss last.

You might want to offer a filter to disable faction switching when for rep loss, or come up with some other way to deal with this. As a Scryer, I don't care how bad my rep is with the Aldor.

This will probably be done for the next version, right now I'm deciding what to do with the options. There will a small insignificant update soonish to deal with a library naming issue and the next major update will take a while.

Would it be possible to implement options for:
1) abbreviated faction names and/or relevant icons (tabard icons?) instead of faction names? edit - darn I see you veto'd abbreviated faction names and I can understand why too - how about just hiding the faction name text and having the icons change then?
2) hiding the text for 'honored' or 'revered' and simply coloring the faction name and numbers with the color of the current faction level? edit - I see people have asked for this too, and you're considering it, awesome!
3) letting the user's UI govern the tooltip style rather than forcing the blizz silver-border style?
4) hiding 'empty' categories (ie, when we've manually hidden all the factions within them)?

Great mod even if you say no to all four. Thanks so much for all your effort!

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.