diff options
author | McCabe Maxsted | 2009-10-13 11:29:22 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-13 11:29:22 -0700 |
commit | e45389e64a42f9176b6dce5f78b23c8423975792 (patch) | |
tree | 226dce8542f714fa7e96f9d25c6229fee697c975 | |
parent | Added history button for group chat as well (diff) | |
download | meta-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
-rw-r--r-- | ChangeLog.txt | 7 | ||||
-rw-r--r-- | linden/indra/newview/llfloatermap.cpp | 19 | ||||
-rw-r--r-- | linden/indra/newview/llfloatermap.h | 6 | ||||
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 2 |
4 files changed, 21 insertions, 13 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 37ac5ea..b535237 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,12 @@ | |||
1 | 2009-10-13 McCabe Maxsted <hakushakukun@gmail.com> | 1 | 2009-10-13 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 2 | ||
3 | * Parcel highlighting when selecting a name in radar is less buggy. | ||
4 | |||
5 | modified: linden/indra/newview/llfloatermap.cpp | ||
6 | modified: linden/indra/newview/llfloatermap.h | ||
7 | modified: linden/indra/newview/llviewermessage.cpp | ||
8 | |||
9 | |||
3 | * Added history button for group chat as well. | 10 | * Added history button for group chat as well. |
4 | 11 | ||
5 | modified: linden/indra/newview/skins/default/xui/en-us/floater_instant_message_group.xml | 12 | modified: linden/indra/newview/skins/default/xui/en-us/floater_instant_message_group.xml |
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 | ||
400 | bool LLFloaterMap::getInChatList(LLUUID agent_id) | 400 | bool 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 | ||
429 | bool LLFloaterMap::getIsTyping(LLUUID agent_id) | 429 | bool 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 | ||
555 | BOOL LLFloaterMap::getKickable(const LLUUID &agent_id) | 555 | BOOL 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 | ||
diff --git a/linden/indra/newview/llfloatermap.h b/linden/indra/newview/llfloatermap.h index af4d1cc..aedbcb8 100644 --- a/linden/indra/newview/llfloatermap.h +++ b/linden/indra/newview/llfloatermap.h | |||
@@ -52,7 +52,7 @@ public: | |||
52 | // returns true if agent_id belongs to a developer listed in llfloatermap.cpp | 52 | // returns true if agent_id belongs to a developer listed in llfloatermap.cpp |
53 | static bool isImpDev(LLUUID agent_id); | 53 | static bool isImpDev(LLUUID agent_id); |
54 | 54 | ||
55 | bool getIsTyping(LLUUID agent_id); | 55 | bool isTyping(LLUUID agent_id); |
56 | void updateTypingList(LLUUID agent_id, bool remove); | 56 | void updateTypingList(LLUUID agent_id, bool remove); |
57 | 57 | ||
58 | BOOL postBuild(); | 58 | BOOL postBuild(); |
@@ -85,12 +85,12 @@ private: | |||
85 | static void onList(LLUICtrl* ctrl, void* user_data); | 85 | static void onList(LLUICtrl* ctrl, void* user_data); |
86 | static void onRangeChange(LLFocusableElement* focus, void* user_data); | 86 | static void onRangeChange(LLFocusableElement* focus, void* user_data); |
87 | BOOL visibleItemsSelected() const; | 87 | BOOL visibleItemsSelected() const; |
88 | BOOL getKickable(const LLUUID &agent_id); | 88 | BOOL isKickable(const LLUUID &agent_id); |
89 | void toggleButtons(); | 89 | void toggleButtons(); |
90 | void populateRadar(); | 90 | void populateRadar(); |
91 | 91 | ||
92 | void updateChatList(std::vector<LLUUID> agent_ids); | 92 | void updateChatList(std::vector<LLUUID> agent_ids); |
93 | bool getInChatList(LLUUID agent_id); | 93 | bool isInChatList(LLUUID agent_id); |
94 | void addToChatList(LLUUID agent_id, std::string distance); | 94 | void addToChatList(LLUUID agent_id, std::string distance); |
95 | void removeFromChatList(LLUUID agent_id); | 95 | void removeFromChatList(LLUUID agent_id); |
96 | 96 | ||
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index d784f52..3baeec0 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -2574,7 +2574,7 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data) | |||
2574 | 2574 | ||
2575 | if (LLFloaterMap::getInstance()) | 2575 | if (LLFloaterMap::getInstance()) |
2576 | { | 2576 | { |
2577 | if (LLFloaterMap::getInstance()->getIsTyping(from_id)) | 2577 | if (LLFloaterMap::getInstance()->isTyping(from_id)) |
2578 | { | 2578 | { |
2579 | LLFloaterMap::getInstance()->updateTypingList(from_id, true); | 2579 | LLFloaterMap::getInstance()->updateTypingList(from_id, true); |
2580 | } | 2580 | } |