Thread Tools Display Modes
05-13-16, 04:47 AM   #1
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
C_ToyBox changes

For anyone updating toybox addons, several C_ToyBox functions were renamed:

GetFilterCollected -> GetCollectedShown
GetFilterUncollected - > GetUncollectedShown
SetFilterCollected -> SetCollectedShown
SetFilterUncollected -> SetUncollectedShown

IsSourceTypeFiltered -> IsSourceTypeFilterChecked
SetFilterSourceType -> SetSourceTypeFilter

The two set/clear all source filters functions were removed and replaced with a single function, which sets all filters if the based parameter is true and clears them all if false:

SetAllSourceTypeFiltered - Removed
ClearAllSourceTypesFiltered - Removed
SetAllSourceTypeFilters - New

And there's a new function called in the toybox's OnShow which does a refresh of the list:

ForceToyRefilter - New

Last edited by Gello : 05-13-16 at 07:30 AM.
 
06-16-16, 11:45 AM   #2
ceylina
A Wyrmkin Dreamwalker
Join Date: Oct 2014
Posts: 50
Exactly what I was looking for. Just remember that SetAllSourceTypeFilters() uses true or false so those need to be used, SetAllSourceTypeFilters(true) or SetAllSourceTypeFilters(false)
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » C_ToyBox changes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off