Added "offerteleport" FS SLurl command and wired it up in agent SLurl context menu
parent
441997560c
commit
732fc8918c
|
|
@ -1846,6 +1846,7 @@ BOOL LLScrollListCtrl::handleRightMouseDown(S32 x, S32 y, MASK mask)
|
|||
// <FS:Ansariel> Additional convenience options
|
||||
registrar.add("FS.ZoomIn", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + id + "/zoom"));
|
||||
registrar.add("FS.TeleportToTarget", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + id + "/teleportto"));
|
||||
registrar.add("FS.OfferTeleport", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + id + "/offerteleport"));
|
||||
registrar.add("FS.TrackAvatar", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + id + "/track"));
|
||||
// </FS:Ansariel> Additional convenience options
|
||||
|
||||
|
|
|
|||
|
|
@ -1926,6 +1926,7 @@ void LLTextBase::createUrlContextMenu(S32 x, S32 y, const std::string &in_url)
|
|||
std::string target_id = LLUrlAction::extractUuidFromSlurl(url).asString();
|
||||
registrar.add("FS.ZoomIn", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + target_id + "/zoom"));
|
||||
registrar.add("FS.TeleportToTarget", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + target_id + "/teleportto"));
|
||||
registrar.add("FS.OfferTeleport", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + target_id + "/offerteleport"));
|
||||
registrar.add("FS.TrackAvatar", boost::bind(&LLUrlAction::executeSLURL, "secondlife:///app/firestorm/" + target_id + "/track"));
|
||||
// </FS:Ansariel>
|
||||
|
||||
|
|
|
|||
|
|
@ -80,6 +80,16 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
if (verb == "offerteleport")
|
||||
{
|
||||
if (gAgentID != target_id)
|
||||
{
|
||||
LLAvatarActions::offerTeleport(target_id);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (verb == "teleportto")
|
||||
{
|
||||
if (gAgentID != target_id)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
<menu_item_call label="Einwohnerprofil anzeigen" name="show_agent"/>
|
||||
<menu_item_call label="Zoome auf Einwohner" name="zoom_agent"/>
|
||||
<menu_item_call label="Zu Einwohner teleportieren" name="teleportto_agent"/>
|
||||
<menu_item_call label="Einwohner Teleport anbieten" name="offer_teleport"/>
|
||||
<menu_item_call label="Einwohner verfolgen" name="track_agent"/>
|
||||
<menu_item_call label="Name in Zwischenablage kopieren" name="url_copy_label"/>
|
||||
<menu_item_call label="SLurl in die Zwischenablage kopieren" name="url_copy"/>
|
||||
|
|
|
|||
|
|
@ -25,8 +25,13 @@
|
|||
name="teleportto_agent">
|
||||
<menu_item_call.on_click
|
||||
function="FS.TeleportToTarget" />
|
||||
<menu_item_call.on_enable
|
||||
function="FS.VisibleTeleportToTarget" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Offer Teleport"
|
||||
layout="topleft"
|
||||
name="offer_teleport">
|
||||
<menu_item_call.on_click
|
||||
function="FS.OfferTeleport" />
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Track Resident"
|
||||
|
|
|
|||
Loading…
Reference in New Issue