From a26a471fef5b3d5d7aa2b11ed97895e9543d783f Mon Sep 17 00:00:00 2001 From: Hazim Gazov Date: Mon, 10 May 2010 17:10:23 -0300 Subject: [PATCH] add setting for broadcasting viewer effects --- indra/newview/app_settings/settings.xml | 26 +++++++++---------- indra/newview/hbprefsinert.cpp | 4 +++ .../xui/en-us/panel_preferences_inert.xml | 7 ++++- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 1c6979c18..b40d6a7e7 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -709,7 +709,7 @@ http://www.secondlife.com BlockAvatarAppearanceMessages - + Comment Ignore's appearance messages (for simulating Ruth) Persist @@ -718,7 +718,18 @@ Boolean Value 0 - + + BroadcastViewerEffects + + Comment + Broadcast Viewer Effects + Persist + 1 + Type + Boolean + Value + 0 + BrowserProxyAddress Comment @@ -4241,17 +4252,6 @@ Value 0 - RadarChatKeysChannel - - Comment - Private channel used to broadcast the key of incoming avatars - Persist - 1 - Type - S32 - Value - -8888888 - FloaterLandRect5 Comment diff --git a/indra/newview/hbprefsinert.cpp b/indra/newview/hbprefsinert.cpp index 9316ee529..cda9a5031 100644 --- a/indra/newview/hbprefsinert.cpp +++ b/indra/newview/hbprefsinert.cpp @@ -68,6 +68,7 @@ private: BOOL mEnableLLWind; BOOL mEnableClouds; BOOL mInitialEnableClouds; + BOOL mBroadcastViewerEffects; U32 mSpeedRezInterval; U32 mLinksForChattingObjects; U32 mTimeFormat; @@ -120,6 +121,7 @@ void LLPrefsInertImpl::refreshValues() mRevokePermsOnStandUp = gSavedSettings.getBOOL("RevokePermsOnStandUp"); mEnableLLWind = gSavedSettings.getBOOL("WindEnabled"); mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled"); + mBroadcastViewerEffects = gSavedSettings.getBOOL("BroadcastViewerEffects"); } void LLPrefsInertImpl::refresh() @@ -193,6 +195,8 @@ void LLPrefsInertImpl::cancel() gSavedSettings.setU32("LinksForChattingObjects", mLinksForChattingObjects); gSavedSettings.setBOOL("RevokePermsOnStandUp", mRevokePermsOnStandUp); gSavedSettings.setBOOL("WindEnabled", mEnableLLWind); + gSavedSettings.setBOOL("BroadcastViewerEffects", mBroadcastViewerEffects); + gLLWindEnabled = mEnableLLWind; if(mInitialEnableClouds != gSavedSettings.getBOOL("CloudsEnabled")) diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml index a245a8b54..0443b07db 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml @@ -125,6 +125,11 @@ label="Preview animations on the avatar instead on a dummy before uploading" left="10" mouse_opaque="true" name="preview_anim_in_world_check" radio_style="false" width="400" /> +