Category: Data Broker
Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
1.3.5
Date:
10-25-2009 03:45 AM
Size:
25.40 Kb
Downloads:
3,989
Favorites:
111
MD5:
Pictures
Click to enlarge
Blizzard Equipent Manager (Top) & Broker_EquipSwitch (Bottom)
Click to enlarge
Minimap icon via Broker_EquipSwitchUI
Broker EquipSwitch
What is this?
Broker: EquipSwitch is an Addon using the LibDataBroker Data Display Specifications.
Quote:
Data display addons provide a LDB “feed” for an always-up addon to display. These addons can be thought of like RSS feeds, where the display addon is similar to an RSS reader. Display addons could include FuBar, Titan Panel, StatBlocks, LegoBlocks, or any other design out there.
What does it do?
With the PTR Patch 3.1.0 Blizzard introduced a new feature, the Equipemt Manager. It was pulled back for the release of 3.1.0 but released shortly after, in a minor content patch.
This Addon tries to increase the accessibility by providing means to switch predefined equipment sets by just a few clicks.

Features:
- Shows currently used Equipment Set with icon and text
- Shows a list of all defined Equipment Sets with icon and text
- Clicking a Set will equip it, in combat swaping is provided by Blizzard

Broker: EquipSwitch also comes with Broker: EquipSwitchUI.
It is a small display addon that provides a minimap button, it's completly optional.
If you don't have a display addon, maybe this is just for you!
If you don't want a minimap button, don't load Broker: EquipSwitchUI or delete the folder manually.

What it won't do
This addon will not allow you to add, edit or delete equipment sets.
Use the Blizzard UI for this, it's a one-time task anyway.

Feature request are welcome, but don't hold your breath for it.

Some Display Addons
There are some nice display addons, for a list see http://wiki.github.com/tekkub/libdat...dons-using-ldb
  Change Log - Broker EquipSwitch
- 1.3.5:
Nobody told me .. it's esES and not enES! :sadface:

- 1.3.4:
Fixed enES translation, thanks PatoDaia
As always, if a translation displays wrong for your local or you want one added/edited, please
submit a lua file.

- 1.3.3:
Added enES, thanks PatoDaia
As always, if a translation displays wrong for your local or you want one added/edited, please
submit a lua file.

- 1.3.2:
Added ruRU, thanks kolod
This translation was c&p from a website, it may not display correct for you if you are on ruRU local.
If this happens, please supply a lua file that I can download to add it again.

- 1.3.1
Added koKR, thanks chkid

- 1.3.0
Updated TOC

- 1.2.0:
Broker_EquipSwitch:
Added zhTW, thanks a9012456
Switched to AceLocal-3.0 for localization, to make it easier for the translators to send me new translations.

Broker_EquipSwitchUI:
Simplyfied the code and removed a redundant callback

- 1.1.0:
If equiping a set fails, the icon will not update.
This happenes when you are on taxi or are casting a spell and try
to switch to a different set.

- 1.0.0:
Release, removed some debug output

- 0.12.0:
TOC Update
Changed VARIABLES_LOADED to ADDON_LOADED
Changed PLAYER_ENTERING_WORLD to PLAYER_LOGIN

- 0.11.1:
Fixed table recycling and some tweaks.

- 0.11.0:
Added Broker_EquipSwitchUI to the package, this provides a minimap icon.
If you don't want a minimap icon, don't load this as an addon.

- 0.10.0:
Feature complete for 3.1.0, waiting for GetEquipmentSetInfoByName API fix

- 0.9.9658-3:
Small update for workaround introduced in 0.9.9658-2
New default icon
Removed redundant queue for switching equipment while in combat,
therefore allowing switching of mainhand, offhand and
ranged weapons. This is handlede by Blizzard within
EquipmentManager_AddPendingEquip(itemId, inventorySlot, location).

- 0.9.9658-2:
Added workaround for Blizzard API bug.

