summaryrefslogtreecommitdiff
path: root/indra/newview/skins
diff options
context:
space:
mode:
authorAnsariel <none@none>2017-04-27 19:19:11 +0200
committerAnsariel <none@none>2017-04-27 19:19:11 +0200
commitb59ac959fcf2f1f0435f965d2c7279f529f1ce5c (patch)
treedc3383bbb92181483baae1394c93e7fcda534d4b /indra/newview/skins
parentd65e6e83821bf134805282e5c2ff66f76c819fe6 (diff)
MAINT-6519 Contribution, adds feature to replace inventory links
Diffstat (limited to 'indra/newview/skins')
-rw-r--r--indra/newview/skins/default/xui/en/floater_linkreplace.xml106
-rw-r--r--indra/newview/skins/default/xui/en/menu_inventory.xml8
-rw-r--r--indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml8
3 files changed, 122 insertions, 0 deletions
diff --git a/indra/newview/skins/default/xui/en/floater_linkreplace.xml b/indra/newview/skins/default/xui/en/floater_linkreplace.xml
new file mode 100644
index 0000000000..ece75e2576
--- /dev/null
+++ b/indra/newview/skins/default/xui/en/floater_linkreplace.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<floater
+ name="linkreplace"
+ help_topic="linkreplace"
+ positioning="centered"
+ title="REPLACE INVENTORY LINKS"
+ width="333"
+ height="130"
+ save_rect="true"
+ can_minimize="true"
+ can_close="true">
+ <string name="Ready">
+ Ready...
+ </string>
+ <string name="TargetNotFound">
+ Target item not found.
+ </string>
+ <string name="ItemsIdentical">
+ Source and target are identical.
+ </string>
+ <string name="ItemsFound">
+ Found [NUM] inventory links.
+ </string>
+ <string name="ItemsRemaining">
+ Links remaining: [NUM]
+ </string>
+ <string name="ReplaceFinished">
+ Finished replacing inventory links.
+ </string>
+ <text
+ type="string"
+ follows="left|top"
+ font="SansSerif"
+ height="23"
+ layout="topleft"
+ left="10"
+ width="35"
+ name="source_label"
+ top="10">
+ Old:
+ </text>
+ <inventory_link_replace_drop_target
+ name="source_uuid_editor"
+ follows="left|top|right"
+ height="23"
+ layout="topleft"
+ left_pad="10"
+ max_length_bytes="255"
+ top_delta="-3"
+ right="-10"
+ tool_tip="Drag and drop the current inventory item here that should be replaced."/>
+ <text
+ type="string"
+ follows="left|top"
+ font="SansSerif"
+ height="23"
+ layout="topleft"
+ left="10"
+ width="35"
+ name="target_label"
+ top_pad="10">
+ New:
+ </text>
+ <inventory_link_replace_drop_target
+ name="target_uuid_editor"
+ follows="left|top|right"
+ height="23"
+ layout="topleft"
+ left_pad="10"
+ max_length_bytes="255"
+ top_delta="-3"
+ right="-10"
+ tool_tip="Drag and drop new inventory item here."/>
+ <text
+ type="string"
+ follows="left|top|right"
+ font="SansSerif"
+ height="20"
+ layout="topleft"
+ left="10"
+ right="-10"
+ name="status_text"
+ top_pad="10">
+ Ready...
+ </text>
+ <button
+ top_pad="5"
+ left="10"
+ height="22"
+ width="90"
+ follows="left|top"
+ mouse_opaque="true"
+ halign="center"
+ name="btn_refresh"
+ label="Refresh"/>
+ <button
+ top_delta="0"
+ right="-10"
+ height="22"
+ width="90"
+ follows="right|top"
+ mouse_opaque="true"
+ halign="center"
+ name="btn_start"
+ label="Start"/>
+</floater>
diff --git a/indra/newview/skins/default/xui/en/menu_inventory.xml b/indra/newview/skins/default/xui/en/menu_inventory.xml
index 7b3a9a2e3e..8472185457 100644
--- a/indra/newview/skins/default/xui/en/menu_inventory.xml
+++ b/indra/newview/skins/default/xui/en/menu_inventory.xml
@@ -603,6 +603,14 @@
function="Inventory.DoToSelected"
parameter="paste_link" />
</menu_item_call>
+ <menu_item_call
+ label="Replace Links"
+ layout="topleft"
+ name="Replace Links">
+ <menu_item_call.on_click
+ function="Inventory.DoToSelected"
+ parameter="replace_links" />
+ </menu_item_call>
<menu_item_separator
layout="topleft"
name="Paste Separator" />
diff --git a/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml b/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml
index d95541df80..3eacdbc781 100644
--- a/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml
+++ b/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml
@@ -146,6 +146,14 @@
function="Inventory.GearDefault.Enable"
parameter="find_links" />
</menu_item_call>
+ <menu_item_call
+ label="Replace Links"
+ layout="topleft"
+ name="Replace Links">
+ <on_click
+ function="Inventory.GearDefault.Custom.Action"
+ parameter="replace_links" />
+ </menu_item_call>
<menu_item_separator
layout="topleft" />