Download
(12Kb)
Download
Updated: 08-30-17 08:21 AM
Pictures
File Info
Compatibility:
Shadows of Argus (7.3.0)
Updated:08-30-17 08:21 AM
Created:02-27-09 05:53 PM
Downloads:35,218
Favorites:334
MD5:
Categories:Data Broker, Bags, Bank, Inventory, Character Advancement, Combat Mods, Data Mods, Miscellaneous

Broker Equipment  Popular! (More than 5000 hits)

Version: 70300.29-Release
by: p3lim [More]

Description

Broker Equipment is a plugin for DataBroker, and will require a display to work.
It displays and lets you use the Equipment Manager much easier.

It has the following features:

  • Shows the current equipped set by name and icon.
  • Click to open a menu for easy equipment changing.
  • Right-click to open the Equipment Manager.
  • In the menu, Shift-click to update the selected set with the currently equipped gear.
  • In the menu, Ctrl-click to delete the selected set.
  • Any sets in red color indicates missing items
  • Selecting a set in combat equips weapons and queues the rest until combat is dropped.
    • The name of the set is colored yellow until equipped.

Translating

If you'd like to help translate this project, please follow this link:
http://wow.curseforge.com/addons/bro.../localization/

Feedback

If you have a question, please use the comments section on Curse/WoWInterface.
If you would like to report a bug or contribute to the project, please follow this link to get started.

Legal

Please see the LICENSE file.

Changes in 70300.29-Release:
  • Changed: Update Interface version
  • Fixed: Changes to the sound system

Changes in 70200.28-Release:
  • Changed: Update Interface version
  • Removed: 7.1 compatibility

Changes in 70100.27-Release:
  • Added: Help lines to the tooltips
  • Added: Support for the new C_EquipmentSet API in 7.2
  • Added: Global name to the menu for skinning purposes
  • Changed: Update Interface version
  • Fixed: The "unknown" icon not showing up
  • Removed: Temporary hacks for showing the equipment sidebar in the Character window

Changes in 60000.26-Release:
  • Added: Options to disable tooltips
  • Added: Localization

Changes in 60000.25-Release:
  • Changed: Update Interface version
  • Fixed: Dropdown sometimes rendering behind other objects

Changes in 50400.24-Release:
  • Added: Changelog file
  • Changed: Create the broker object on load
  • Fixed: Dropdown going off the screen
  • Fixed: Dropdown not respecting the parent frame

Changes in 50400.23-Release:
  • Added: Proper license
  • Added: Custom dropdown to avoid tainting default UI
  • Added: Metadata file for the curseforge packager
  • Changed: Use externals for libraries

Changes in 50400.22-Release:
  • Added: Hacky method to show tooltips in dropdown
  • Changed: Update Interface version
  • Removed: License

Changes in 50200.21-Release:
  • Changed: Update Interface version
  • Fixed: LDB text when there are no matching sets

Changes in 40300.20-Release:
  • Changed: Use the new equipment API

Changes in 40300.19-Release:
  • Changed: Update license
  • Removed: Usage tooltips and translations

Changes in 40300.18-Release:
  • Added: ptBR translations
  • Changed: Added support for packagers to set the version automatically

Changes in 40200.17-Release:
  • Changed: Update Interface version

Changes in 40100.16-Release:
  • Changed: Update ruRU translations
  • Fixed: Properly show the new equipment tab in the character window

Changes in 40100.15-Beta:
  • Added: Proper defaults for LDB
  • Added: Support for changes to the GearManager
  • Changed: Update Interface version
  • Removed: Buggy hack to get set texture

Changes in 40000.14-Release:
  • Changed: Use the dropdown's built-in support for icons
  • Changed: Use the dropdown's built-in support for checkboxes
  • Changed: Color the usage tooltip lines
  • Fixed: Hide the tooltips properly when clicked

Changes in 40000.13-Release:
  • Changed: Revert back to using hard copies instead of externals/submodules

Changes in 40000.12-Release:
  • Changed: Localization table for easier integration with curseforge

Changes in 40000.11-Release:
  • Added: esES translations
  • Added: esMS translations
  • Added: ruRU translations
  • Changed: Update Interface version
  • Changed: Update deDE translations
  • Changed: Only show usage tooltips when SHOWNEWBIETIPS is enabled
  • Changed: Use externals/submodules for libraries
  • Fixed: Detecting set on login
  • Fixed: Gear manager click functionality

Changes in 30300.10-Release:
  • Added: Support for AddonLoader

Changes in 30300.9-Release:
  • Fixed: Pending sets not showing during combat

Changes in 30300.8-Beta:
  • Fixed: Pending sets

Changes in 30300.7-Beta:
  • Changed: Table layout for localizations

Changes in 30300.6-Beta:
  • Changed: Update Interface version
  • Changed: Use the environment arguments
  • Changed: Move localization to it's own file

Changes in 30200.4-Beta:
  • Changed: Use location matching instead of itemIDs
  • Changed: Use a proper dropdown
  • Fixed: Faulty LDB icon texture
  • Fixed: Overwrite popup
  • Fixed: Updating LDB on set changes
  • Fixed: Updating LDB on login

Changes in 30200.3-Beta:
  • Fixed: Item match on ignored slots

Changes in 30200.2-Beta:
  • Changed: Update Interface version

Changes in 30200.1-Beta:
  • First public release
Post A Reply Comment Options
Unread 10-14-20, 06:19 AM  
Cluey
A Fallenroot Satyr

Forum posts: 26
File comments: 95
Uploads: 0
9.0.1 'SetBackdrop' error

I went to make a pull request on Github but you've Archived it, so I'm posting here for others to see.
Perhaps you've found a better addon for this and could share it?
I still find this incredibly useful, I've been using it for so many years I couldn't tell you how long but I started using LDB plugins during TBC!

I'm not much of a coder but I can drive Google, I found a similar request by a user on the PTR forum here and tried implementing it.
There are three instances of CreateFrame but the second two didn't look the same so I just changed the first one and tested it. As far as I can tell it works fine now, I've tried both right and left clicks and even tried in combat.

I changed line 14 in Broker_Equipment.lua to:
Code:
local Broker_Equipment = CreateFrame('Frame', addonName, UIParent, BackdropTemplateMixin and "BackdropTemplate")
Report comment to moderator  
Reply With Quote
Unread 05-23-13, 11:19 AM  
GreyWolfSC
A Murloc Raider

Forum posts: 5
File comments: 83
Uploads: 0
This appears to work fine in 5.3 as well when loaded out-of-date if you're interested.
Report comment to moderator  
Reply With Quote
Unread 05-16-13, 04:21 PM  
GreyWolfSC
A Murloc Raider

Forum posts: 5
File comments: 83
Uploads: 0
Originally Posted by p3lim
Aside from this, does the addon work like expected?
If yes, I'll drycode Phanx's fix and push an update.
I added Phanx's edits and bumped the TOC and it seems to work like it always did.
Report comment to moderator  
Reply With Quote
Unread 03-15-13, 02:49 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Aside from this, does the addon work like expected?
If yes, I'll drycode Phanx's fix and push an update.
Report comment to moderator  
Reply With Quote
Unread 09-14-12, 05:38 AM  
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5617
File comments: 2321
Uploads: 54
Originally Posted by Aelorean
I was getting an error while playing an alt that had no equipment sets at all.

This alteration seems to have fixed it:
Code:
local function OnTooltipShow(self)
	if (GetNumEquipmentSets() > 0) then
		self:SetEquipmentSet(LDB.text)
	end
end
The problem is actually that LDB.text is nil; calling :SetEquipmentSet with a string that doesn't match any equipment set's name silently fails without triggering an error, but calling it with a nil value does trigger an error. The same problem also causes the Broker's text and icon to be invisible for characters who don't have any equipment sets yet. The solution is to set the text/icon to UNKNOWN outside of the GetNumEquipmentSets() loop in UpdateDisplay(). The following change solves both problems:

Code:
local function UpdateDisplay()
	if(InCombatLockdown() and pending) then
		LDB.text = '|cffffff00' .. pending
		LDB.icon = 'Interface\\Icons\\' .. GetEquipmentSetInfoByName(pending)
	else
		for index = 1, GetNumEquipmentSets() do
			local name, icon, _, equipped = GetEquipmentSetInfo(index)
			if(equipped) then
				LDB.text = name
				LDB.icon = icon
				return
-			else
-				LDB.text = UNKNOWN
-				LDB.icon = [=[Interface\Icons\INV_Misc_QuestionMark]=]
			end
		end
+		LDB.text = UNKNOWN
+		LDB.icon = [=[Interface\Icons\INV_Misc_QuestionMark]=]
	end
end
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
Last edited by Phanx : 09-14-12 at 05:38 AM.
Report comment to moderator  
Reply With Quote
Unread 07-31-12, 02:48 AM  
Aelorean
A Deviate Faerie Dragon

Forum posts: 15
File comments: 14
Uploads: 0
[quote=p3lim]
Originally Posted by Aelorean

I will add a check if there is a set or not, not sure when that will be released though, as I am swamped with all the changes on beta right now.
Which addons are super broken on beta that you work on? Just curious.
Report comment to moderator  
Reply With Quote
Unread 07-29-12, 08:54 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Originally Posted by Aelorean
Thanks. I didn't think to look under the widgets -- I had in my mind that it was somehow part of the databroker library (or perhaps something that used to be.)

