class ItemFilterToggleController extends ToggleController
{
	private editable var m_newItemDot : inkWidgetRef;
	private editable var m_useCategoryFilter : Bool;

	public override function GetLabelKey() : String
	{
		return NameToString( ( ( m_useCategoryFilter ) ? ( ItemFilterCategories.GetLabelKey( m_data ) ) : ( ItemFilters.GetLabelKey( m_data ) ) ) );
	}

	public override function GetIcon() : String
	{
		if( !( m_useCategoryFilter ) && ( ( ItemFilterType )( m_data ) ) == ItemFilterType.Attachments )
		{
			return "UIIcon.Filter_Mods";
		}
		inkWidgetRef.SetVisible( m_newItemDot, m_useCategoryFilter && ( ( ItemFilterCategory )( m_data ) ) == ItemFilterCategory.Buyback );
		return ( ( m_useCategoryFilter ) ? ( ItemFilterCategories.GetIcon( m_data ) ) : ( ItemFilters.GetIcon( m_data ) ) );
	}

}

