Add silent keep/discard inventory offer buttons
Adapted from Phoenix code
This commit is contained in:
@@ -1603,6 +1603,31 @@ bool LLOfferInfo::inventory_offer_callback(const LLSD& notification, const LLSD&
|
||||
} // end switch (mIM)
|
||||
break;
|
||||
|
||||
case -2: // decline silently
|
||||
{
|
||||
log_message = "You silently decline " + mDesc + " from " + mFromName + ".";
|
||||
chat.mText = log_message;
|
||||
LLFloaterChat::addChatHistory(chat);
|
||||
}
|
||||
break;
|
||||
case -1: // accept silently
|
||||
{
|
||||
LLOpenAgentOffer* open_agent_offer = new LLOpenAgentOffer(mObjectID, from_string);
|
||||
open_agent_offer->startFetch();
|
||||
if(catp || (itemp && itemp->isFinished()))
|
||||
{
|
||||
open_agent_offer->done();
|
||||
}
|
||||
else
|
||||
{
|
||||
opener = open_agent_offer;
|
||||
}
|
||||
log_message = "You silently accept " + mDesc + " from " + mFromName + ".";
|
||||
chat.mText = log_message;
|
||||
LLFloaterChat::addChatHistory(chat);
|
||||
}
|
||||
break;
|
||||
|
||||
case IOR_BUSY:
|
||||
//Busy falls through to decline. Says to make busy message.
|
||||
busy=TRUE;
|
||||
|
||||
Reference in New Issue
Block a user