From 42fe5f9444d049505d893f33edcfd522c0a4315e Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Tue, 5 Nov 2024 15:33:33 +0800 Subject: Option to zoom in using double click https://megapahit.com/show_bug.cgi?id=102 --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llpanelpeople.cpp | 6 ++++++ indra/newview/skins/default/xui/en/panel_preferences_move.xml | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index bd49f003c5..cd82f6122d 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -2546,6 +2546,17 @@ Value 1 + DoubleClickZoomIn + + Comment + Set double-click to zoom in on instead of IM avatar + Persist + 1 + Type + Boolean + Value + 0 + DynamicCameraStrength Comment diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp index 366c80f580..72fa553023 100644 --- a/indra/newview/llpanelpeople.cpp +++ b/indra/newview/llpanelpeople.cpp @@ -1127,6 +1127,12 @@ void LLPanelPeople::onAvatarListDoubleClicked(LLUICtrl* ctrl) #if 0 // SJB: Useful for testing, but not currently functional or to spec LLAvatarActions::showProfile(clicked_id); #else // spec says open IM window + if (item->getParentUICtrl()->getParentUICtrl() == mNearbyList + && gSavedSettings.getBOOL("DoubleClickZoomIn")) + { + handle_zoom_to_object(clicked_id); + return; + } LLAvatarActions::startIM(clicked_id); #endif } diff --git a/indra/newview/skins/default/xui/en/panel_preferences_move.xml b/indra/newview/skins/default/xui/en/panel_preferences_move.xml index 0412466b4f..8202bb9de3 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_move.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_move.xml @@ -268,6 +268,15 @@ name="sound_on_collisions" top_pad="10" width="200" /> +