Files
SingularityViewer/indra/newview/skins/default/xui/en-us/menu_url_agent.xml
Lirusaito d8c95f844f Add url menus to the text editor!!
Hey there, Alpha User! This commit is riddled with complex words,
but here's what matters to you: This adds the ability to right click a
Name, URL, SLURL, or Object Name, or even an Email, and get some awesome
options just like v3 gets! Buuuut, unlike V3, if there was something else
you might want to do, we've still got you covered in the same menu!!

Also make the text editor's default menu an xml
Synced a lot from upstream
Unlike Upstream, actually combine the base menu with the url menu if we have a selection
Unlike Upstream and previously, don't create a new menu per text editor
Unlike Upstream, don't create a separate FriendSignal and ObjectBlockedSignal per text editor we need it in!!
Unlike Upstream, always show a Select All option
2019-01-20 09:40:56 -05:00

54 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<context_menu
layout="topleft"
label="User"
name="Url Popup">
<menu_item_call
label="View Profile"
layout="topleft"
name="show_agent">
<menu_item_call.on_click
function="Text.Url" userdata="ShowProfile" />
</menu_item_call>
<menu_item_call
label="Send IM..."
layout="topleft"
name="send_im">
<menu_item_call.on_click
function="Text.Url" userdata="SendIM" />
</menu_item_call>
<menu_item_call
label="Add Friend..."
layout="topleft"
name="add_friend">
<menu_item_call.on_click
function="Text.Url" userdata="AddFriend" />
</menu_item_call>
<menu_item_call
label="Remove Friend..."
layout="topleft"
name="remove_friend">
<menu_item_call.on_click
function="Text.Url" userdata="RemoveFriend" />
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Copy Name to clipboard"
layout="topleft"
name="url_copy_label">
<menu_item_call.on_click
function="Text.Url" userdata="CopyLabel" />
</menu_item_call>
<menu_item_call
label="Copy SLurl to clipboard"
layout="topleft"
name="url_copy">
<menu_item_call.on_click
function="Text.Url" userdata="CopyUrl" />
</menu_item_call>
<menu_item_call label="Select All" name="Select All">
<on_click function="Text" userdata="SelectAll"/>
</menu_item_call>
</context_menu>