From 89a510de10c48ebcf82b98a962e4bf66477dcc93 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 4 Sep 2009 01:56:20 -0500 Subject: Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch. Made a few non-functional changes to help it apply. --- linden/indra/newview/llviewercontrol.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'linden/indra/newview/llviewercontrol.cpp') diff --git a/linden/indra/newview/llviewercontrol.cpp b/linden/indra/newview/llviewercontrol.cpp index 89ae973..eb8b1d5 100644 --- a/linden/indra/newview/llviewercontrol.cpp +++ b/linden/indra/newview/llviewercontrol.cpp @@ -423,6 +423,20 @@ bool handleVoiceClientPrefsChanged(const LLSD& newvalue) return true; } +// [RLVa:KB] - Checked: 2009-08-11 (RLVa-1.0.1h) | Added: RLVa-1.0.1h +bool rlvHandleEnableLegacyNamingChanged(const LLSD& newvalue) +{ + rlv_handler_t::fLegacyNaming = newvalue.asBoolean(); + return true; +} + +bool rlvHandleShowNameTagsChanged(const LLSD& newvalue) +{ + RlvSettings::fShowNameTags = newvalue.asBoolean(); + return true; +} +// [/RLVa:KB] + bool handleMediaDebugLevelChanged(const LLSD& newvalue) { LLMediaManager *mgr = LLMediaManager::getInstance(); @@ -566,6 +580,13 @@ void settings_setup_listeners() gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); gSavedSettings.getControl("MediaDebugLevel")->getSignal()->connect(boost::bind(&handleMediaDebugLevelChanged, _1)); + +// [RLVa:KB] - Checked: 2009-08-11 (RLVa-1.0.1h) | Added: RLVa-1.0.1h + if (gSavedSettings.controlExists(RLV_SETTING_ENABLELEGACYNAMING)) + gSavedSettings.getControl(RLV_SETTING_ENABLELEGACYNAMING)->getSignal()->connect(boost::bind(&rlvHandleEnableLegacyNamingChanged, _1)); + if (gSavedSettings.controlExists(RLV_SETTING_SHOWNAMETAGS)) + gSavedSettings.getControl(RLV_SETTING_SHOWNAMETAGS)->getSignal()->connect(boost::bind(&rlvHandleShowNameTagsChanged, _1)); +// [/RLVa:KB] } template <> eControlType get_control_type(const U32& in, LLSD& out) -- cgit v1.1