aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorunknown2009-01-10 11:47:39 -0700
committerunknown2009-01-10 11:47:39 -0700
commit7d8697c509a7976c077368dba79c8d8088eabf4c (patch)
tree6951355e31a88214e3053202a26955fecac13929
parentFixed changelog date (2009 not 2008). (diff)
downloadmeta-impy-7d8697c509a7976c077368dba79c8d8088eabf4c.zip
meta-impy-7d8697c509a7976c077368dba79c8d8088eabf4c.tar.gz
meta-impy-7d8697c509a7976c077368dba79c8d8088eabf4c.tar.bz2
meta-impy-7d8697c509a7976c077368dba79c8d8088eabf4c.tar.xz
Backported 'report abuse' avatar pie menu option.
Diffstat (limited to '')
-rw-r--r--ChangeLog.txt8
-rw-r--r--linden/indra/newview/llviewermenu.cpp14
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml4
3 files changed, 25 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 7c1e841..8f9c761 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,11 @@
12009-01-10 McCabe Maxsted <hakushakukun@gmail.com>
2
3 * linden/indra/newview/llviewermenu.cpp:
4 Backported 'report abuse' avatar pie menu option.
5 * linden/indra/newview/skins/default/xui/en-us/menu_pie_avatar.xml:
6 Ditto.
7
8
12009-01-08 McCabe Maxsted <hakushakukun@gmail.com> 92009-01-08 McCabe Maxsted <hakushakukun@gmail.com>
2 10
3 * linden/indra/cmake/CopyWinLibs.cmake: 11 * linden/indra/cmake/CopyWinLibs.cmake:
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
9754class 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
9756static void addMenu(view_listener_t *menu, const char *name) 9769static 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" />