Add Web Profile option to calling card inventory menu
Only shown when web profiles are available and web profiles aren't used by default
This commit is contained in:
@@ -4642,6 +4642,13 @@ void LLCallingCardBridge::performAction(LLInventoryModel* model, std::string act
|
||||
LLAvatarActions::teleportRequest(item->getCreatorUUID());
|
||||
}
|
||||
}
|
||||
else if ("web_profile" == action)
|
||||
{
|
||||
if (LLViewerInventoryItem* item = getItem())
|
||||
{
|
||||
LLAvatarActions::showProfile(item->getCreatorUUID(), true);
|
||||
}
|
||||
}
|
||||
|
||||
else LLItemBridge::performAction(model, action);
|
||||
}
|
||||
@@ -4724,6 +4731,8 @@ void LLCallingCardBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
|
||||
user_online = (LLAvatarTracker::instance().isBuddyOnline(item->getCreatorUUID()));
|
||||
}
|
||||
items.push_back(std::string("Send Instant Message Separator"));
|
||||
if (!gSavedSettings.getString("WebProfileURL").empty() && !gSavedSettings.getBOOL("UseWebProfiles"))
|
||||
items.push_back(std::string("Web Profile"));
|
||||
items.push_back(std::string("Send Instant Message"));
|
||||
items.push_back(std::string("Offer Teleport..."));
|
||||
items.push_back(std::string("Request Teleport..."));
|
||||
|
||||
@@ -273,6 +273,9 @@
|
||||
<on_click filter="" function="Inventory.DoToSelected" userdata="playlocal" />
|
||||
</menu_item_call>
|
||||
<menu_item_separator name="Send Instant Message Separator" />
|
||||
<menu_item_call label="Web Profile" name="Web Profile">
|
||||
<on_click function="Inventory.DoToSelected" userdata="web_profile"/>
|
||||
</menu_item_call>
|
||||
<menu_item_call bottom_delta="-18" height="18" label="Send Instant Message" left="0"
|
||||
mouse_opaque="true" name="Send Instant Message" width="128">
|
||||
<on_click filter="" function="Inventory.DoToSelected" userdata="begin_im" />
|
||||
|
||||
Reference in New Issue
Block a user