diff options
Diffstat (limited to 'linden/indra/newview')
-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 cd557f2..1f3b14d 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -9760,6 +9760,19 @@ class LLAdvancedLeaveAdminStatus : public view_listener_t | |||
9760 | } | 9760 | } |
9761 | }; | 9761 | }; |
9762 | 9762 | ||
9763 | class LLAvatarReportAbuse : public view_listener_t | ||
9764 | { | ||
9765 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9766 | { | ||
9767 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); | ||
9768 | if(avatar) | ||
9769 | { | ||
9770 | LLFloaterReporter::showFromObject(avatar->getID()); | ||
9771 | } | ||
9772 | return true; | ||
9773 | } | ||
9774 | }; | ||
9775 | |||
9763 | 9776 | ||
9764 | 9777 | ||
9765 | static void addMenu(view_listener_t *menu, const char *name) | 9778 | static void addMenu(view_listener_t *menu, const char *name) |
@@ -9906,6 +9919,7 @@ void initialize_menus() | |||
9906 | addMenu(new LLAvatarGiveCard(), "Avatar.GiveCard"); | 9919 | addMenu(new LLAvatarGiveCard(), "Avatar.GiveCard"); |
9907 | addMenu(new LLAvatarEject(), "Avatar.Eject"); | 9920 | addMenu(new LLAvatarEject(), "Avatar.Eject"); |
9908 | addMenu(new LLAvatarSendIM(), "Avatar.SendIM"); | 9921 | addMenu(new LLAvatarSendIM(), "Avatar.SendIM"); |
9922 | addMenu(new LLAvatarReportAbuse(), "Avatar.ReportAbuse"); | ||
9909 | 9923 | ||
9910 | addMenu(new LLObjectEnableMute(), "Avatar.EnableMute"); | 9924 | addMenu(new LLObjectEnableMute(), "Avatar.EnableMute"); |
9911 | addMenu(new LLAvatarEnableAddFriend(), "Avatar.EnableAddFriend"); | 9925 | 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" /> |