From 0cb6f6fcdc6b8b58e777b5819a4283da0e5d4620 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 8 Nov 2008 22:37:38 -0600 Subject: Added 'Custom' filter option (opens filters window). --- linden/indra/newview/llinventoryview.cpp | 10 ++++++++++ .../newview/skins/default/xui/en-us/floater_inventory.xml | 3 +++ 2 files changed, 13 insertions(+) (limited to 'linden/indra/newview') diff --git a/linden/indra/newview/llinventoryview.cpp b/linden/indra/newview/llinventoryview.cpp index e0061ba..6d5bf4d 100644 --- a/linden/indra/newview/llinventoryview.cpp +++ b/linden/indra/newview/llinventoryview.cpp @@ -1060,6 +1060,16 @@ void LLInventoryView::onQuickFilterCommit(LLUICtrl* ctrl, void* user_data) filter_type = 0x1 << LLInventoryType::IT_SNAPSHOT; } + else if ("Custom..." == item_type) + { + // When they select custom, show the floater then return + if( !(view->filtersVisible(view)) ) + { + view->toggleFindOptions(); + } + return; + } + else { // Show all types diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_inventory.xml b/linden/indra/newview/skins/default/xui/en-us/floater_inventory.xml index 7d0f086..9cda2a9 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_inventory.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_inventory.xml @@ -50,6 +50,9 @@ Snapshots + + Custom... +