Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #155 from Ketho/master
Browse files Browse the repository at this point in the history
GetAuctionItemClasses was removed
  • Loading branch information
jabernat committed Apr 11, 2017
2 parents 69408f9 + 6dd7016 commit 63a9b85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions GuildBankSearch/GuildBankSearch.lua
Expand Up @@ -47,7 +47,12 @@ local Filter = {
NS.Filter = Filter;
NS.Qualities = {};
NS.Types = { GetAuctionItemClasses() };
NS.Types = {};
for Index = 0, NUM_LE_ITEM_CLASSS-1 do
NS.Types[ Index ] = GetItemClassInfo( Index );
end
NS.SubTypes = {};
NS.Slots = {}; -- Sorted list of inventory types that can be searched for
NS.SlotGroups = { -- Categories paired with the inventory types that can match them (can be multiple)
Expand Down Expand Up @@ -460,7 +465,10 @@ for Index = 0, #ITEM_QUALITY_COLORS do
end
-- Fill in and sort subtypes
for Index, Type in ipairs( NS.Types ) do
NS.SubTypes[ Type ] = { GetAuctionItemSubClasses( Index ) };
NS.SubTypes[ Type ] = { };
for SubIndex, SubValue in pairs( { GetAuctionItemSubClasses( Index ) } ) do
NS.SubTypes[ Type ] [ SubIndex ] = GetItemSubClassInfo( Index, SubValue );
end
sort( NS.SubTypes[ Type ] );
end
-- Sort types
Expand Down
2 changes: 1 addition & 1 deletion GuildBankSearch/GuildBankSearch.toc
@@ -1,4 +1,4 @@
## Interface: 60000
## Interface: 70200
## Title: GuildBank|cffccccccSearch|r
## Notes: Adds a search filter to the guild bank.
## Notes-frFR: Ajoute un filtre de recherche à la banque de guilde.
Expand Down

0 comments on commit 63a9b85

Please sign in to comment.