diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 14 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml | 4 |
2 files changed, 17 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 3bf390e..870c3fc 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -9751,6 +9751,19 @@ class LLAdvancedLeaveAdminStatus : public view_listener_t | |||
9751 | } | 9751 | } |
9752 | }; | 9752 | }; |
9753 | 9753 | ||
9754 | class LLAvatarReportAbuse : public view_listener_t | ||
9755 | { | ||
9756 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9757 | { | ||
9758 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); | ||
9759 | if(avatar) | ||
9760 | { | ||
9761 | LLFloaterReporter::showFromObject(avatar->getID()); | ||
9762 | } | ||
9763 | return true; | ||
9764 | } | ||
9765 | }; | ||
9766 | |||
9754 | 9767 | ||
9755 | 9768 | ||
9756 | static void addMenu(view_listener_t *menu, const char *name) | 9769 | static void addMenu(view_listener_t *menu, const char *name) |
@@ -9897,6 +9910,7 @@ void initialize_menus() | |||
9897 | addMenu(new LLAvatarGiveCard(), "Avatar.GiveCard"); | 9910 | addMenu(new LLAvatarGiveCard(), "Avatar.GiveCard"); |
9898 | addMenu(new LLAvatarEject(), "Avatar.Eject"); | 9911 | addMenu(new LLAvatarEject(), "Avatar.Eject"); |
9899 | addMenu(new LLAvatarSendIM(), "Avatar.SendIM"); | 9912 | addMenu(new LLAvatarSendIM(), "Avatar.SendIM"); |
9913 | addMenu(new LLAvatarReportAbuse(), "Avatar.ReportAbuse"); | ||
9900 | 9914 | ||
9901 | addMenu(new LLObjectEnableMute(), "Avatar.EnableMute"); | 9915 | addMenu(new LLObjectEnableMute(), "Avatar.EnableMute"); |
9902 | addMenu(new LLAvatarEnableAddFriend(), "Avatar.EnableAddFriend"); | 9916 | addMenu(new LLAvatarEnableAddFriend(), "Avatar.EnableAddFriend"); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml b/linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml index c8d8ed6..625b761 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml | |||
@@ -10,7 +10,9 @@ | |||
10 | <menu_item_call enabled="false" label="Go To" mouse_opaque="true" name="Go To"> | 10 | <menu_item_call enabled="false" label="Go To" mouse_opaque="true" name="Go To"> |
11 | <on_click function="GoToObject" /> | 11 | <on_click function="GoToObject" /> |
12 | </menu_item_call> | 12 | </menu_item_call> |
13 | <menu_item_separator /> | 13 | <menu_item_call enabled="false" label="Report Abuse..." mouse_opaque="true" name="abuse"> |
14 | <on_click function="Avatar.ReportAbuse" /> | ||
15 | </menu_item_call> | ||
14 | <menu_item_call enabled="false" label="Add Friend..." mouse_opaque="true" name="Add Friend"> | 16 | <menu_item_call enabled="false" label="Add Friend..." mouse_opaque="true" name="Add Friend"> |
15 | <on_click function="Avatar.AddFriend" /> | 17 | <on_click function="Avatar.AddFriend" /> |
16 | <on_enable function="Avatar.EnableAddFriend" /> | 18 | <on_enable function="Avatar.EnableAddFriend" /> |