summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul ProductEngine <pguslisty@productengine.com>2012-06-22 20:05:35 +0300
committerPaul ProductEngine <pguslisty@productengine.com>2012-06-22 20:05:35 +0300
commitafc6a7e6baeb9b568feb31cfd8eb978bb485c0c6 (patch)
tree140908fa1d277a1482b2912d9cf56519d8995c03
parent3807f97facc79960c579793376412a0baf6b9de3 (diff)
CHUI-136 ADDITIONAL FIX (Implement new design for blocked list on the people floater)
- If mute item type is LLMute::BY_NAME it means that it's an object and we should show corresponding icon - Also added icon for blocked groups
-rw-r--r--indra/newview/llblockedlistitem.cpp11
-rw-r--r--indra/newview/skins/default/xui/en/panel_blocked_list_item.xml10
2 files changed, 20 insertions, 1 deletions
diff --git a/indra/newview/llblockedlistitem.cpp b/indra/newview/llblockedlistitem.cpp
index 14da35c85a..d9afd2b629 100644
--- a/indra/newview/llblockedlistitem.cpp
+++ b/indra/newview/llblockedlistitem.cpp
@@ -38,6 +38,7 @@
// newview
#include "llavatariconctrl.h"
+#include "llgroupiconctrl.h"
#include "llinventoryicon.h"
#include "llviewerobject.h"
@@ -58,14 +59,22 @@ BOOL LLBlockedListItem::postBuild()
switch (mMuteType)
{
case LLMute::AGENT:
+ case LLMute::EXTERNAL:
{
LLAvatarIconCtrl* avatar_icon = getChild<LLAvatarIconCtrl>("avatar_icon");
avatar_icon->setVisible(TRUE);
avatar_icon->setValue(mItemID);
}
break;
-
+ case LLMute::GROUP:
+ {
+ LLGroupIconCtrl* group_icon = getChild<LLGroupIconCtrl>("group_icon");
+ group_icon->setVisible(TRUE);
+ group_icon->setValue(mItemID);
+ }
+ break;
case LLMute::OBJECT:
+ case LLMute::BY_NAME:
getChild<LLUICtrl>("object_icon")->setVisible(TRUE);
break;
diff --git a/indra/newview/skins/default/xui/en/panel_blocked_list_item.xml b/indra/newview/skins/default/xui/en/panel_blocked_list_item.xml
index a63a14ca69..84e7e467b1 100644
--- a/indra/newview/skins/default/xui/en/panel_blocked_list_item.xml
+++ b/indra/newview/skins/default/xui/en/panel_blocked_list_item.xml
@@ -37,6 +37,16 @@
top="2"
visible="false"
width="20" />
+ <group_icon
+ default_icon_name="Generic_Group"
+ follows="top|left"
+ height="20"
+ layout="topleft"
+ left="5"
+ mouse_opaque="true"
+ top="2"
+ visible="false"
+ width="20" />
<icon
follows="top|left"
height="16"