diff options
author | McCabe Maxsted | 2009-10-13 11:46:35 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-13 11:46:35 -0700 |
commit | c48fd00d2069a48478f4fa5da8c303444a409cfe (patch) | |
tree | c399513ebc186db82eb0f8b637ce69c8f27bb91d /linden/indra/newview/llfloatermap.cpp | |
parent | Parcel highlighting when selecting a name in radar is less buggy (diff) | |
download | meta-impy-c48fd00d2069a48478f4fa5da8c303444a409cfe.zip meta-impy-c48fd00d2069a48478f4fa5da8c303444a409cfe.tar.gz meta-impy-c48fd00d2069a48478f4fa5da8c303444a409cfe.tar.bz2 meta-impy-c48fd00d2069a48478f4fa5da8c303444a409cfe.tar.xz |
Combine the two mini-map mute buttons into one
Diffstat (limited to 'linden/indra/newview/llfloatermap.cpp')
-rw-r--r-- | linden/indra/newview/llfloatermap.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp index 256c52e..31e57a0 100644 --- a/linden/indra/newview/llfloatermap.cpp +++ b/linden/indra/newview/llfloatermap.cpp | |||
@@ -520,10 +520,21 @@ void LLFloaterMap::toggleButtons() | |||
520 | childSetEnabled("freeze_btn", enable_estate); | 520 | childSetEnabled("freeze_btn", enable_estate); |
521 | childSetEnabled("eject_btn", enable_estate); | 521 | childSetEnabled("eject_btn", enable_estate); |
522 | childSetEnabled("mute_btn", enable); | 522 | childSetEnabled("mute_btn", enable); |
523 | childSetEnabled("unmute_btn", enable_unmute); | ||
524 | childSetEnabled("ar_btn", enable); | 523 | childSetEnabled("ar_btn", enable); |
525 | childSetEnabled("estate_eject_btn", enable_estate); | 524 | childSetEnabled("estate_eject_btn", enable_estate); |
526 | 525 | ||
526 | if (enable_unmute) | ||
527 | { | ||
528 | childSetVisible("mute_btn", false); | ||
529 | childSetEnabled("unmute_btn", true); | ||
530 | childSetVisible("unmute_btn", true); | ||
531 | } | ||
532 | else | ||
533 | { | ||
534 | childSetVisible("mute_btn", true); | ||
535 | childSetVisible("unmute_btn", false); | ||
536 | } | ||
537 | |||
527 | // [RLVa:KB] - Imprudence-1.2.0 | 538 | // [RLVa:KB] - Imprudence-1.2.0 |
528 | // Bit clumsy, but this way the RLV stuff is in its own separate block and keeps the code above clean - Kitty | 539 | // Bit clumsy, but this way the RLV stuff is in its own separate block and keeps the code above clean - Kitty |
529 | if ( (rlv_handler_t::isEnabled()) && (mSelectedAvatar.notNull()) ) | 540 | if ( (rlv_handler_t::isEnabled()) && (mSelectedAvatar.notNull()) ) |