- 0.9.9658:
Some code clean up and tweaks.
Improved table handling and reusing.
Improved the way the items in the menu are created.

- 0.9.9637:
Updated Version
Added german local

- 0.9.9626:
Initial upload
  Comments - Broker EquipSwitch
Post A Reply Comment Options
Old 10-25-2009, 06:36 AM  
8489
A Defias Bandit
 
8489's Avatar

Forum posts: 2
File comments: 29
Uploads: 0
Quque?

Any chance of a queue system so if the set cant equip the items it will get queue'd so that it will when you come out of combat or so forth? (ItemRack Feature)
8489 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-28-2009, 10:21 AM  
lloydbates
A Kobold Labourer
 
lloydbates's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 3
Quote:
Originally posted by Danno
I realize this may be beyond the scope of what you want to do with this, but there's a nasty little bug where titan's grip fury warriors can't equip things like, say, an argent lance using the blizzard equipment mananger (and hence, this addon or closetgnome), because the game tries to put the lance (or other 2 handed non-sword/mace/axe in our mainhand before un-equipping the offhand sword/mace/axe), causing it to fail with an "I can't put that there"

Anyway, a check for a guy holding 2 2-handers, then unequipping the offhand prior to putting something in the mainhand would be nice, but once again, I realize that may be beyond the scope for this project.

edit: to clarify, the bug is on the blizzard side of the house, not in this addon.
A valid request. But as you correctly assumed it's beyond what I want this addon to be: A frontend to the Blizzard Equipment Manager for LDB displays (or its own as a button at the minimap).
As anoying as it can be, this is a bug that should be fixed in the implementation from Blizzard.
I'm sorry but I have to decline this requst.
__________________
Gentlemen, you can't fight in here! This is the War Room!
lloydbates is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-27-2009, 09:38 PM  
Danno
A Defias Bandit
 
Danno's Avatar
Interface Author - Click to view interfaces

Forum posts: 3
File comments: 21
Uploads: 2
I realize this may be beyond the scope of what you want to do with this, but there's a nasty little bug where titan's grip fury warriors can't equip things like, say, an argent lance using the blizzard equipment mananger (and hence, this addon or closetgnome), because the game tries to put the lance (or other 2 handed non-sword/mace/axe in our mainhand before un-equipping the offhand sword/mace/axe), causing it to fail with an "I can't put that there"

Anyway, a check for a guy holding 2 2-handers, then unequipping the offhand prior to putting something in the mainhand would be nice, but once again, I realize that may be beyond the scope for this project.

edit: to clarify, the bug is on the blizzard side of the house, not in this addon.

Last edited by Danno : 08-27-2009 at 09:39 PM.
Danno is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-22-2009, 12:06 PM  
lloydbates
A Kobold Labourer
 
lloydbates's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 3
Re: ruRU locale

Quote:
Originally posted by kolod
Broker_EquipSwitch\locales\ruRU.lua
Code:
local L = LibStub("AceLocale-3.0"):NewLocale("Broker_EquipSwitch", "ruRU")
if not L then return end

L["Current set: %s"] = "Текущий комплект: %s"
L["No set"] = "Без комплекта"
Thanks for your help, but could you please upload it as a ziped textfile?
Copy&Paste from the webpage does not work for me when using a different character encoding than my default ISO-8859.
I don't know if the copied text would display correctly for you ingame.
__________________
Gentlemen, you can't fight in here! This is the War Room!
lloydbates is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-19-2009, 12:51 PM  
kolod
A Kobold Labourer
 
kolod's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
ruRU locale

Broker_EquipSwitch\locales\ruRU.lua
Code:
local L = LibStub("AceLocale-3.0"):NewLocale("Broker_EquipSwitch", "ruRU")
if not L then return end

L["Current set: %s"] = "Текущий комплект: %s"
L["No set"] = "Без комплекта"
__________________
kolod is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-21-2009, 06:19 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
Interface Author - Click to view interfaces

