Merge with siana/future
This commit is contained in:
@@ -588,6 +588,7 @@ BOOL LLInventoryView::postBuild()
|
||||
|
||||
childSetAction("Inventory.ResetAll",onResetAll,this);
|
||||
childSetAction("Inventory.ExpandAll",onExpandAll,this);
|
||||
childSetAction("collapse_btn", onCollapseAll, this);
|
||||
|
||||
//panel->getFilter()->markDefault();
|
||||
return TRUE;
|
||||
@@ -1354,6 +1355,19 @@ void LLInventoryView::onExpandAll(void* userdata)
|
||||
}
|
||||
|
||||
|
||||
//static
|
||||
void LLInventoryView::onCollapseAll(void* userdata)
|
||||
{
|
||||
LLInventoryView* self = (LLInventoryView*) userdata;
|
||||
self->mActivePanel = (LLInventoryPanel*)self->childGetVisibleTab("inventory filter tabs");
|
||||
|
||||
if (!self->mActivePanel)
|
||||
{
|
||||
return;
|
||||
}
|
||||
self->mActivePanel->closeAllFolders();
|
||||
}
|
||||
|
||||
//static
|
||||
void LLInventoryView::onFilterSelected(void* userdata, bool from_click)
|
||||
{
|
||||
@@ -1541,6 +1555,9 @@ std::string get_item_icon_name(LLAssetType::EType asset_type,
|
||||
case LLAssetType::AT_GESTURE:
|
||||
idx = GESTURE_ICON_NAME;
|
||||
break;
|
||||
case LLAssetType::AT_MESH:
|
||||
idx = MESH_ICON_NAME;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user