aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolpie.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-11-02 21:36:23 -0600
committerJacek Antonelli2009-11-02 22:04:43 -0600
commitd8b08f5548ca0b63becd4b303575d20502bd832a (patch)
tree62dc6cfcbdd32e5b1f9ba557974e959a2362bf95 /linden/indra/newview/lltoolpie.cpp
parent"Go Here" in pie menu no longer asks for confirmation. (diff)
downloadmeta-impy-d8b08f5548ca0b63becd4b303575d20502bd832a.zip
meta-impy-d8b08f5548ca0b63becd4b303575d20502bd832a.tar.gz
meta-impy-d8b08f5548ca0b63becd4b303575d20502bd832a.tar.bz2
meta-impy-d8b08f5548ca0b63becd4b303575d20502bd832a.tar.xz
Added "DoubleClickAction" and "GoAction" settings.
Together they replace "DoubleClickAutopilot" and "DoubleClickTeleport".
Diffstat (limited to 'linden/indra/newview/lltoolpie.cpp')
-rw-r--r--linden/indra/newview/lltoolpie.cpp35
1 files changed, 11 insertions, 24 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp
index cda76d9..8b57011 100644
--- a/linden/indra/newview/lltoolpie.cpp
+++ b/linden/indra/newview/lltoolpie.cpp
@@ -676,7 +676,14 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
676 llinfos << "LLToolPie handleDoubleClick (becoming mouseDown)" << llendl; 676 llinfos << "LLToolPie handleDoubleClick (becoming mouseDown)" << llendl;
677 } 677 }
678 678
679 if (gSavedSettings.getBOOL("DoubleClickAutoPilot") || gSavedSettings.getBOOL("DoubleClickTeleport")) 679 std::string action = gSavedSettings.getString("DoubleClickAction");
680 LLStringUtil::toLower(action);
681
682 if (action == "none")
683 {
684 return FALSE;
685 }
686 else if (action == "go")
680 { 687 {
681 if (mPick.mPickType == LLPickInfo::PICK_LAND 688 if (mPick.mPickType == LLPickInfo::PICK_LAND
682 && !mPick.mPosGlobal.isExactlyZero()) 689 && !mPick.mPosGlobal.isExactlyZero())
@@ -695,32 +702,12 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
695 return TRUE; 702 return TRUE;
696 } 703 }
697 } 704 }
698 705 else
699 return FALSE;
700
701 /* JC - don't do go-there, because then double-clicking on physical
702 objects gets you into trouble.
703
704 // If double-click on object or land, go there.
705 LLViewerObject *object = gViewerWindow->getLastPick().getObject();
706 if (object)
707 {
708 if (object->isAvatar())
709 {
710 LLFloaterAvatarInfo::showFromAvatar(object->getID());
711 }
712 else
713 {
714 handle_go_to(NULL);
715 }
716 }
717 else if (!gLastHitPosGlobal.isExactlyZero())
718 { 706 {
719 handle_go_to(NULL); 707 llwarns << "Unhandled DoubleClickAction setting: " << action << llendl;
720 } 708 }
721 709
722 return TRUE; 710 return FALSE;
723 */
724} 711}
725 712
726 713