added code for disabling clouds
This commit is contained in:
@@ -254,10 +254,6 @@ PFNGLBINDATTRIBLOCATIONARBPROC glBindAttribLocationARB = NULL;
|
|||||||
PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB = NULL;
|
PFNGLGETACTIVEATTRIBARBPROC glGetActiveAttribARB = NULL;
|
||||||
PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB = NULL;
|
PFNGLGETATTRIBLOCATIONARBPROC glGetAttribLocationARB = NULL;
|
||||||
|
|
||||||
#if LL_WINDOWS
|
|
||||||
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if LL_LINUX_NV_GL_HEADERS
|
#if LL_LINUX_NV_GL_HEADERS
|
||||||
// linux nvidia headers. these define these differently to mesa's. ugh.
|
// linux nvidia headers. these define these differently to mesa's. ugh.
|
||||||
PFNGLACTIVETEXTUREARBPROC glActiveTextureARB = NULL;
|
PFNGLACTIVETEXTUREARBPROC glActiveTextureARB = NULL;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -12703,5 +12703,16 @@
|
|||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
</map>
|
</map>
|
||||||
|
<key>CloudsEnabled</key>
|
||||||
|
<map>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Render Clouds</string>
|
||||||
|
<key>Persist</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>Boolean</string>
|
||||||
|
<key>Value</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
</map>
|
||||||
</map>
|
</map>
|
||||||
</llsd>
|
</llsd>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
#include "lluictrlfactory.h"
|
#include "lluictrlfactory.h"
|
||||||
#include "llcombobox.h"
|
#include "llcombobox.h"
|
||||||
#include "llwind.h"
|
#include "llwind.h"
|
||||||
|
#include "pipeline.h"
|
||||||
|
|
||||||
class LLPrefsInertImpl : public LLPanel
|
class LLPrefsInertImpl : public LLPanel
|
||||||
{
|
{
|
||||||
@@ -65,6 +66,8 @@ private:
|
|||||||
BOOL mSpeedRez;
|
BOOL mSpeedRez;
|
||||||
BOOL mRevokePermsOnStandUp;
|
BOOL mRevokePermsOnStandUp;
|
||||||
BOOL mEnableLLWind;
|
BOOL mEnableLLWind;
|
||||||
|
BOOL mEnableClouds;
|
||||||
|
BOOL mInitialEnableClouds;
|
||||||
U32 mSpeedRezInterval;
|
U32 mSpeedRezInterval;
|
||||||
U32 mLinksForChattingObjects;
|
U32 mLinksForChattingObjects;
|
||||||
U32 mTimeFormat;
|
U32 mTimeFormat;
|
||||||
@@ -78,6 +81,8 @@ LLPrefsInertImpl::LLPrefsInertImpl()
|
|||||||
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_inert.xml");
|
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_inert.xml");
|
||||||
childSetCommitCallback("speed_rez_check", onCommitCheckBox, this);
|
childSetCommitCallback("speed_rez_check", onCommitCheckBox, this);
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
|
mInitialEnableClouds = mEnableClouds;
|
||||||
}
|
}
|
||||||
|
|
||||||
//static
|
//static
|
||||||
@@ -114,6 +119,7 @@ void LLPrefsInertImpl::refreshValues()
|
|||||||
mLinksForChattingObjects = gSavedSettings.getU32("LinksForChattingObjects");
|
mLinksForChattingObjects = gSavedSettings.getU32("LinksForChattingObjects");
|
||||||
mRevokePermsOnStandUp = gSavedSettings.getBOOL("RevokePermsOnStandUp");
|
mRevokePermsOnStandUp = gSavedSettings.getBOOL("RevokePermsOnStandUp");
|
||||||
mEnableLLWind = gSavedSettings.getBOOL("WindEnabled");
|
mEnableLLWind = gSavedSettings.getBOOL("WindEnabled");
|
||||||
|
mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPrefsInertImpl::refresh()
|
void LLPrefsInertImpl::refresh()
|
||||||
@@ -188,6 +194,12 @@ void LLPrefsInertImpl::cancel()
|
|||||||
gSavedSettings.setBOOL("RevokePermsOnStandUp", mRevokePermsOnStandUp);
|
gSavedSettings.setBOOL("RevokePermsOnStandUp", mRevokePermsOnStandUp);
|
||||||
gSavedSettings.setBOOL("WindEnabled", mEnableLLWind);
|
gSavedSettings.setBOOL("WindEnabled", mEnableLLWind);
|
||||||
gLLWindEnabled = mEnableLLWind;
|
gLLWindEnabled = mEnableLLWind;
|
||||||
|
|
||||||
|
if(mInitialEnableClouds != gSavedSettings.getBOOL("CloudsEnabled"))
|
||||||
|
{
|
||||||
|
gSavedSettings.setBOOL("CloudsEnabled", mEnableClouds);
|
||||||
|
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPrefsInertImpl::apply()
|
void LLPrefsInertImpl::apply()
|
||||||
|
|||||||
@@ -2569,6 +2569,11 @@ bool idle_startup()
|
|||||||
{
|
{
|
||||||
LLFloaterBeacons::showInstance();
|
LLFloaterBeacons::showInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!gSavedSettings.getBOOL("CloudsEnabled") && !gNoRender)
|
||||||
|
{
|
||||||
|
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
||||||
|
}
|
||||||
|
|
||||||
if (!gNoRender)
|
if (!gNoRender)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -90,6 +90,11 @@
|
|||||||
label="Enable Wind Effects" left="10"
|
label="Enable Wind Effects" left="10"
|
||||||
mouse_opaque="true" name="enable_wind" radio_style="false"
|
mouse_opaque="true" name="enable_wind" radio_style="false"
|
||||||
width="400" />
|
width="400" />
|
||||||
|
<check_box bottom_delta="-20" control_name="CloudsEnabled" enabled="true"
|
||||||
|
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
|
||||||
|
label="Enable Clouds" left="10"
|
||||||
|
mouse_opaque="true" name="enable_clouds" radio_style="false"
|
||||||
|
width="400" />
|
||||||
</panel>
|
</panel>
|
||||||
<panel border="true" left="1" bottom="-408" height="408" width="500" mouse_opaque="true"
|
<panel border="true" left="1" bottom="-408" height="408" width="500" mouse_opaque="true"
|
||||||
follows="left|top|right|bottom" label="Miscellaneous" name="Miscellaneous">
|
follows="left|top|right|bottom" label="Miscellaneous" name="Miscellaneous">
|
||||||
|
|||||||
Reference in New Issue
Block a user