diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp
index bc9d5cfd65..da78e42c1a 100644
--- a/indra/llui/llbutton.cpp
+++ b/indra/llui/llbutton.cpp
@@ -636,10 +636,28 @@ void LLButton::draw()
{
if ( sEnableButtonFlashing)
{
+ // Global flash rate override
+ //F32 elapsed = mFlashingTimer.getElapsedTimeF32();
+ //S32 flash_count = S32(elapsed * mButtonFlashRate * 2.f);
+ //// flash on or off?
+ //flash = (flash_count % 2 == 0) || flash_count > S32((F32)mButtonFlashCount * 2.f);
+
+ S32 buttonFlashCount = mButtonFlashCount;
+ F32 buttonFlashRate = mButtonFlashRate;
+ static LLCachedControl fsGlobalButtonFlashOverride(*LLUI::sSettingGroups["config"], "FSGlobalButtonFlashOverride", true);
+ static LLCachedControl fsButtonFlashCount(*LLUI::sSettingGroups["config"], "FSButtonFlashCount", true);
+ static LLCachedControl fsButtonFlashRate(*LLUI::sSettingGroups["config"], "FSButtonFlashRate", true);
+ if (fsGlobalButtonFlashOverride)
+ {
+ buttonFlashCount = (S32)fsButtonFlashCount;
+ buttonFlashRate = (F32)fsButtonFlashRate;
+ }
+
F32 elapsed = mFlashingTimer.getElapsedTimeF32();
- S32 flash_count = S32(elapsed * mButtonFlashRate * 2.f);
+ S32 flash_count = S32(elapsed * buttonFlashRate * 2.f);
// flash on or off?
- flash = (flash_count % 2 == 0) || flash_count > S32((F32)mButtonFlashCount * 2.f);
+ flash = (flash_count % 2 == 0) || flash_count > S32((F32)buttonFlashCount * 2.f);
+ // Global flash rate override
}
else
{ // otherwise just highlight button in flash color
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 404aa5ef94..60288db0b9 100755
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -17012,6 +17012,39 @@ Change of this parameter will affect the layout of buttons in notification toast
Value
0
+ FSButtonFlashCount
+
+ FSButtonFlashRate
+
+ FSGlobalButtonFlashOverride
+
diff --git a/indra/newview/skins/default/xui/de/panel_preferences_UI.xml b/indra/newview/skins/default/xui/de/panel_preferences_UI.xml
index 19996dbf7a..8ac5f4b05a 100644
--- a/indra/newview/skins/default/xui/de/panel_preferences_UI.xml
+++ b/indra/newview/skins/default/xui/de/panel_preferences_UI.xml
@@ -45,10 +45,8 @@
-
- Blinkende Buttons:
-
-
+
+
Hz
diff --git a/indra/newview/skins/default/xui/en/panel_preferences_UI.xml b/indra/newview/skins/default/xui/en/panel_preferences_UI.xml
index 5b918ece02..5fedaed201 100644
--- a/indra/newview/skins/default/xui/en/panel_preferences_UI.xml
+++ b/indra/newview/skins/default/xui/en/panel_preferences_UI.xml
@@ -249,7 +249,8 @@
width="270"
tool_tip="Show lag meter in the Status Overlay"/>
-
- Flashing Buttons:
-
+ width="128"
+ label="Global Flashing Buttons Override:"/>