From 457ebc6c2ac7db15cb35e8466b87ff1b3ebac586 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 18 Dec 2017 15:11:47 +0100 Subject: [PATCH] FIRE-21936: Option to disable visual hints for appearance editor --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llpaneleditwearable.cpp | 8 +++++++- .../skins/default/xui/de/panel_preferences_move.xml | 3 ++- .../skins/default/xui/en/panel_preferences_move.xml | 12 +++++++++++- .../default/xui/en/panel_scrolling_param_base.xml | 2 +- 5 files changed, 32 insertions(+), 4 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 60a312aa21..b2e109064a 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -24500,6 +24500,17 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + FSAppearanceShowHints + + Comment + If enabled, show visual hints (avatar images) in appearance editor + Persist + 1 + Type + Boolean + Value + 1 + diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp index 71de6ae3aa..ef336ceb2b 100644 --- a/indra/newview/llpaneleditwearable.cpp +++ b/indra/newview/llpaneleditwearable.cpp @@ -1634,6 +1634,9 @@ void LLPanelEditWearable::getSortedParams(value_map_t &sorted_params, const std: void LLPanelEditWearable::buildParamList(LLScrollingPanelList *panel_list, value_map_t &sorted_params, LLAccordionCtrlTab *tab, LLJoint* jointp) { + // FIRE-21936: Option to disable visual hints for appearance editor + BOOL show_hints = gSavedSettings.getBOOL("FSAppearanceShowHints"); + // sorted_params is sorted according to magnitude of effect from // least to greatest. Adding to the front of the child list // reverses that order. @@ -1647,7 +1650,10 @@ void LLPanelEditWearable::buildParamList(LLScrollingPanelList *panel_list, value p.name("LLScrollingPanelParam"); LLViewerWearable *wearable = this->getWearable(); LLScrollingPanelParamBase *panel_param = NULL; - if (wearable && wearable->getType() == LLWearableType::WT_PHYSICS) // Hack to show a different panel for physics. Should generalize this later. + // FIRE-21936: Option to disable visual hints for appearance editor + //if (wearable && wearable->getType() == LLWearableType::WT_PHYSICS) // Hack to show a different panel for physics. Should generalize this later. + if (!show_hints || (wearable && wearable->getType() == LLWearableType::WT_PHYSICS)) // Hack to show a different panel for physics. Should generalize this later. + // { panel_param = new LLScrollingPanelParamBase( p, NULL, (*it).second, TRUE, this->getWearable(), jointp); } diff --git a/indra/newview/skins/default/xui/de/panel_preferences_move.xml b/indra/newview/skins/default/xui/de/panel_preferences_move.xml index 96c9b1039c..1ef6c8bed3 100644 --- a/indra/newview/skins/default/xui/de/panel_preferences_move.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_move.xml @@ -14,7 +14,8 @@ - + + 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 fc150a3419..4ac6f915c8 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_move.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_move.xml @@ -148,7 +148,7 @@ follows="left|top" label="Build/Edit" layout="topleft" - left_delta="30" + left_delta="10" name="edit_camera_movement" tool_tip="Use automatic camera positioning when entering and exiting edit mode" width="280" @@ -172,6 +172,16 @@ name="EditAppearanceLighting" tool_tip="Enable or disable the additional lighting used while editing avatar appearance." width="150" /> +