Download
(6Kb)
Download
Updated: 12-03-11 05:41 AM
Pictures
File Info
Updated:12-03-11 05:41 AM
Created:11-30-08 09:17 AM
Downloads:4,625
Favorites:31
MD5:

Highlight - the local bag search tool

Version: 4.3.0
by: Weeperman [More]

  • Do you spend more time questing your bags for an item than raiding the instance?
  • Can't remember what icon is related to what quest?
  • Fed up with 'poor' items clogging your bags?
  • Do you wish you could search the quild bank?

v3.0
Finally updated it to work with Cataclysm - sorry for the delay.

---------------------------------------------------------------------------------------------------------------------------------------------
NEW
Added "wearable": item has an equipment slot
Added "craftable": item is used in one of the characters recipes. It caches the tradeskill reagents up front to make searching them fast
Added negation: reverses the meaning of a search term if you put a "!" or "~" in front
Added multipe search terms: can combine multiple search criteria (implied "and" between all terms)
Added more item quality search terms: for example, green for uncommon, purple for epic, etc, since I have a hard time remembering the official terms


Fixed refresh, mostly: When moving an item or opening a new bag, refreshes search display (the only time it refreshes too often is when moving items in guild bank, seems to trigger 4 redraw events). There are still a few random refreshes that make the highlighting go away on the guild bank, no idea what event to hook there. But it's quite fast, even with the redraws. I had to pull a few tricks to get the refresh to behave properly.
Reworked quantity searching: Can now search with <, >, = or combinations of those against item level, required level, stack size, or vendor value
Allow fractional gold amounts: for example, "greater than 2g50s" written as >2.5

/hl by itself now puts focus on the search box, to avoid having to click on it

Brigtened the non-highlighted items just slightly so you can see what they are, without being confused for highlighted items. Set vertex color to 0.2, since 0.1 made it very hard to tell if a non-highlighted spot is empty, and 0.3 made the contrast between highlighted and non-highlighted items too poor.

Reorganized redundant code into its own functions to make things easier to read. It makes it easier to read if you can look at the function name and it does one simple thing, rather than 50 lines of obscure code packed into a single function. And it also makes it easier to reuse that functionality in other ways.


---------------------------------------------------------------------------------------------------------------------------------------------


Then 'Highlight' is for you, its a very simple stand alone add-in which greys out all the items what don't fit your criteria. It was inspired by the simplicity of the code from 'Gerbils of War - Bag Search' only the search was extended to include item types, sub-types, rarity and now complete stacks of materials. This works for both local bags and all items within your characters bank.

Can be accessed by either an additional search window below the first bag or from the command line.

The total number of items found that have the required criterion are also listed in the UI.

Use the command line /highlight criterion or /hl criterion.

Examples:
  • To highlight all types of ore /hl ore
  • To highlight all 'FULL' stacks /hl stack
  • To highlight blue items in the bag /hl rare
  • To highlight grey items in the bag /hl poor
  • To highlight pets in the bag /hl pet
  • To highlight all quest items /hl quest
  • Example, this would find all millable Northrend herbs /hl herb ilvl>70 stack>5 !fireleaf
  • Another example, to find my old level 70 gear that I can vendor /hl wearable purple lvl<80 cost>0
  • To find partial stacks of bandages so they can be combined /hl bandage !stack
  • To find all usable cooking ingredients that aren't fish /hl cooking !fish

... you see the pattern ...


Please enjoy, and let me know any feedback/bugs...

Thanks

Weeperman

v4.3.0
TOC update

v4.2.1
Restored the filter by type/wearable code
Fixed the 'double escape key' issue

v4.2
TOC update

v3.1
Fixed a couple of LUA errors
Added Colour searching alongside ratity name

v3.0
Finally updated it to work with Cataclysm - sorry for the delay.


2.2
Fixed a nil line entry for the main window.


2.1

A huge thank you to linknoid for a number of improvements.
* Updated TOC

