From b6b18b06937ebb65bb386e72908fcea538194bd1 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sat, 26 Mar 2011 01:06:34 +0100 Subject: [PATCH] Adjustments to MultiAttach --- indra/newview/llagent.cpp | 5 +++-- indra/newview/llfloatercustomize.cpp | 8 ++++++++ indra/newview/llinventorybridge.cpp | 3 ++- indra/newview/skins/default/xui/en-us/menu_inventory.xml | 4 ++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index f3dc53305..1cc324c2c 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -7348,9 +7348,10 @@ void LLAgent::makeNewOutfit( return; } - BOOL fUseLinks = !gSavedSettings.getBOOL("UseInventoryLinks") && + BOOL fUseLinks = gSavedSettings.getBOOL("UseInventoryLinks") && gHippoGridManager->getConnectedGrid()->isSecondLife(); - BOOL fUseOutfits = gSavedSettings.getBOOL("UseOutfitFolders"); + BOOL fUseOutfits = gSavedSettings.getBOOL("UseOutfitFolders") && + gHippoGridManager->getConnectedGrid()->isSecondLife(); LLAssetType::EType typeDest = (fUseOutfits) ? LLAssetType::AT_MY_OUTFITS : LLAssetType::AT_CLOTHING; LLAssetType::EType typeFolder = (fUseOutfits) ? LLAssetType::AT_OUTFIT : LLAssetType::AT_NONE; diff --git a/indra/newview/llfloatercustomize.cpp b/indra/newview/llfloatercustomize.cpp index 17d16bb61..2670ae2a8 100644 --- a/indra/newview/llfloatercustomize.cpp +++ b/indra/newview/llfloatercustomize.cpp @@ -76,6 +76,7 @@ #include "lluictrlfactory.h" #include "llfilepicker.h" +#include "hippogridmanager.h" using namespace LLVOAvatarDefines; @@ -219,6 +220,13 @@ public: } } + if(!gHippoGridManager->getConnectedGrid()->isSecondLife()) { + childSetEnabled("checkbox_use_links", FALSE); + childSetValue("checkbox_use_links", FALSE); + childSetEnabled("checkbox_use_outfits", FALSE); + childSetValue("checkbox_use_outfits", FALSE); + } + childSetAction("Save", onSave, this ); childSetAction("Cancel", onCancel, this ); childSetAction("Check All", onCheckAll, this ); diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 063be4f1d..e2e844eaa 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -4179,7 +4179,8 @@ void LLObjectBridge::buildContextMenu(LLMenuGL& menu, U32 flags) { items.push_back(std::string("Attach Separator")); items.push_back(std::string("Object Wear")); - items.push_back(std::string("Object Add")); + if (gHippoGridManager->getConnectedGrid()->isSecondLife()) + items.push_back(std::string("Object Add")); if (!avatarp->canAttachMoreObjects()) { disabled_items.push_back(std::string("Object Add")); diff --git a/indra/newview/skins/default/xui/en-us/menu_inventory.xml b/indra/newview/skins/default/xui/en-us/menu_inventory.xml index 90f70d440..64f294599 100644 --- a/indra/newview/skins/default/xui/en-us/menu_inventory.xml +++ b/indra/newview/skins/default/xui/en-us/menu_inventory.xml @@ -263,7 +263,7 @@ - @@ -271,7 +271,7 @@ name="Object Wear" width="128"> -