diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 7c792dfefd..a180cbedc7 100755 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -14033,6 +14033,28 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + UISndFriendOffline + + Comment + Sound file for friends going offline (uuid for sound asset) + Persist + 1 + Type + String + Value + ed124764-705d-d497-167a-182cd9fa2e6c + + UISndFriendOnline + + Comment + Sound file for friends coming online (uuid for sound asset) + Persist + 1 + Type + String + Value + ed124764-705d-d497-167a-182cd9fa2e6c + UISndHealthReductionF Comment @@ -18354,6 +18376,28 @@ Change of this parameter will affect the layout of buttons in notification toast Value 1 + PlayModeUISndFriendOffline + + Comment + Holds state for Prefs > Sound/Media > UI Sounds - UISndFriendOffline. + Persist + 1 + Type + Boolean + Value + 0 + + PlayModeUISndFriendOnline + + Comment + Holds state for Prefs > Sound/Media > UI Sounds - UISndFriendOnline. + Persist + 1 + Type + Boolean + Value + 0 + PlayModeUISndHealthReductionF Comment @@ -18462,7 +18506,7 @@ Change of this parameter will affect the layout of buttons in notification toast Type Boolean Value - 1 + 0 PlayModeUISndObjectRezIn diff --git a/indra/newview/llcallingcard.cpp b/indra/newview/llcallingcard.cpp index e3b9f687b0..738320f5cd 100644 --- a/indra/newview/llcallingcard.cpp +++ b/indra/newview/llcallingcard.cpp @@ -673,6 +673,7 @@ void LLAvatarTracker::processOnlineNotification(LLMessageSystem* msg, void**) { lldebugs << "LLAvatarTracker::processOnlineNotification()" << llendl; instance().processNotify(msg, true); + make_ui_sound("UISndFriendOnline"); // FIRE-2731: Online/offline sound alert for friends } // static @@ -680,6 +681,7 @@ void LLAvatarTracker::processOfflineNotification(LLMessageSystem* msg, void**) { lldebugs << "LLAvatarTracker::processOfflineNotification()" << llendl; instance().processNotify(msg, false); + make_ui_sound("UISndFriendOffline"); // FIRE-2731: Online/offline sound alert for friends } void LLAvatarTracker::processChange(LLMessageSystem* msg) diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 8d50114795..662d6afefa 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -1929,6 +1929,8 @@ void LLFloaterPreference::updateUISoundsControls() getChild("PlayModeUISndBadKeystroke")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndBadKeystroke")); getChild("PlayModeUISndClick")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndClick")); getChild("PlayModeUISndClickRelease")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndClickRelease")); + getChild("PlayModeUISndFriendOffline")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndFriendOffline")); + getChild("PlayModeUISndFriendOnline")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndFriendOnline")); getChild("PlayModeUISndHealthReductionF")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndHealthReductionF")); getChild("PlayModeUISndHealthReductionM")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndHealthReductionM")); getChild("PlayModeUISndInvalidOp")->setValue((int)gSavedSettings.getBOOL("PlayModeUISndInvalidOp")); @@ -1962,7 +1964,7 @@ void LLFloaterPreference::updateUISoundsControls() getChild("WhenPlayGroupIM")->setValue((int)gSavedSettings.getU32("PlayModeUISndNewIncomingGroupIMSession")); // 0, 1, 2 // This sound is unused in Firestorm at the moment getChild("UISndObjectDelete")->setEnabled(FALSE); - getChild("Def_UISndObjectDelete")->setEnabled(FALSE); + getChild("Def_UISndObjectDelete")->setEnabled(FALSE); getChild("PlayModeUISndObjectDelete")->setEnabled(FALSE); } // diff --git a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml index 90b21400e9..f0a3cfa165 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_alerts.xml @@ -216,6 +216,37 @@ left_pad="0" name="OnlineOfflinetoNearbyChatHistory" width="180" /> + + + Play a sound when my friends: + + + + diff --git a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml index 4a32557d9d..5ceeedae76 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml @@ -2576,6 +2576,108 @@ Hover your mouse cursor over UUID field to show its default value. value="0"/> + + Friend comes online: + + + + + + + + + + Friend goes offline: + + + + + + + + diff --git a/indra/newview/skins/default/xui/pl/panel_preferences_alerts.xml b/indra/newview/skins/default/xui/pl/panel_preferences_alerts.xml index fda714f916..c334d28433 100644 --- a/indra/newview/skins/default/xui/pl/panel_preferences_alerts.xml +++ b/indra/newview/skins/default/xui/pl/panel_preferences_alerts.xml @@ -25,6 +25,11 @@ + + Odtwórz dźwięk gdy moi znajomi: + + + diff --git a/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml b/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml index e287e5629d..4e7cf56ccc 100644 --- a/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml +++ b/indra/newview/skins/default/xui/pl/panel_preferences_sound.xml @@ -356,6 +356,22 @@ Przytrzymaj kursor myszki ponad polem na UUID, aby zobaczyć jego domyślną war + + Znajomy się loguje: + +