Anyway, it explains the bug I guess. Probably calling that function with an invalid or nil value raises the exception.

Thanks!
I will add a check if there is a set or not, not sure when that will be released though, as I am swamped with all the changes on beta right now.
Report comment to moderator  
Reply With Quote
Unread 07-29-12, 07:41 PM  
Aelorean
A Deviate Faerie Dragon

Forum posts: 15
File comments: 14
Uploads: 0
Thanks. I didn't think to look under the widgets -- I had in my mind that it was somehow part of the databroker library (or perhaps something that used to be.)

Anyway, it explains the bug I guess. Probably calling that function with an invalid or nil value raises the exception.

Thanks!
Report comment to moderator  
Reply With Quote
Unread 07-29-12, 05:45 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Originally Posted by Aelorean
I was getting an error while playing an alt that had no equipment sets at all.

This alteration seems to have fixed it:
Code:
local function OnTooltipShow(self)
	if (GetNumEquipmentSets() > 0) then
		self:SetEquipmentSet(LDB.text)
	end
end
Is GetNumEquipmentSets() an expensive call that would make this inefficient?



Actually, while I'm asking questions, where exactly is self:SetEquipmentSet defined? I did a search for "SetEquipmentSet" in my entire addons directory and searched the addon API and didn't see it anywhere.
http://wowprogramming.com/docs/widge...etEquipmentSet
Report comment to moderator  
Reply With Quote
Unread 07-29-12, 03:45 AM  
Aelorean
A Deviate Faerie Dragon

Forum posts: 15
File comments: 14
Uploads: 0
I was getting an error while playing an alt that had no equipment sets at all.

This alteration seems to have fixed it:
Code:
local function OnTooltipShow(self)
	if (GetNumEquipmentSets() > 0) then
		self:SetEquipmentSet(LDB.text)
	end
end
Is GetNumEquipmentSets() an expensive call that would make this inefficient?



Actually, while I'm asking questions, where exactly is self:SetEquipmentSet defined? I did a search for "SetEquipmentSet" in my entire addons directory and searched the addon API and didn't see it anywhere.
Last edited by Aelorean : 07-29-12 at 03:52 AM.
Report comment to moderator  
Reply With Quote
Unread 10-03-11, 08:16 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Do you get the same when running BE alone with a launcher?
BE doesn't touch glyphs at all, so there seems to be a taint coming from a different addon.

Originally posted by tinyu
i get this when trying to apply a glyph

Code:
Date: 2011-09-05 19:27:35
ID: 1
Error occured in: AddOn: Broker_Equipment
Count: 1
Message: Error: AddOn Broker_Equipment attempted to call a forbidden function (CastGlyph()) from a tainted execution path.
Debug:
   [C]: CastGlyph()
   ...terface\AddOns\Blizzard_GlyphUI\Blizzard_GlyphUI.lua:583: GlyphFrameSpell_OnClick()
   [string "*:OnClick"]:1:
      [string "*:OnClick"]:1
Report comment to moderator  
Reply With Quote
Unread 09-05-11, 03:58 AM  
tinyu
A Molten Giant
 
tinyu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 837
File comments: 374
Uploads: 13
i get this when trying to apply a glyph

Code:
Date: 2011-09-05 19:27:35
ID: 1
Error occured in: AddOn: Broker_Equipment
Count: 1
Message: Error: AddOn Broker_Equipment attempted to call a forbidden function (CastGlyph()) from a tainted execution path.
Debug:
   [C]: CastGlyph()
   ...terface\AddOns\Blizzard_GlyphUI\Blizzard_GlyphUI.lua:583: GlyphFrameSpell_OnClick()
   [string "*:OnClick"]:1:
      [string "*:OnClick"]:1
__________________
"There's no such thing as too many addons."
Lothaer
Titan Dev Team Member.
Report comment to moderator  
Reply With Quote
Unread 05-03-11, 08:18 AM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 263
Uploads: 5
Well, seems like the solution was not complete. Though broker element is still in place after reloads it doesn't react on set change and keeps showing the last one.
__________________
Proud author of IntricateChatMods, Wanderlust and SimplerMount.
Report comment to moderator  
Reply With Quote
Unread 05-01-11, 01:40 AM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 263
Uploads: 5
Sooooooo. Changing fire event from PLAYER_LOGIN to PLAYER_ENTERING_WORLD seems to fix the issue. Sorry for so many messages.
__________________
Proud author of IntricateChatMods, Wanderlust and SimplerMount.
Report comment to moderator  
Reply With Quote
Unread 05-01-11, 01:29 AM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 263
Uploads: 5
Also, when PLAYER_ENTERING_WORLD with unknown set fires, bug isn't here, only if you enter it with real set.
__________________
Proud author of IntricateChatMods, Wanderlust and SimplerMount.
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.