From b3beabec8660602a891c94f4afb8c63a2b31e62f Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Thu, 6 Apr 2023 20:12:56 +0300 Subject: SL-19550 Add a shop menu item to the Inventory menu --- indra/newview/llpanelmaininventory.cpp | 6 +++++- indra/newview/skins/default/xui/en/menu_inventory_add.xml | 11 ++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 7d7a92de81..5535d64d27 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -60,6 +60,7 @@ #include "llfolderview.h" #include "llradiogroup.h" #include "llenvironment.h" +#include "llweb.h" const std::string FILTERS_FILENAME("filters.xml"); @@ -1815,7 +1816,10 @@ void LLPanelMainInventory::onCustomAction(const LLSD& userdata) LLAvatarActions::shareWithAvatars(this); } } - + if (command_name == "shop") + { + LLWeb::loadURL(gSavedSettings.getString("MarketplaceURL")); + } if (command_name == "list_view") { setViewMode(MODE_LIST); diff --git a/indra/newview/skins/default/xui/en/menu_inventory_add.xml b/indra/newview/skins/default/xui/en/menu_inventory_add.xml index 3385a29a6c..12ba121d3c 100644 --- a/indra/newview/skins/default/xui/en/menu_inventory_add.xml +++ b/indra/newview/skins/default/xui/en/menu_inventory_add.xml @@ -290,4 +290,13 @@ function="Inventory.EnvironmentEnabled" /> - \ No newline at end of file + + + + + -- cgit v1.2.3