WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   C_ToyBox changes (https://www.wowinterface.com/forums/showthread.php?t=53426)

Gello 05-13-16 04:47 AM

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

ceylina 06-16-16 11:45 AM

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)


All times are GMT -6. The time now is 09:41 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI