diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-02-03 17:06:57 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-02-03 17:06:57 +0200 |
commit | cabf4f5d58410e9c1fb8c06b0f40900119d37fa7 (patch) | |
tree | bda18b65faacffbdbfa0137b05956fc2ca94a55c /indra/newview | |
parent | 906ee0cc6348fc3cce70f971f3009924550c24be (diff) |
Fixed critical bug EXT-4836 ([NUX] Add text to empty Friends tab in People Panel)
- added an appropriate message into My Friends tab when avatar has no friends.
- "global search" & "try the Map" are made as url to appropriate floaters
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llpanelpeople.cpp | 5 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/panel_people.xml | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp index fb6f36d4da..423ee61e25 100644 --- a/indra/newview/llpanelpeople.cpp +++ b/indra/newview/llpanelpeople.cpp @@ -667,6 +667,11 @@ void LLPanelPeople::updateFriendList() lldebugs << "Friends Cards were not found" << llendl; } + // show special help text for just created account to help found friends. EXT-4836 + static LLTextBox* no_friends_text = getChild<LLTextBox>("no_friends_msg"); + no_friends_text->setVisible(all_friendsp.size() == 0); + + LLAvatarTracker::buddy_map_t::const_iterator buddy_it = all_buddies.begin(); for (; buddy_it != all_buddies.end(); ++buddy_it) { diff --git a/indra/newview/skins/default/xui/en/panel_people.xml b/indra/newview/skins/default/xui/en/panel_people.xml index 9b83e0c68e..3b5add33a8 100644 --- a/indra/newview/skins/default/xui/en/panel_people.xml +++ b/indra/newview/skins/default/xui/en/panel_people.xml @@ -160,6 +160,17 @@ background_visible="true" width="313" /> </accordion_tab> </accordion> + <text + follows="all" + height="450" + left="10" + name="no_friends_msg" + top="10" + width="293" + wrap="true"> + To add friends try [secondlife:///app/search/people global search] or click on a user to add them as a friend. +If you're looking for people to hang out with, [secondlife:///app/worldmap try the Map]. + </text> <panel follows="left|right|bottom" height="30" |