Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(13 Kb)
Download
Updated: 10-26-14 05:04 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-26-14 05:04 AM
Created:02-27-09 05:53 PM
Downloads:21,997
Favorites:358
MD5:
Categories:Data Broker, Bags, Bank, Inventory, Character Advancement, Combat Mods, Data Mods, Miscellaneous, Warlords of Draenor Beta
Broker Equipment  Updated this week!  Popular! (More than 5000 hits)
Version: 60000.25-Release
by: p3lim [More]
Description:
Broker Equipment is a plug-in for DataBroker, and will require a display in order to work.
It displays and lets you use the Equipment Manager much easier.

Features:
  • Shows current equipped set by name and icon
  • Quickly change sets by using the dropdown
  • Right-click to open Equipment Manager
  • Update set with current equipment by holding <Shift> and clicking
  • Delete set by holding <Ctrl> and clicking
  • Equipping a set while in combat will queue it until you leave combat
  • Sets colored red lets you know an item is missing
  • Detailed tooltip

Issues & Requests
To submit a bug report of feature request, please visit the Issue Tracker.
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 SHOW_NEWBIE_TIPS 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
Archived Files (20)
File Name
Version
Size
Author
Date
50400.24-Releas
13kB
p3lim
09-14-14 07:38 PM
50400.23-Releas
4kB
p3lim
08-26-14 03:51 AM
50400.22-Releas
7kB
p3lim
06-19-14 07:27 AM
50200.21-Releas
7kB
p3lim
05-16-13 06:35 PM
40300.20-Releas
7kB
p3lim
04-29-12 01:26 AM
40300.19-Releas
7kB
p3lim
04-28-12 06:59 PM
40300.18-Releas
9kB
p3lim
02-07-12 10:50 AM
40200.17-Releas
8kB
p3lim
07-10-11 10:08 PM
40100.16-Releas
8kB
p3lim
04-29-11 11:21 AM
40100.15-Beta
8kB
p3lim
04-28-11 11:06 AM
40000.14-Releas
8kB
p3lim
01-14-11 02:37 PM
40000.13-Releas
8kB
p3lim
12-27-10 04:03 PM
40000.12-Releas
4kB
p3lim
12-27-10 03:56 PM
40000.11-Releas
4kB
p3lim
10-14-10 05:16 PM
30300.10-Releas
8kB
p3lim
06-26-10 11:10 PM
30300.9-Release
8kB
p3lim
12-30-09 04:45 PM
30300.8-Beta
8kB
p3lim
12-30-09 02:30 PM
30300.7-Beta
8kB
p3lim
12-15-09 04:29 PM
30300.6-Beta
8kB
p3lim
12-15-09 03:45 PM
30200.5-Beta
8kB
p3lim
10-14-09 05:26 PM


Post A Reply Comment Options
Unread 05-23-13, 11:19 AM  
GreyWolfSC
A Murloc Raider

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

Forum posts: 5
File comments: 84
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.
GreyWolfSC is offline 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: 1297
File comments: 1181
Uploads: 25
Aside from this, does the addon work like expected?
If yes, I'll drycode Phanx's fix and push an update.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 09-14-12, 05:38 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4437
File comments: 2041
Uploads: 40
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
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addon • Turn any code into an addon • More addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Last edited by Phanx : 09-14-12 at 05:38 AM.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 07-31-12, 02:48 AM  
Aelorean
A Deviate Faerie Dragon

Forum posts: 15
File comments: 11
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.
Aelorean is offline 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: 1297
File comments: 1181
Uploads: 25
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.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 07-29-12, 07:41 PM  
Aelorean
A Deviate Faerie Dragon

Forum posts: 15
File comments: 11
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!
Aelorean is offline 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: 1297
File comments: 1181
Uploads: 25
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
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 07-29-12, 03:45 AM  
Aelorean
A Deviate Faerie Dragon

Forum posts: 15
File comments: 11
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.
Aelorean is offline 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: 1297
File comments: 1181
Uploads: 25
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
p3lim is offline 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: 816
File comments: 334
Uploads: 16
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.
tinyu is offline 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.
ichik is offline 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.
ichik is offline 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.
ichik is offline Report comment to moderator  
Reply With Quote
Unread 05-01-11, 01:26 AM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 263
Uploads: 5
Tested with Broker_EquipSwitch —*no such result. Only yours BE seems to work so odd. Also, I was uncertain about when bugs appears — it mostly happens ON PLAYER_ENTERING_WORLD (also noticed it on equipping some items that doesn't complete an equipment set) and can be cured only by ReloadUI.
__________________
Proud author of IntricateChatMods, Wanderlust and SimplerMount.
ichik is offline 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.