aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatermap.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-13 11:29:22 -0700
committerMcCabe Maxsted2009-10-13 11:29:22 -0700
commite45389e64a42f9176b6dce5f78b23c8423975792 (patch)
tree226dce8542f714fa7e96f9d25c6229fee697c975 /linden/indra/newview/llfloatermap.cpp
parentAdded history button for group chat as well (diff)
downloadmeta-impy-e45389e64a42f9176b6dce5f78b23c8423975792.zip
meta-impy-e45389e64a42f9176b6dce5f78b23c8423975792.tar.gz
meta-impy-e45389e64a42f9176b6dce5f78b23c8423975792.tar.bz2
meta-impy-e45389e64a42f9176b6dce5f78b23c8423975792.tar.xz
Parcel highlighting when selecting a name in radar is less buggy
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloatermap.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp
index 49563a6..256c52e 100644
--- a/linden/indra/newview/llfloatermap.cpp
+++ b/linden/indra/newview/llfloatermap.cpp
@@ -290,14 +290,14 @@ void LLFloaterMap::populateRadar()
290 { 290 {
291 if (distance < 20.0f) 291 if (distance < 20.0f)
292 { 292 {
293 if (!getInChatList(avatar_ids[i])) 293 if (!isInChatList(avatar_ids[i]))
294 { 294 {
295 addToChatList(avatar_ids[i], dist_string); 295 addToChatList(avatar_ids[i], dist_string);
296 } 296 }
297 } 297 }
298 else 298 else
299 { 299 {
300 if (getInChatList(avatar_ids[i])) 300 if (isInChatList(avatar_ids[i]))
301 { 301 {
302 removeFromChatList(avatar_ids[i]); 302 removeFromChatList(avatar_ids[i]);
303 } 303 }
@@ -311,7 +311,7 @@ void LLFloaterMap::populateRadar()
311 311
312 if (notify_sim) 312 if (notify_sim)
313 { 313 {
314 if (!getInChatList(avatar_ids[i]) && !getInSimAvList(avatar_ids[i])) 314 if (!isInChatList(avatar_ids[i]) && !getInSimAvList(avatar_ids[i]))
315 { 315 {
316 LLViewerObject *av_obj = gObjectList.findObject(avatar_ids[i]); 316 LLViewerObject *av_obj = gObjectList.findObject(avatar_ids[i]);
317 if (av_obj != NULL && av_obj->isAvatar()) 317 if (av_obj != NULL && av_obj->isAvatar())
@@ -338,7 +338,7 @@ void LLFloaterMap::populateRadar()
338 { 338 {
339 // append typing string 339 // append typing string
340 std::string typing = ""; 340 std::string typing = "";
341 if (getIsTyping(avatar_ids[i])) 341 if (isTyping(avatar_ids[i]))
342 { 342 {
343 typing = getString("is_typing")+ " "; 343 typing = getString("is_typing")+ " ";
344 } 344 }
@@ -397,7 +397,7 @@ void LLFloaterMap::updateChatList(std::vector<LLUUID> agent_ids)
397 } 397 }
398} 398}
399 399
400bool LLFloaterMap::getInChatList(LLUUID agent_id) 400bool LLFloaterMap::isInChatList(LLUUID agent_id)
401{ 401{
402 if (mChatAvatars.count(agent_id) > 0) 402 if (mChatAvatars.count(agent_id) > 0)
403 { 403 {
@@ -426,7 +426,7 @@ void LLFloaterMap::removeFromChatList(LLUUID agent_id)
426 mChatAvatars.erase(agent_id); 426 mChatAvatars.erase(agent_id);
427} 427}
428 428
429bool LLFloaterMap::getIsTyping(LLUUID agent_id) 429bool LLFloaterMap::isTyping(LLUUID agent_id)
430{ 430{
431 if (mTypingAvatars.count(agent_id) > 0) 431 if (mTypingAvatars.count(agent_id) > 0)
432 { 432 {
@@ -439,7 +439,7 @@ void LLFloaterMap::updateTypingList(LLUUID agent_id, bool remove)
439{ 439{
440 if (remove) 440 if (remove)
441 { 441 {
442 if (getIsTyping(agent_id)) 442 if (isTyping(agent_id))
443 { 443 {
444 mTypingAvatars.erase(agent_id); 444 mTypingAvatars.erase(agent_id);
445 } 445 }
@@ -503,7 +503,7 @@ void LLFloaterMap::toggleButtons()
503 enable = mSelectedAvatar.notNull() ? visibleItemsSelected() : FALSE; 503 enable = mSelectedAvatar.notNull() ? visibleItemsSelected() : FALSE;
504 enable_unmute = mSelectedAvatar.notNull() ? LLMuteList::getInstance()->isMuted(mSelectedAvatar) : FALSE; 504 enable_unmute = mSelectedAvatar.notNull() ? LLMuteList::getInstance()->isMuted(mSelectedAvatar) : FALSE;
505 enable_track = gAgent.isGodlike() || is_agent_mappable(mSelectedAvatar); 505 enable_track = gAgent.isGodlike() || is_agent_mappable(mSelectedAvatar);
506 enable_estate = getKickable(mSelectedAvatar); 506 enable_estate = isKickable(mSelectedAvatar);
507 enable_friend = !is_agent_friend(mSelectedAvatar); 507 enable_friend = !is_agent_friend(mSelectedAvatar);
508 } 508 }
509 else 509 else
@@ -552,7 +552,7 @@ void LLFloaterMap::toggleButtons()
552// [/RLVa:KB] 552// [/RLVa:KB]
553} 553}
554 554
555BOOL LLFloaterMap::getKickable(const LLUUID &agent_id) 555BOOL LLFloaterMap::isKickable(const LLUUID &agent_id)
556{ 556{
557 if (agent_id.notNull()) 557 if (agent_id.notNull())
558 { 558 {
@@ -568,6 +568,7 @@ BOOL LLFloaterMap::getKickable(const LLUUID &agent_id)
568 if (LLWorld::getInstance()->positionRegionValidGlobal(pos_global)) 568 if (LLWorld::getInstance()->positionRegionValidGlobal(pos_global))
569 { 569 {
570 LLParcel* parcel = LLViewerParcelMgr::getInstance()->selectParcelAt(pos_global)->getParcel(); 570 LLParcel* parcel = LLViewerParcelMgr::getInstance()->selectParcelAt(pos_global)->getParcel();
571 LLViewerParcelMgr::getInstance()->deselectLand();
571 572
572 BOOL new_value = (region != NULL); 573 BOOL new_value = (region != NULL);
573 574