Add Marketplace option to toolbar and add to world menu

Also hidden in this commit is the ability to add buttons/menu entries for
your favorite websites to be opened in the in-viewer browser
Just make a button that calls "ShowWebFloater" and passes the URL as param
This commit is contained in:
Lirusaito
2019-08-03 18:37:22 -04:00
parent 01b4f52fb0
commit bcf301ce6a
8 changed files with 59 additions and 3 deletions

View File

@@ -102,6 +102,7 @@ F32 LLToolBar::sInventoryAutoOpenTime = 1.f;
//
void show_floater(const std::string& floater_name);
void show_inv_floater(const LLSD& userdata, const std::string& field);
void show_web_floater(const std::string& type);
LLToolBar::LLToolBar()
: LLLayoutPanel()
@@ -112,6 +113,7 @@ LLToolBar::LLToolBar()
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"));
mCommitCallbackRegistrar.add("ShowWebFloater", boost::bind(show_web_floater, _2));
}