* Added "wearable
* Added "craftable"
* Added negation
* Added multipe search terms
* Added more item quality search terms
* Fixed refresh
* Reworked quantity searching
* Allow fractional gold amounts: for example, "greater than 2g50s" written as >2.5
* /hl by itself now puts focus on the search box, to avoid having to click on it
* Brigtened the non-highlighted items just slightly so you can see what they are
* Reorganized redundant code into its own functions to make things easier to read.

2.0
* TOC update
* Price per slot search added


1.2
* Now searches active guild bank tab
* Searches include 'item location', e.g. 'Feet', '1H'

1.1
A few other mods

1.0 Updated UI & bank fix
* Now working with all bank items (not just those in bags)
* Added UI counter for items found

0.9.1 UI update
* UI window added to run alongside commandline
* Runs with bank bags as well as local bags
* Updates on key presses

0.9 code re-write to clean up code
* Addition of error handlers
* Addition of 'full' stack check
* Add count of items found to the command line
* Removed the need to open the bags, this is now done automatically
* Fixed the grammer in the output messages


0.4 .. 0.8 - test versions to try out new features; thanks to Chia, Ary and vpr for their time and comments.

0.3 first upload to wow interface
Optional Files (0)


Post A Reply Comment Options
Unread 01-27-11, 05:59 PM  
vikkyne
A Murloc Raider

Forum posts: 4
File comments: 114
Uploads: 0
I don't use this much at all...

But lord, when I have to - I LOVE IT.

Beeg t'anks!
Report comment to moderator  
Reply With Quote
Unread 08-07-11, 11:43 PM  
Tuhljin
A Flamescale Wyrmkin
 
Tuhljin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 106
File comments: 233
Uploads: 10
Thanks for your work on this addon. Unfortunately, I've found some significant problems with this release (maybe started with an earlier one, I don't know). First of all, if you click into Highlight's text field to type something in, nothing happens if you press Escape. You have to click into another text area, like the chat input, in order to make it lose focus. Very annoying.

Also, some of the features you mention in the description don't work and I don't even see any references to some of the features I looked for in the code, like maybe you "updated" an older version of the addon instead of continuing on with the latest. For instance, "wearable," "craftable," and negation elements ("!" and "~") don't seem to function or have any place in the code. Other things that I couldn't get working (maybe I did something wrong, but I don't think so) include multiple search terms, vendor value, level, and quantity. However, item quality being searchable by color (green, blue, etc.) seemed functional.
Report comment to moderator  
Reply With Quote
Unread 08-18-11, 11:25 AM  
Weeperman
A Kobold Labourer
 
Weeperman's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 6
Angry WIP - I'm looking at these issues

I've notices some issues with how this is integrating in to the cata codebase - it has become obvious that certain calls do not work as they used to.

I am at present working through these issues at home, as they are becoming irrating to me too - so once I have some resolved I will upload a new version.

Many thanks,

Weepz
Report comment to moderator  
Reply With Quote
Unread 08-30-11, 04:48 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
One negative thing I've noticed with v4.2.1: every time you do a basic text search when (only) all your backpack bags are open, the screen freezes for 2-3 seconds before highlighting the item.

For example, after a ZA instance run, type in "/hl hex" (when you have one or more Amani Hex Sticks in your packs) and the above happens. Its very irritating and something that did not happen with v4.2 & prior. Also problematic if you decide to do a search of something in or just before combat, if you are in the process of trading with someone and so on.

Have not done CPU testing yet, but with the (possibly) changed search methods you use in v4.2.1, is it spiking CPU through the roof on a search now? Or is it a (poor) design method like something I've seen in other mods that decide to tabulate your entire inventory or data cache before returning data?

Other mods with examples of this freezing behavior when dealing with the cache or otherwise I've seen include FuBar_MailExpiryFu (on Curse) and TradeTrak (on this site). Hope that behavior can be improved in Highlight.
Last edited by Zidomo : 08-30-11 at 04:51 PM.
Report comment to moderator  
Reply With Quote
Unread 09-01-11, 06:53 AM  
Ghostkeeper
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Apparently, this add-on's functionality is going to be integrated into the default UI with Patch 4.3. Well done! It's a very useful and non-invasive add-on
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.