From faf628668b8736276f6ba28a91b201c04929f21c Mon Sep 17 00:00:00 2001 From: Hazim Gazov Date: Sat, 17 Apr 2010 21:24:13 -0300 Subject: [PATCH] added performance tab to inert options, added ability to disable / enable wind at runtime --- indra/newview/hbprefsinert.cpp | 5 +++++ .../skins/default/xui/en-us/panel_preferences_inert.xml | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/indra/newview/hbprefsinert.cpp b/indra/newview/hbprefsinert.cpp index da5daed7b..428478652 100644 --- a/indra/newview/hbprefsinert.cpp +++ b/indra/newview/hbprefsinert.cpp @@ -38,6 +38,7 @@ #include "llviewercontrol.h" #include "lluictrlfactory.h" #include "llcombobox.h" +#include "llwind.h" class LLPrefsInertImpl : public LLPanel { @@ -63,6 +64,7 @@ private: BOOL mPreviewAnimInWorld; BOOL mSpeedRez; BOOL mRevokePermsOnStandUp; + BOOL mEnableLLWind; U32 mSpeedRezInterval; U32 mLinksForChattingObjects; U32 mTimeFormat; @@ -111,6 +113,7 @@ void LLPrefsInertImpl::refreshValues() mSpeedRezInterval = gSavedSettings.getU32("SpeedRezInterval"); mLinksForChattingObjects = gSavedSettings.getU32("LinksForChattingObjects"); mRevokePermsOnStandUp = gSavedSettings.getBOOL("RevokePermsOnStandUp"); + mEnableLLWind = gSavedSettings.getBOOL("WindEnabled"); } void LLPrefsInertImpl::refresh() @@ -183,6 +186,8 @@ void LLPrefsInertImpl::cancel() gSavedSettings.setU32("SpeedRezInterval", mSpeedRezInterval); gSavedSettings.setU32("LinksForChattingObjects", mLinksForChattingObjects); gSavedSettings.setBOOL("RevokePermsOnStandUp", mRevokePermsOnStandUp); + gSavedSettings.setBOOL("WindEnabled", mEnableLLWind); + gLLWindEnabled = mEnableLLWind; } void LLPrefsInertImpl::apply() diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml index 6a311094b..f407eaaac 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_inert.xml @@ -83,6 +83,14 @@ + + +