Feature Request: Show profile from inventory offer notifications

This commit is contained in:
Inusaito Sayori
2013-08-15 01:36:07 -04:00
parent a5705bd459
commit 03b384334c
2 changed files with 12 additions and 0 deletions

View File

@@ -1391,6 +1391,14 @@ bool LLOfferInfo::inventory_offer_callback(const LLSD& notification, const LLSD&
LLChat chat;
std::string log_message;
S32 button = LLNotificationsUtil::getSelectedOption(notification, response);
if (button == 3) // profile
{
LLAvatarActions::showProfile(mFromID);
LLNotification::Params p(notification["name"]);
p.substitutions(notification["substitutions"]).payload(notification["payload"]).functor(boost::bind(&LLOfferInfo::inventory_offer_callback, this, _1, _2));
LLNotifications::instance().add(p); //Respawn!
return false;
}
LLViewerInventoryCategory* catp = NULL;
catp = gInventory.getCategory(mObjectID);

View File

@@ -6734,6 +6734,10 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ
index="2"
name="Mute"
text="Mute"/>
<button
index="3"
name="Profile"
text="Profile"/>
</form>
</notification>