Satisfy Issue 476: Option to mute gesture sounds

Enable Gesture Sounds checkbox added to Adv. Chat->Spam tab.
This commit is contained in:
Inusaito Sayori
2012-12-19 02:10:12 -05:00
parent 66386d6eec
commit c35f762826
3 changed files with 4 additions and 0 deletions

View File

@@ -390,6 +390,7 @@ void LLPrefsAscentChat::refreshValues()
mSoundMulti = gSavedSettings.getU32("_NACL_AntiSpamSoundMulti");
mNewLines = gSavedSettings.getU32("_NACL_AntiSpamNewlines");
mPreloadMulti = gSavedSettings.getU32("_NACL_AntiSpamSoundPreloadMulti");
mEnableGestureSounds = gSavedSettings.getBOOL("EnableGestureSounds");
//Text Options ------------------------------------------------------------------------
mSpellDisplay = gSavedSettings.getBOOL("SpellDisplay");
@@ -607,6 +608,7 @@ void LLPrefsAscentChat::cancel()
gSavedSettings.setU32("_NACL_AntiSpamSoundMulti", mSoundMulti);
gSavedSettings.setU32("_NACL_AntiSpamNewlines", mNewLines);
gSavedSettings.setU32("_NACL_AntiSpamSoundPreloadMulti", mPreloadMulti);
gSavedSettings.setBOOL("EnableGestureSounds", mEnableGestureSounds);
//Text Options ------------------------------------------------------------------------
gSavedSettings.setBOOL("SpellDisplay", mSpellDisplay);

View File

@@ -104,6 +104,7 @@ protected:
BOOL mSoundMulti;
U32 mNewLines;
U32 mPreloadMulti;
bool mEnableGestureSounds;
//Text Options ------------------------------------------------------------------------
BOOL mSpellDisplay;

View File

@@ -87,6 +87,7 @@
<check_box control_name="AntiSpamScripts" height="16" label="Scripts" name="Scripts" bottom_delta="0" left_delta="120"/>
<check_box control_name="AntiSpamTeleports" height="16" label="Teleport Offers" name="Teleport Offers" bottom_delta="0" left_delta="120"/>
<check_box control_name="AntiSpamGroupNotices" height="16" label="Group Notices" name="Group Notices" bottom_delta="0" left_delta="120"/>
<check_box control_name="EnableGestureSounds" label="Enable Gesture Sounds" name="Enable Gesture Sounds" left="3" bottom_delta="-20"/>
</panel>
<panel border="true" bottom="-580" height="525" label="Text Options" left="1" name="TextOptions" width="418">