diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog.txt | 6 | ||||
-rw-r--r-- | linden/indra/newview/llpanelavatar.cpp | 39 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml | 3 |
3 files changed, 46 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index bdda6bd..643a9c8 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -54,6 +54,12 @@ | |||
54 | modified: linden/indra/newview/llfloaterchatterbox.h | 54 | modified: linden/indra/newview/llfloaterchatterbox.h |
55 | 55 | ||
56 | 56 | ||
57 | * Applied and modified Emerald viewer feature that shows what groups are hidden in your profile. | ||
58 | |||
59 | modified: linden/indra/newview/llpanelavatar.cpp | ||
60 | modified: linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml | ||
61 | |||
62 | |||
57 | 2009-09-10 McCabe Maxsted <hakushakukun@gmail.com> | 63 | 2009-09-10 McCabe Maxsted <hakushakukun@gmail.com> |
58 | 64 | ||
59 | * Created new toolbar control for windlight presets and options. | 65 | * Created new toolbar control for windlight presets and options. |
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp index 682a56f..fa1883d 100644 --- a/linden/indra/newview/llpanelavatar.cpp +++ b/linden/indra/newview/llpanelavatar.cpp | |||
@@ -1535,9 +1535,18 @@ void LLPanelAvatar::resetGroupList() | |||
1535 | LLSD row; | 1535 | LLSD row; |
1536 | 1536 | ||
1537 | row["id"] = id ; | 1537 | row["id"] = id ; |
1538 | row["columns"][0]["value"] = group_string; | ||
1539 | row["columns"][0]["font"] = "SANSSERIF_SMALL"; | 1538 | row["columns"][0]["font"] = "SANSSERIF_SMALL"; |
1540 | row["columns"][0]["width"] = 0; | 1539 | row["columns"][0]["width"] = 0; |
1540 | if (group_data.mListInProfile) | ||
1541 | { | ||
1542 | row["columns"][0]["value"] = group_string; | ||
1543 | row["columns"][0]["color"] = gColors.getColor("ScrollUnselectedColor").getValue(); | ||
1544 | } | ||
1545 | else | ||
1546 | { | ||
1547 | row["columns"][0]["value"] = group_string + " " + getString("HiddenLabel"); | ||
1548 | row["columns"][0]["color"] = gColors.getColor("ScriptBgReadOnlyColor").getValue(); | ||
1549 | } | ||
1541 | group_list->addElement(row); | 1550 | group_list->addElement(row); |
1542 | } | 1551 | } |
1543 | group_list->sortByColumnIndex(0, TRUE); | 1552 | group_list->sortByColumnIndex(0, TRUE); |
@@ -2014,8 +2023,34 @@ void LLPanelAvatar::processAvatarGroupsReply(LLMessageSystem *msg, void**) | |||
2014 | 2023 | ||
2015 | LLSD row; | 2024 | LLSD row; |
2016 | row["id"] = group_id; | 2025 | row["id"] = group_id; |
2017 | row["columns"][0]["value"] = group_string; | ||
2018 | row["columns"][0]["font"] = "SANSSERIF_SMALL"; | 2026 | row["columns"][0]["font"] = "SANSSERIF_SMALL"; |
2027 | |||
2028 | LLGroupData *group_data = NULL; | ||
2029 | |||
2030 | if (avatar_id == agent_id) // own avatar | ||
2031 | { | ||
2032 | // Search for this group in the agent's groups list | ||
2033 | LLDynamicArray<LLGroupData>::iterator i; | ||
2034 | for (i = gAgent.mGroups.begin(); i != gAgent.mGroups.end(); i++) | ||
2035 | { | ||
2036 | if (i->mID == group_id) | ||
2037 | { | ||
2038 | group_data = &*i; | ||
2039 | break; | ||
2040 | } | ||
2041 | } | ||
2042 | } | ||
2043 | // Set normal color if not found or if group is visible in profile | ||
2044 | if (!group_data || group_data->mListInProfile) | ||
2045 | { | ||
2046 | row["columns"][0]["value"] = group_string; | ||
2047 | row["columns"][0]["color"] = gColors.getColor("ScrollUnselectedColor").getValue(); | ||
2048 | } | ||
2049 | else | ||
2050 | { | ||
2051 | row["columns"][0]["value"] = group_string + " " + self->getString("HiddenLabel"); | ||
2052 | row["columns"][0]["color"] = gColors.getColor("ScriptBgReadOnlyColor").getValue(); | ||
2053 | } | ||
2019 | if (group_list) | 2054 | if (group_list) |
2020 | { | 2055 | { |
2021 | group_list->addElement(row); | 2056 | group_list->addElement(row); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml b/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml index 7a8a396..b457cfe 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml | |||
@@ -408,4 +408,7 @@ | |||
408 | <string name="Loading"> | 408 | <string name="Loading"> |
409 | Loading... | 409 | Loading... |
410 | </string> | 410 | </string> |
411 | <string name="HiddenLabel"> | ||
412 | (hidden) | ||
413 | </string> | ||
411 | </panel> | 414 | </panel> |