diff options
author | McCabe Maxsted | 2009-01-12 10:54:25 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-01-12 10:54:25 -0700 |
commit | 263319bae6cc197fee412b8b1a64d0b6a06b0c21 (patch) | |
tree | d43a89bfbefe57ba24cb5bf5e92586a6ee826e64 | |
parent | Added 'create landmark' to land pie menu (diff) | |
parent | Backported 'report abuse' avatar pie menu option. (diff) | |
download | meta-impy-263319bae6cc197fee412b8b1a64d0b6a06b0c21.zip meta-impy-263319bae6cc197fee412b8b1a64d0b6a06b0c21.tar.gz meta-impy-263319bae6cc197fee412b8b1a64d0b6a06b0c21.tar.bz2 meta-impy-263319bae6cc197fee412b8b1a64d0b6a06b0c21.tar.xz |
Backported 'report abuse' avatar pie menu option
-rw-r--r-- | ChangeLog.txt | 8 | ||||
-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 |
3 files changed, 25 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 16879e0..9b6d8a9 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,3 +1,4 @@ | |||
1 | <<<<<<< HEAD:ChangeLog.txt | ||
1 | 2009-01-12 McCabe Maxsted <hakushakukun@gmail.com> | 2 | 2009-01-12 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 3 | ||
3 | * linden/indra/llcommon/llversionviewer.h | 4 | * linden/indra/llcommon/llversionviewer.h |
@@ -75,6 +76,13 @@ | |||
75 | * linden/indra/newview/llviewermenu.cpp: | 76 | * linden/indra/newview/llviewermenu.cpp: |
76 | Added 'create landmark' to land pie menu. | 77 | Added 'create landmark' to land pie menu. |
77 | * linden/indra/newview/skins/default/xui/en-us/menu_pie_land.xml: | 78 | * linden/indra/newview/skins/default/xui/en-us/menu_pie_land.xml: |
79 | ======= | ||
80 | 2009-01-10 McCabe Maxsted <hakushakukun@gmail.com> | ||
81 | |||
82 | * linden/indra/newview/llviewermenu.cpp: | ||
83 | Backported 'report abuse' avatar pie menu option. | ||
84 | * linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml: | ||
85 | >>>>>>> pieavreportabuse:ChangeLog.txt | ||
78 | Ditto. | 86 | Ditto. |
79 | 87 | ||
80 | 88 | ||
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" /> |