World of Warcraft Forever API · HousingCatalogSearcherAPI.md, for your AI
HousingCatalogSearcherAPI (widget methods)
46 functions, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
GetAllSearchItems
matchingEntryVariantIDs = self:GetAllSearchItems()
Returns all catalog entries being searched (note these are NOT search results, this is the source collection of what's being searched)
Returns
matchingEntryVariantIDs | HousingCatalogEntryVariantID[] |
|---|
GetCatalogSearchResults
matchingEntryVariantIDs = self:GetCatalogSearchResults()
Returns the most recent search result entries
Returns
matchingEntryVariantIDs | HousingCatalogEntryVariantID[] |
|---|
GetEditorModeContext
editorModeContext = self:GetEditorModeContext()
Returns
editorModeContext | HouseEditorMode may be nil |
|---|
GetFilterTagStatus
active = self:GetFilterTagStatus(groupID, tagID)
Arguments
groupID | number | |
|---|---|---|
tagID | number |
Returns
active | bool |
|---|
GetFilteredCategoryID
categoryID = self:GetFilteredCategoryID()
Returns
categoryID | number may be nil |
|---|
GetFilteredSubcategoryID
subcategoryID = self:GetFilteredSubcategoryID()
Returns
subcategoryID | number may be nil |
|---|
GetNumSearchItems
numSearchItems = self:GetNumSearchItems()
Returns the total number of entries being searched through
Returns
numSearchItems | number |
|---|
GetSearchCount
searchCount = self:GetSearchCount()
Returns the total number of owned instances across all most recent search result entries
Returns
searchCount | number |
|---|
GetSearchText
searchText = self:GetSearchText()
Returns
searchText | string may be nil |
|---|
GetSortType
sortType = self:GetSortType()
Returns
sortType | HousingCatalogSortType |
|---|
IsAllowedIndoorsActive
isActive = self:IsAllowedIndoorsActive()
Returns
isActive | bool |
|---|
IsAllowedOutdoorsActive
isActive = self:IsAllowedOutdoorsActive()
Returns
isActive | bool |
|---|
IsBaseVariantOnlyActive
isActive = self:IsBaseVariantOnlyActive()
Returns
isActive | bool |
|---|
IsCollectedActive
isActive = self:IsCollectedActive()
Returns
isActive | bool |
|---|
IsCustomizableOnlyActive
isActive = self:IsCustomizableOnlyActive()
Returns
isActive | bool |
|---|
IsFirstAcquisitionBonusOnlyActive
isActive = self:IsFirstAcquisitionBonusOnlyActive()
Returns
isActive | bool |
|---|
IsSearchInProgress
isSearchInProgress = self:IsSearchInProgress()
Returns
isSearchInProgress | bool |
|---|
IsStoredOnlyActive
isActive = self:IsStoredOnlyActive()
Returns
isActive | bool |
|---|
IsUncollectedActive
isActive = self:IsUncollectedActive()
Returns
isActive | bool |
|---|
RunSearch
self:RunSearch()
Run search with all current param values
SetAllInFilterTagGroup
self:SetAllInFilterTagGroup(groupID, active)
Set the toggle state of all filter tags within a specific group; If active, only entries that match Any of the tags in the group will be included in search results
Arguments
groupID | number | |
|---|---|---|
active | bool |
SetAllowedIndoors
self:SetAllowedIndoors(isActive)
Search parameter; If true, entries that can be placed in house interiors will be included in the search; Note many decor objects can be placed both indoors and outdoors, so having only this toggled on may still include decor that can also be placed outdoors
Arguments
isActive | bool |
|---|
SetAllowedOutdoors
self:SetAllowedOutdoors(isActive)
Search parameter; If true, entries that can be placed outside in plots will be included in the search; Note many decor objects can be placed both indoors and outdoors, so having only this toggled on may still include decor that can also be placed indoors
Arguments
isActive | bool |
|---|
SetAutoUpdateOnParamChanges
self:SetAutoUpdateOnParamChanges(autoUpdateActive)
If true, searcher automatically updates results whenever search param values are changed
Arguments
autoUpdateActive | bool |
|---|
SetBaseVariantOnly
self:SetBaseVariantOnly(isActive)
Search parameter; If true, only the base variant of each decor entry will be included
Arguments
isActive | bool |
|---|
SetCollected
self:SetCollected(isActive)
Search parameter; If true, includes all owned entries, including those that are in storage OR placed in an owned house or plot; See IsStoredOnlyActive for a more exclusive toggle
Arguments
isActive | bool |
|---|
SetCustomizableOnly
self:SetCustomizableOnly(isActive)
Search parameter; If true, catalog entries that cannot be customized (ie dyed) will be excluded from the search
Arguments
isActive | bool |
|---|
SetEditorModeContext
self:SetEditorModeContext([editorModeContext])
Search parameter; If set, limits search results to only entries that are used/valid in the specified editor mode
Arguments
editorModeContext | HouseEditorMode may be nil |
|---|
SetFilterTagStatus
self:SetFilterTagStatus(groupID, tagID, active)
Set the toggle state of a single filter tag within a specific group
Arguments
groupID | number | |
|---|---|---|
tagID | number | |
active | bool |
SetFilteredCategoryID
self:SetFilteredCategoryID([categoryID])
Search parameter; If set, limits search results to only those within the specified category
Arguments
categoryID | number may be nil |
|---|
SetFilteredSubcategoryID
self:SetFilteredSubcategoryID([subcategoryID])
Search parameter; If set, limits search results to only those within the specified subcategory
Arguments
subcategoryID | number may be nil |
|---|
SetFirstAcquisitionBonusOnly
self:SetFirstAcquisitionBonusOnly(isActive)
Search parameter; If true, excludes any entries that do not reward house xp when acquired for the first time
Arguments
isActive | bool |
|---|
SetResultsUpdatedCallback
self:SetResultsUpdatedCallback(callback)
Arguments
callback | HousingCatalogSearchResultsUpdatedCallback |
|---|
SetSearchText
self:SetSearchText([searchText])
Search parameter; If set, multiple text fields are checked for instances of the text, including name, category, subcategory, and data tags
Arguments
searchText | string may be nil | Supports advanced search tokens ('"' '-' and '|'), case and accent insensitive; Set nil to clear out the search text |
|---|
SetSortType
self:SetSortType(sortType)
Arguments
sortType | HousingCatalogSortType |
|---|
SetStoredOnly
self:SetStoredOnly(isActive)
Search parameter; If true, only entries that you have instances of available in storage will be included; This does not include entries that you own but have all been placed in a house; See IsCollectedActive for param that includes placed entries
Arguments
isActive | bool |
|---|
SetUncollected
self:SetUncollected(isActive)
Search parameter; If true, includes entries that are not owned, meaning not available in storage nor placed in any owned houses or plots
Arguments
isActive | bool |
|---|
ToggleAllowedIndoors
self:ToggleAllowedIndoors()
ToggleAllowedOutdoors
self:ToggleAllowedOutdoors()
ToggleBaseVariantOnly
self:ToggleBaseVariantOnly()
ToggleCollected
self:ToggleCollected()
ToggleCustomizableOnly
self:ToggleCustomizableOnly()
ToggleFilterTag
self:ToggleFilterTag(groupID, tagID)
Arguments
groupID | number | |
|---|---|---|
tagID | number |
ToggleFirstAcquisitionBonusOnly
self:ToggleFirstAcquisitionBonusOnly()
ToggleStoredOnly
self:ToggleStoredOnly()
ToggleUncollected
self:ToggleUncollected()