Breakables
Description
Displays a bar on screen that allows quick access to enchanting, jewelcrafting, and inscription professions by presenting a Disenchant/Prospect/Mill button and all of the breakable items you have for that profession next to it. Also displays a bar for any locked junkboxes in your inventory if you're a Rogue. This allows one-click access for breaking down items instead of finding the item in your bag, clicking the appropriate profession/skill button, and clicking the item for each and every item you want to break. For prospecting and milling, you will see the number of items you have alongside the number of times you can break it. In the prospecting screenshot on the right, the player has 169 total Saronite Ore in his bags which will allow for 33 total prospects.
Usage
By default, if you have the appropriate profession and items in your inventory, a bar will appear with the profession ability followed by any items that are eligible for breaking. You can hold shift to drag the bar around if you want to move it. Clicking the profession button will activate that ability (disenchant/prospect/mill) and clicking an item will break it. You don't have to click the profession button first as simply clicking the item will automatically break it down.
Configuration
Typing /brk will open the configuration settings (or you can get to it from Blizzard's Interface options) which consist of:
- Hide if no breakables: this will control whether you see the profession button or not when nothing breakable is detected
- Max number to display: this controls the highest number of items that you will see next to your profession button. If this is 5 but you have 10 breakable items in your bags, you will only see 5 at a time.
- Show soulbound items: aimed at enchanters, this controls whether or not you will see items that are soulbound as breakable items or not.
Known issues
- If you have more than 5 of a breakable item but split into stacks all smaller than 5, the game will say you do not have enough items to break. The default UI now has a built-in button to compress stacks that should solve this issue.
- If you know Mass Milling for a specific type of herb, the current alpha will try to use this ability and fail. I am in the process of leveling a scribe up high enough to debug this problem.
Hi, please hide it when on pet battle
Thanks for the suggestion.
Would it be possible to suppress the tooltip on items in the breakables bar? When I hover over the button, the button is obscured by the tooltip, and I can't see what I'm doing.
Sure - that could be added. You could locally edit Breakables:OnEnterBreakableButton() / Breakables:OnLeaveBreakableButton() to suppress the GameTooltip stuff if you wanted. I'll see about adding a toggle.
In reply to Parnic:
That's awesome! Thank you. I will try your code. :)
In reply to Parnic:
Please, hide it when pet battle happens.
I think there's a function to identify this, like other addons
Thanks
The bar isn't visible when there are items to be disenchanted, but it is there. I mouse over the area where I had last placed it and there are items on the bar. I just can't see the bar. All of the functions work, like Hide Bar, Hide during combat, Not sure about Hide if no Breakables, and I can click on the items and disenchant them. I've tried several of the alpha files and I've deleted the WTF files. Still the same result. Could a tooltip addon or another addon that affects tooltips or action bars affect this?
I don't know, I've never seen this behavior. You could try temporarily disabling all addons and seeing if the problem persists, then turn them back on a few at a time to identify if there's a conflict.
Might there be any chance of making this compatible with classic? Would love to use it for disenchanting. (TSM destroy window is buggy.)
I honestly didn't realize it wasn't working. I'll try to find some time.
In reply to Parnic:
Oh, thank you! There is no error when I try to use it--just cannot see the window itself despite having stuff to disenchant.
edit: got errors now
36x Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:1300: attempt to call global 'IsArtifactRelicItem' (a nil value)
Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:1300: in function `BreakableIsDisenchantable'
Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:1087: in function `FindBreakablesInSlot'
Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:1053: in function `FindBreakablesInBag'
Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:839: in function `?'
...ack\Libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua:119: in function <...ack\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:119>
[C]: ?
...ack\Libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua:29: in function <...ack\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:25>
...ack\Libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua:64: in function `Fire'
...Ons\AuctionFaster\Libs\AceEvent-3.0\AceEvent-3.0-4.lua:120: in function <...Ons\AuctionFaster\Libs\AceEvent-3.0\AceEvent-3.0.lua:119>
7x Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:425: attempt to call global 'GetProfessions' (a nil value)
Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:425: in function `GetEnchantingLevel'
Breakables\Breakables-1.6.2 (Revision: 4d0b368ba6371464860b14a92e7e89dcbda49c5a).lua:295: in function <Breakables\Breakables.lua:264>
[C]: ?
...ceAdiBags\libs\AceAddon-3.0\AceAddon-3.0-12.lua:70: in function <...ceAdiBags\libs\AceAddon-3.0\AceAddon-3.0.lua:65>
...ceAdiBags\libs\AceAddon-3.0\AceAddon-3.0-12.lua:527: in function `EnableAddon'
...ceAdiBags\libs\AceAddon-3.0\AceAddon-3.0-12.lua:620: in function <...ceAdiBags\libs\AceAddon-3.0\AceAddon-3.0.lua:605>
[C]: in function `LoadAddOn'
FrameXML\UIParent.lua:353: in function `UIParentLoadAddOn'
FrameXML\UIParent.lua:424: in function `TimeManager_LoadUI'
FrameXML\UIParent.lua:693: in function <FrameXML\UIParent.lua:658>
[C]: ?
im having a issue with the icons not showing but if i hover over where it is then the bar is there.
In reply to trixz2012:
Hello, can you please make it so when an error is returned "Item cannot be disenchanted" the item is removed and ignored?
I would really like to see the add on also be able to handle the items gatherers get at low skill levels that you can combine 10 of into one of the actual mats, like nuggets, leaves, scraps, etc.
Great work on this addon!
In reply to boffo97:
I was just wondering I like how you have the ignore list any chance of kinda doing the opposite in adding a list to add to the bar
in the enchanting quest these do not show up if you could add them or make it so we could add things ourselves that would be awesome
https://www.wowhead.com/item=137195/highmountain-armor
In reply to tednik:
Love this addon. Making milling a lot less of a truffleache.
In reply to BennieGamali: