From f28a9846661978c1ca82c6c56d387cac0fd8e6c7 Mon Sep 17 00:00:00 2001 From: Cinders Date: Sat, 13 Jul 2013 16:42:15 -0600 Subject: [PATCH] Remove FSButtonFlashRate in favor of FlashPeriod setting, sync the rate with our old value --- indra/llui/lltabcontainer.cpp | 14 +++++++------- indra/newview/app_settings/settings.xml | 15 ++------------- .../skins/default/xui/en/panel_preferences_UI.xml | 2 +- 3 files changed, 10 insertions(+), 21 deletions(-) diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp index bc23fe2b56..2dbbc8525e 100755 --- a/indra/llui/lltabcontainer.cpp +++ b/indra/llui/lltabcontainer.cpp @@ -1160,7 +1160,7 @@ void LLTabContainer::addTabPanel(const TabPanelParams& panel) // Enable tab flashing p.button_flash_enable(LLUI::sSettingGroups["config"]->getBOOL("EnableButtonFlashing")); p.button_flash_count(LLUI::sSettingGroups["config"]->getS32("FlashCount")); - p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FSButtonFlashRate")); + p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FlashPeriod")); // // *TODO : It seems wrong not to use p in both cases considering the way p is initialized @@ -1903,7 +1903,7 @@ void LLTabContainer::initButtons() // Enable tab flashing prev_btn_params.button_flash_enable(LLUI::sSettingGroups["config"]->getBOOL("EnableButtonFlashing")); prev_btn_params.button_flash_count(LLUI::sSettingGroups["config"]->getS32("FlashCount")); - prev_btn_params.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FSButtonFlashRate")); + prev_btn_params.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FlashPeriod")); // mPrevArrowBtn = LLUICtrlFactory::create(prev_btn_params); @@ -1919,7 +1919,7 @@ void LLTabContainer::initButtons() // Enable tab flashing next_btn_params.button_flash_enable(LLUI::sSettingGroups["config"]->getBOOL("EnableButtonFlashing")); next_btn_params.button_flash_count(LLUI::sSettingGroups["config"]->getS32("FlashCount")); - next_btn_params.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FSButtonFlashRate")); + next_btn_params.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FlashPeriod")); // mNextArrowBtn = LLUICtrlFactory::create(next_btn_params); @@ -1962,7 +1962,7 @@ void LLTabContainer::initButtons() // Enable tab flashing p.button_flash_enable(LLUI::sSettingGroups["config"]->getBOOL("EnableButtonFlashing")); p.button_flash_count(LLUI::sSettingGroups["config"]->getS32("FlashCount")); - p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FSButtonFlashRate")); + p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FlashPeriod")); // mJumpPrevArrowBtn = LLUICtrlFactory::create(p); @@ -1979,7 +1979,7 @@ void LLTabContainer::initButtons() // Enable tab flashing p.button_flash_enable(LLUI::sSettingGroups["config"]->getBOOL("EnableButtonFlashing")); p.button_flash_count(LLUI::sSettingGroups["config"]->getS32("FlashCount")); - p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FSButtonFlashRate")); + p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FlashPeriod")); // mPrevArrowBtn = LLUICtrlFactory::create(p); @@ -1995,7 +1995,7 @@ void LLTabContainer::initButtons() // Enable tab flashing p.button_flash_enable(LLUI::sSettingGroups["config"]->getBOOL("EnableButtonFlashing")); p.button_flash_count(LLUI::sSettingGroups["config"]->getS32("FlashCount")); - p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FSButtonFlashRate")); + p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FlashPeriod")); // mJumpNextArrowBtn = LLUICtrlFactory::create(p); @@ -2012,7 +2012,7 @@ void LLTabContainer::initButtons() // Enable tab flashing p.button_flash_enable(LLUI::sSettingGroups["config"]->getBOOL("EnableButtonFlashing")); p.button_flash_count(LLUI::sSettingGroups["config"]->getS32("FlashCount")); - p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FSButtonFlashRate")); + p.button_flash_rate(LLUI::sSettingGroups["config"]->getF32("FlashPeriod")); // mNextArrowBtn = LLUICtrlFactory::create(p); diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index d3303a2a81..bb85698aa2 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -12711,7 +12711,7 @@ Change of this parameter will affect the layout of buttons in notification toast Type Boolean Value - 0 + 0 ShowMiniLocationPanel @@ -16340,7 +16340,7 @@ Change of this parameter will affect the layout of buttons in notification toast Type F32 Value - 0.5 + 1.25 WindLightUseAtmosShaders @@ -18849,17 +18849,6 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 - FSButtonFlashRate - - Comment - Frequency at which buttons flash (hz) - Persist - 1 - Type - F32 - Value - 1.25 - FSTagShowDistanceColors Comment 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 5342eba7f4..2bf0c7e4db 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_UI.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_UI.xml @@ -433,7 +433,7 @@ top_pad="6" width="471" />