Forum posts: 10
File comments: 109
Uploads: 4
Quote:
Originally posted by lloydbates
Also, how often do you find yourself editing a set?
Fairly often when levelling. However I do see your point.

Quote:
Originally posted by lloydbates
This is a valid request, but it's out of scope of what I want this addon to be. As you mentioned, there are already addons that react to these events (swapping a dagger) and that work very well.
Fair enough, but it can be annoying to hit stealth, have it broken and then find out part way through the fight that your dagger hasn't swapped back. Still, it is something that I can work around.
Frayol is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-20-2009, 03:52 AM  
lloydbates
A Kobold Labourer
 
lloydbates's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 3
Quote:
Originally posted by Frayol
The issue is that when a set is updated the display reverts to "No Set".
This behavior is intentional. The reasoning behind it is the following:
If you add, edit or delete a set, an event (EQUIPMENT_SETS_CHANGED) is fired. It's the same event for all these three actions.
I can't say for sure what action triggered this event, add, edit or delete.
  • When you add a set, you are in the newly created set. Not resetting the display to "No Set" would still display the old set that was equiped when you changed your items and added them as a new set.
  • When you delete a set, not resetting the display would still display the set that is now gone.
  • Editing a set is the only case where the old and the new set are identical. But it could be posible that you just changed the name or the icon. It still would display the old name and icon.
This is why I reset the diplay to "No Set" when the event is fired. It's not optimal but at least it does nothing wrong. Also, how often do you find yourself editing a set?

Quote:
Originally posted by Frayol
Now for the feature request, and please bear with me on this. On several of my characters I did use the scripts for event based swapping (i.e. on my rogue equipping a dagger when entering stealth and back to whatever when leaving). There are a couple of addons and macros that achieve the same functionality so I am not asking for this to be added, but is it possible for display to detect this change of equipment and update the display name with the relevant set name if a set is created or perhaps "Unknown Set" if it hasn't? If it helps, of the 3 addons I've been testing Mokhtar's is the only one that detects this change.
This is a valid request, but it's out of scope of what I want this addon to be. As you mentioned, there are already addons that react to these events (swapping a dagger) and that work very well.
__________________
Gentlemen, you can't fight in here! This is the War Room!
lloydbates is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-19-2009, 11:25 AM  
Frayol
A Deviate Faerie Dragon
 
Frayol's Avatar
Interface Author - Click to view interfaces

Forum posts: 10
File comments: 109
Uploads: 4
Have been testing this, P3lim's Broker Equipment and Mokhtar's Broker BlizzEquipmentSet out with a view to switching away from Outfitter as it does far more that I really need. I've noticed one issue and have a feature request. The issue is that when a set is updated the display reverts to "No Set".

Now for the feature request, and please bear with me on this. On several of my characters I did use the scripts for event based swapping (i.e. on my rogue equipping a dagger when entering stealth and back to whatever when leaving). There are a couple of addons and macros that achieve the same functionality so I am not asking for this to be added, but is it possible for display to detect this change of equipment and update the display name with the relevant set name if a set is created or perhaps "Unknown Set" if it hasn't? If it helps, of the 3 addons I've been testing Mokhtar's is the only one that detects this change.
Frayol is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-10-2009, 10:13 AM  
lloydbates
A Kobold Labourer
 
lloydbates's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 3
Code:
LDBIcon:Refresh("Broker_EquipSwitch", db)
This line was there to update the icon when switching a set.
If I remember correctly, it did not update without it.
I'll test it and remove the function and the callback if it still works.

** Edit:
Looks like it updates the icon, even without the function call.
I removed the function and the callback it in the new version (1.2.0).
__________________
Gentlemen, you can't fight in here! This is the War Room!

Last edited by lloydbates : 06-10-2009 at 11:20 AM.
lloydbates is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-08-2009, 09:22 AM  
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
Interface Author - Click to view interfaces

Forum posts: 8
File comments: 67
Uploads: 3
Like it. Does what is direly needed for easy access, works like a charm, does nothing more than needed.

There is just one thing that bugs me: I am using a small script to align my minimap buttons into neat rows.
Whenever I swap to another equipment set though, the minimap icon of EquipSwitch bounces off to somewhere else before being snatched back by my script.

Is it necessary to update the postion of the icon each time sets are swapped? I can imagine this messes up other addons that rearrange minimap buttons also.

Editing out line 32 of Broker_EquipSwitchUI\Core.lua seems to fix that without any detrimental effects.
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."

Last edited by Spellshaper : 06-08-2009 at 09:22 AM.
Spellshaper is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-25-2009, 06:59 AM  
lloydbates
A Kobold Labourer
 
lloydbates's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 3
The Blizzard UI uses EquipmentManager_EquipSet("SetName") to switch the saved sets.
From the EquipmentManager.lua
Code:
function EquipmentManager_EquipSet (name)
    if ( EquipmentSetContainsLockedItems(name) or UnitOnTaxi("player") or UnitCastingInfo("player") ) then
        UIErrorsFrame:AddMessage(ERR_CLIENT_LOCKED_OUT, 1.0, 0.1, 0.1, 1.0);
        return;
    end
 
    UseEquipmentSet(name);
end
You should not be using UseEquipmentSet, but I think you already know that now.
'Not a Bug' but I'll think about changing the detection to use UseEquipmentSet.
If you cast a spell and try to switch a set, the icon will updated even if the set could not be switched.
__________________
Gentlemen, you can't fight in here! This is the War Room!

Last edited by lloydbates : 05-25-2009 at 07:01 AM.
lloydbates is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-24-2009, 08:23 AM  
ereth
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 7
File comments: 36
Uploads: 5
Have found a "bug".
If you use UseEquipmentSet the display addon wont be updated.

/run UseEquipmentSet("SetName1")

I use that one to test it.

This is a problem becuase I use a macro to swap my gear according to the spec I use and I use this addon to display my current gear/spec.

Thanks for reading

edit: found a solution. now uses EquipmentManager_EquipSet("SetName1")

Last edited by ereth : 05-24-2009 at 11:45 AM.
ereth is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-20-2009, 10:01 AM  
lloydbates
A Kobold Labourer
 
lloydbates's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 3
Quote:
Originally posted by Logan1981
Does this addon automatically switch to a set based on stance? For example, if I have a set for when I activate stealth, it equips that set, then unequips it when stealth is broken?
It does not switch to a set when you enter a stance. It does not react on any player event like this.
It is just a frontend for the newly introduced equipment manager.

As long as Blizzard does not do this, this addon will not do it either.
__________________
Gentlemen, you can't fight in here! This is the War Room!

Last edited by lloydbates : 05-20-2009 at 10:04 AM.
lloydbates is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-20-2009, 06:28 AM  
Logan1981
A Murloc Raider

Forum posts: 5
File comments: 10
Uploads: 0
Hello

Does this addon automatically switch to a set based on stance? For example, if I have a set for when I activate stealth, it equips that set, then unequips it when stealth is broken?

Thanks!
Logan1981 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-26-2009, 04:57 PM  
lloydbates
A Kobold Labourer
 
lloydbates's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 30
Uploads: 3
I just wanted to keep 'Broker_EquipSwitch' as it is, just a plugin and nothing more.
The need for an optional minimap icon led to 'Broker_EquipSwitchUI'.
Personally, I don't mind the extra addon. It is very basic and it is completly optional.

Point taken, it's also possible to integrate it into 'Broker_EquipSwitch' directly, but then it would offer options nobody would expect of just an LibDataBroker plugin.
Having it seperated allows greater customisation and, what is more important, to just load the plugin.
If one does not need an extra minimap button, just don't load Broker_EquipSwitchUI and there is no downside.

What is bothering me, it clutters up the addon directory.
__________________
Gentlemen, you can't fight in here! This is the War Room!
lloydbates is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.