Merge in Storm-1838
This commit is contained in:
@@ -4595,6 +4595,16 @@ void LLCallingCardBridge::performAction(LLInventoryModel* model, std::string act
|
||||
LLAvatarActions::offerTeleport(item->getCreatorUUID());
|
||||
}
|
||||
}
|
||||
else if ("request_lure" == action)
|
||||
{
|
||||
LLViewerInventoryItem *item = getItem();
|
||||
if (item && (item->getCreatorUUID() != gAgent.getID()) &&
|
||||
(!item->getCreatorUUID().isNull()))
|
||||
{
|
||||
LLAvatarActions::teleportRequest(item->getCreatorUUID());
|
||||
}
|
||||
}
|
||||
|
||||
else LLItemBridge::performAction(model, action);
|
||||
}
|
||||
|
||||
@@ -4678,6 +4688,7 @@ void LLCallingCardBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
|
||||
items.push_back(std::string("Send Instant Message Separator"));
|
||||
items.push_back(std::string("Send Instant Message"));
|
||||
items.push_back(std::string("Offer Teleport..."));
|
||||
items.push_back(std::string("Request Teleport..."));
|
||||
items.push_back(std::string("Conference Chat"));
|
||||
|
||||
if (!good_card)
|
||||
@@ -4687,6 +4698,7 @@ void LLCallingCardBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
|
||||
if (!good_card || !user_online)
|
||||
{
|
||||
disabled_items.push_back(std::string("Offer Teleport..."));
|
||||
disabled_items.push_back(std::string("Request Teleport..."));
|
||||
disabled_items.push_back(std::string("Conference Chat"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user