Add "Pay" option to contact list context menu

Ansariel 2014-09-04 13:27:56 +02:00
parent f554795cc5
commit 27e01fbfa3
3 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,7 @@ LLContextMenu* FSContactsFriendsMenu::createMenu()
registrar.add("Contacts.Friends.OfferTeleport", boost::bind(&FSContactsFriendsMenu::offerTeleport, this));
registrar.add("Contacts.Friends.RequestTeleport", boost::bind(&LLAvatarActions::teleportRequest, id));
registrar.add("Contacts.Friends.ZoomIn", boost::bind(&LLAvatarActions::zoomIn, id));
registrar.add("Contacts.Friends.Pay", boost::bind(&LLAvatarActions::pay, id));
registrar.add("Contacts.Friends.AddToContactSet", boost::bind(&FSContactsFriendsMenu::addToContactSet, this));
registrar.add("Contacts.Friends.TeleportToTarget", boost::bind(&FSContactsFriendsMenu::teleportToAvatar, this));
registrar.add("Contacts.Friends.TrackAvatar", boost::bind(&FSContactsFriendsMenu::onTrackAvatarMenuItemClick, this));

View File

@ -7,6 +7,7 @@
<menu_item_call label="Zu Freund teleportieren" name="teleportto_agent"/>
<menu_item_call label="Teleport anbieten" name="offer_teleport"/>
<menu_item_call label="Teleport anfordern" name="request_teleport"/>
<menu_item_call label="Bezahlen" name="pay"/>
<menu_item_call label="Freund verfolgen" name="track_agent"/>
<menu_item_call label="Freund entfernen..." name="remove_friend"/>
<menu_item_call label="Name in Zwischenablage kopieren" name="url_copy_label"/>

View File

@ -62,6 +62,13 @@
function="Contacts.Friends.EnableItem"
parameter="request_teleport"/>
</menu_item_call>
<menu_item_call
label="Pay"
layout="topleft"
name="pay">
<menu_item_call.on_click
function="Contacts.Friends.Pay"/>
</menu_item_call>
<menu_item_call
label="Track Friend"
layout="topleft"