Go to Page... |
Compatibility: | Update 7 (1.7.0) |
Updated: | 12/29/14 02:12 AM |
Created: | 12/03/14 12:34 AM |
Monthly downloads: | 58 |
Total downloads: | 15,709 |
Favorites: | 4 |
MD5: |
-- Inventories FILTERIT_BACKPACK -- Filters items in the backpack inventory window FILTERIT_BANK -- Filters items in the bank window FILTERIT_GUILDBANK -- Filters items in the guild bank window -- Other backpack layouts FILTERIT_TRADINGHOUSE -- Filters items in the trading house sell window FILTERIT_TRADE -- Filters in from the trade window FILTERIT_VENDOR -- Filters items in the vendor sell window FILTERIT_MAIL -- Filters items in the mail send window -- General crafting FILTERIT_DECONSTRUCTION -- Filters items in all deconstruction windows FILTERIT_IMPROVEMENT -- Filters items in all crafting improvement windows FILTERIT_REFINEMENT -- Filters items in all refinement windows FILTERIT_RESEARCH -- Filters items in the crafting research dialog window -- crafting FILTERIT_ALCHEMY -- Filters items in the alchemy crafting station FILTERIT_ENCHANTING -- Filters items in the enchanting creation & extraction window FILTERIT_PROVISIONING -- Filters items in the provisioning crafting window
## Title: Click4Info ## APIVersion: 100010 ## OptionalDependsOn: LibAddonMenu-2.0 ## SavedVariables: Click4InfoSavedVars ## Version: 1.5 ## Author: Circonian ## Description: Circonians Click4Info Version 1.5 libs\LibStub\LibStub.lua libs\LibFilterIt-1.0\LibFilterIt-1.0.lua -- ... Other files your addon uses --
local LFI = LibStub:GetLibrary("LibFilterIt-1.0")
local function FilterQuality(_tSlot) local _, _, _, _, _, _, _, quality = GetItemInfo(_tSlot.bagId, _tSlot.slotIndex) if quality > ITEM_QUALITY_NORMAL then return false end return true end
function lfi:RegisterFilter(AddonName, FilterName, FilterId, FilterFunc)
local boolSuccess, stringReason = LFI:RegisterFilter("MyAddonName", "SomeUniqueFilterName", FILTERIT_TRADINGHOUSE, FilterQuality)
function lfi:UnregisterFilter(AddonName, FilterName, FilterId)
local boolSuccess, stringReason = LFI:UnregisterFilter("MyAddonName", "SomeUniqueFilterName", FILTERIT_TRADINGHOUSE)
function lfi:IsFilterRegistered(_FilterName, _FilterId)
false, nil -- If the filter name is not registered for the given filter ID false, "Invalid FilterId" -- if you make a type-o in the filterId true, "Filter Name is registered to addon: <Addon That Registered the Filter>"
Version 1.0_R2
CRASH FIX There is apparently a recipe that has either a bugged recipeResultItemLink or it has strange characters in it that was causing the game to crash, for characters that new that recipe, when the new library attempted to use the link. My characters do not know that recipe & the data for recipes can only be accessed if your character knows the recipe so I had no way of knowing this would happen. It has been fixed.
Provisioning Filter Change
Provisioning Filter Change Due to the problem with links & other things I changed the way the provisioning filter works. It doesn't change anything for any addon, just how it filters. If an item is ingredient for a recipe is marked with something other than "Save For Provisioning" it will just tell the user they do not have enough ingredients to craft the recipe and not offer the option to craft it.
FILTER CHANGES To make it easier to handle filter registering filters & to better fit with the way the game is designed I decided to change the blacksmithing, clothier, woodworking filters. Instead of registering for the craft type you register which view you want it hidden from:
FILTERIT_DECONSTRUCTION
If you have any more problems with it let me know. -- hides items from the deconstruction window views
FILTERIT_IMPROVEMENT
If you have any more problems with it let me know. -- Hides items from improvement window views
FILTERIT_REFINEMENT
If you have any more problems with it let me know. -- hides items from refinement window views
FILTERIT_RESEARCH
If you have any more problems with it let me know. -- Hides items from research dialog window
Code Updates Found a few cleaner ways to do things so while I was at it I updated some of the code.
File Name |
Version |
Size |
Uploader |
Date |
1.0_R2 |
6kB |
circonian |
12/12/14 12:29 AM |
|
1.0_R1 |
6kB |
circonian |
12/03/14 12:34 AM |
Comment Options |
03/18/20, 06:00 AM | |
|
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |