Make Outbox and Favorites like other new inventory windows

Yay search~
This commit is contained in:
Lirusaito
2019-05-04 03:24:28 -04:00
parent 22f314d158
commit 140f5d3b0a
11 changed files with 82 additions and 56 deletions

View File

@@ -101,6 +101,7 @@ F32 LLToolBar::sInventoryAutoOpenTime = 1.f;
// Functions
//
void show_floater(const std::string& floater_name);
void show_inv_floater(const LLSD& userdata, const std::string& field);
LLToolBar::LLToolBar()
: LLLayoutPanel()
@@ -108,6 +109,9 @@ LLToolBar::LLToolBar()
setIsChrome(TRUE);
setFocusRoot(TRUE);
mCommitCallbackRegistrar.add("ShowFloater", boost::bind(show_floater, _2));
mCommitCallbackRegistrar.add("ShowInvFloater.ID", boost::bind(show_inv_floater, _2, "id"));
mCommitCallbackRegistrar.add("ShowInvFloater.Name", boost::bind(show_inv_floater, _2, "name"));
mCommitCallbackRegistrar.add("ShowInvFloater.Type", boost::bind(show_inv_floater, _2, "type"));
}