aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltoolbar.cpp')
-rw-r--r--linden/indra/newview/lltoolbar.cpp32
1 files changed, 5 insertions, 27 deletions
diff --git a/linden/indra/newview/lltoolbar.cpp b/linden/indra/newview/lltoolbar.cpp
index 6d04294..cc6d4b8 100644
--- a/linden/indra/newview/lltoolbar.cpp
+++ b/linden/indra/newview/lltoolbar.cpp
@@ -18,7 +18,8 @@
18 * There are special exceptions to the terms and conditions of the GPL as 18 * There are special exceptions to the terms and conditions of the GPL as
19 * it is applied to this Source Code. View the full text of the exception 19 * it is applied to this Source Code. View the full text of the exception
20 * in the file doc/FLOSS-exception.txt in this software distribution, or 20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 21 * online at
22 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 * 23 *
23 * By copying, modifying or distributing this software, you acknowledge 24 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above, 25 * that you have read and understood your obligations described above,
@@ -127,9 +128,6 @@ BOOL LLToolBar::postBuild()
127 childSetAction("appearance_btn", onClickAppearance, this); 128 childSetAction("appearance_btn", onClickAppearance, this);
128 childSetControlName("appearance_btn", ""); 129 childSetControlName("appearance_btn", "");
129 130
130 childSetAction("clothing_btn", onClickClothing, this);
131 childSetControlName("clothing_btn", "ClothingBtnState");
132
133 childSetAction("fly_btn", onClickFly, this); 131 childSetAction("fly_btn", onClickFly, this);
134 childSetControlName("fly_btn", "FlyBtnState"); 132 childSetControlName("fly_btn", "FlyBtnState");
135 133
@@ -286,8 +284,6 @@ void LLToolBar::refresh()
286 BOOL mouselook = gAgent.cameraMouselook(); 284 BOOL mouselook = gAgent.cameraMouselook();
287 setVisible(show && !mouselook); 285 setVisible(show && !mouselook);
288 286
289 // Clothing button updated inside LLFloaterClothing
290
291 BOOL sitting = FALSE; 287 BOOL sitting = FALSE;
292 if (gAgent.getAvatarObject()) 288 if (gAgent.getAvatarObject())
293 { 289 {
@@ -307,21 +303,10 @@ void LLToolBar::refresh()
307 } 303 }
308 gSavedSettings.setBOOL("BuildBtnState", build_mode); 304 gSavedSettings.setBOOL("BuildBtnState", build_mode);
309 305
310// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) 306 if (isInVisibleChain())
311 // Called per-frame so this really can't be slow
312 if (rlv_handler_t::isEnabled())
313 { 307 {
314 // If we're rez-restricted, we can still edit => allow build floater 308 updateCommunicateList();
315 // If we're edit-restricted, we can still rez => allow build floater
316 childSetEnabled("build_btn", !(gRlvHandler.hasBehaviour(RLV_BHVR_REZ) && gRlvHandler.hasBehaviour(RLV_BHVR_EDIT)) );
317
318 childSetEnabled("map_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWWORLDMAP) );
319 childSetEnabled("radar_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWMINIMAP) );
320 childSetEnabled("inventory_btn", !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWINV) );
321 } 309 }
322// [/RLVa:KB]
323
324 updateCommunicateList();
325} 310}
326 311
327void LLToolBar::updateCommunicateList() 312void LLToolBar::updateCommunicateList()
@@ -458,7 +443,7 @@ void LLToolBar::onClickChat(void* user_data)
458// static 443// static
459void LLToolBar::onClickAppearance(void*) 444void LLToolBar::onClickAppearance(void*)
460{ 445{
461 if (gAgent.getWearablesLoaded()) 446 if (gAgent.areWearablesLoaded())
462 { 447 {
463 gAgent.changeCameraToCustomizeAvatar(); 448 gAgent.changeCameraToCustomizeAvatar();
464 } 449 }
@@ -466,13 +451,6 @@ void LLToolBar::onClickAppearance(void*)
466 451
467 452
468// static 453// static
469void LLToolBar::onClickClothing(void*)
470{
471 handle_clothing(NULL);
472}
473
474
475// static
476void LLToolBar::onClickFly(void*) 454void LLToolBar::onClickFly(void*)
477{ 455{
478 gAgent.toggleFlying(); 456 gAgent.toggleFlying();