-Sanity checks from snowglobe. ...
-Null terminated a string buffer. -Mutex locks are expensive. -Realloc is my friend. -But leaks are not. -Nor are unused variables. -And buffer overruns should get lost. -bindManual shouldnt return failure if texture's already bound. -Pulled windlight and classic clouds apart into unique rendertypes. -'Client or Account' savedsettings stuff is now moar bettar. (and efficient) -Replaced LLSavedSettingsGlue with something that supports gSavedSettings, gSavedPerAccountSettings, and gCOASavedSettings -Added 'Enable Classic Clouds' checkbox to ascet performance settings panel -New cards added to gpu table. -General cleaning... -How2spell 'dimensions'? Via Shyotl Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
@@ -93,6 +93,7 @@ private:
|
||||
BOOL mFetchInventoryOnLogin;
|
||||
BOOL mEnableLLWind;
|
||||
BOOL mEnableClouds;
|
||||
BOOL mEnableClassicClouds;
|
||||
BOOL mSpeedRez;
|
||||
U32 mSpeedRezInterval;
|
||||
//Command Line ------------------------------------------------------------------------
|
||||
@@ -115,7 +116,6 @@ LLPrefsAscentSysImpl::LLPrefsAscentSysImpl()
|
||||
childSetCommitCallback("system_folder_check", onCommitCheckBox, this);
|
||||
childSetCommitCallback("show_look_at_check", onCommitCheckBox, this);
|
||||
childSetCommitCallback("enable_clouds", onCommitCheckBox, this);
|
||||
mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled");
|
||||
refreshValues();
|
||||
refresh();
|
||||
}
|
||||
@@ -150,6 +150,11 @@ void LLPrefsAscentSysImpl::onCommitCheckBox(LLUICtrl* ctrl, void* user_data)
|
||||
bool enabled = self->childGetValue("system_folder_check").asBoolean();
|
||||
self->childSetEnabled("temp_in_system_check", enabled);
|
||||
}
|
||||
else if (ctrl->getName() == "enable_clouds")
|
||||
{
|
||||
bool enabled = self->childGetValue("enable_clouds").asBoolean();
|
||||
self->childSetEnabled("enable_classic_clouds", enabled);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPrefsAscentSysImpl::refreshValues()
|
||||
@@ -181,11 +186,8 @@ void LLPrefsAscentSysImpl::refreshValues()
|
||||
//Performance -------------------------------------------------------------------------
|
||||
mFetchInventoryOnLogin = gSavedSettings.getBOOL("FetchInventoryOnLogin");
|
||||
mEnableLLWind = gSavedSettings.getBOOL("WindEnabled");
|
||||
if(mEnableClouds != gSavedSettings.getBOOL("CloudsEnabled"))
|
||||
{
|
||||
mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled");
|
||||
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
||||
}
|
||||
mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled");
|
||||
mEnableClassicClouds = gSavedSettings.getBOOL("SkyUseClassicClouds");
|
||||
mSpeedRez = gSavedSettings.getBOOL("SpeedRez");
|
||||
mSpeedRezInterval = gSavedSettings.getU32("SpeedRezInterval");
|
||||
|
||||
@@ -290,6 +292,7 @@ void LLPrefsAscentSysImpl::refresh()
|
||||
childSetValue("fetch_inventory_on_login_check", mFetchInventoryOnLogin);
|
||||
childSetValue("enable_wind", mEnableLLWind);
|
||||
childSetValue("enable_clouds", mEnableClouds);
|
||||
childSetValue("enable_classic_clouds", mEnableClassicClouds);
|
||||
gLLWindEnabled = mEnableLLWind;
|
||||
childSetValue("speed_rez_check", mSpeedRez);
|
||||
childSetEnabled("speed_rez_interval", mSpeedRez);
|
||||
@@ -329,6 +332,7 @@ void LLPrefsAscentSysImpl::cancel()
|
||||
childSetValue("fetch_inventory_on_login_check", mFetchInventoryOnLogin);
|
||||
childSetValue("enable_wind", mEnableLLWind);
|
||||
childSetValue("enable_clouds", mEnableClouds);
|
||||
childSetValue("enable_classic_clouds", mEnableClassicClouds);
|
||||
childSetValue("speed_rez_check", mSpeedRez);
|
||||
if (mSpeedRez)
|
||||
{
|
||||
@@ -348,11 +352,8 @@ void LLPrefsAscentSysImpl::cancel()
|
||||
childSetValue("private_look_at_check", mPrivateLookAt);
|
||||
childSetValue("revoke_perms_on_stand_up_check", mRevokePermsOnStandUp);
|
||||
|
||||
if(mEnableClouds != gSavedSettings.getBOOL("CloudsEnabled"))
|
||||
{
|
||||
gSavedSettings.setBOOL("CloudsEnabled", mEnableClouds);
|
||||
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
||||
}
|
||||
childSetValue("enable_clouds", mEnableClouds);
|
||||
childSetValue("enable_classic_clouds", mEnableClassicClouds);
|
||||
gLLWindEnabled = mEnableLLWind;
|
||||
}
|
||||
|
||||
@@ -460,6 +461,7 @@ void LLPrefsAscentSysImpl::apply()
|
||||
gSavedSettings.setBOOL("FetchInventoryOnLogin", childGetValue("fetch_inventory_on_login_check"));
|
||||
gSavedSettings.setBOOL("WindEnabled", childGetValue("enable_wind"));
|
||||
gSavedSettings.setBOOL("CloudsEnabled", childGetValue("enable_clouds"));
|
||||
gSavedSettings.setBOOL("SkyUseClassicClouds", childGetValue("enable_classic_clouds"));
|
||||
gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check"));
|
||||
gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval").asReal());
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#include "v4color.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "llcombobox.h"
|
||||
#include "llsavedsettingsglue.h"
|
||||
#include "llwind.h"
|
||||
#include "llviewernetwork.h"
|
||||
#include "pipeline.h"
|
||||
@@ -124,8 +123,8 @@ void LLPrefsAscentVanImpl::onCommitColor(LLUICtrl* ctrl, void* user_data)
|
||||
{
|
||||
|
||||
llinfos << "Recreating color message for tag update." << llendl;
|
||||
LLSavedSettingsGlue::setCOAString("AscentCustomTagLabel", self->childGetValue("custom_tag_label_box"));
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentCustomTagColor", self->childGetValue("custom_tag_color_swatch"));
|
||||
gCOASavedSettings->setString("AscentCustomTagLabel", self->childGetValue("custom_tag_label_box"));
|
||||
gCOASavedSettings->setColor4("AscentCustomTagColor", self->childGetValue("custom_tag_color_swatch"));
|
||||
gAgent.sendAgentSetAppearance();
|
||||
gAgent.resetClientTag();
|
||||
}
|
||||
@@ -182,7 +181,7 @@ void LLPrefsAscentVanImpl::onCommitCheckBox(LLUICtrl* ctrl, void* user_data)
|
||||
}
|
||||
|
||||
BOOL showCustomOptions;
|
||||
showCustomOptions = LLSavedSettingsGlue::getCOABOOL("AscentUseCustomTag");
|
||||
showCustomOptions = gCOASavedSettings->getBOOL("AscentUseCustomTag");
|
||||
self->childSetValue("customize_own_tag_check", showCustomOptions);
|
||||
self->childSetEnabled("custom_tag_label_text", showCustomOptions);
|
||||
self->childSetEnabled("custom_tag_label_box", showCustomOptions);
|
||||
@@ -205,25 +204,21 @@ void LLPrefsAscentVanImpl::refreshValues()
|
||||
mShowSelfClientTagColor = gSavedSettings.getBOOL("AscentShowSelfTagColor");
|
||||
mCustomTagOn = gSavedSettings.getBOOL("AscentUseCustomTag");
|
||||
|
||||
mSelectedClient = LLSavedSettingsGlue::getCOAU32("AscentReportClientIndex");
|
||||
mEffectColor = LLSavedSettingsGlue::getCOAColor4("EffectColor");
|
||||
|
||||
BOOL use_custom = LLSavedSettingsGlue::getCOABOOL("AscentUseCustomTag");
|
||||
mSelectedClient = gCOASavedSettings->getU32("AscentReportClientIndex");
|
||||
mEffectColor = gCOASavedSettings->getColor4("EffectColor");
|
||||
|
||||
|
||||
childSetEnabled("custom_tag_label_text", mCustomTagOn);
|
||||
childSetEnabled("custom_tag_label_box", mCustomTagOn);
|
||||
childSetEnabled("custom_tag_color_text", mCustomTagOn);
|
||||
childSetEnabled("custom_tag_color_swatch", mCustomTagOn);
|
||||
|
||||
childSetEnabled("custom_tag_label_text", use_custom);
|
||||
childSetEnabled("custom_tag_label_box", use_custom);
|
||||
childSetEnabled("custom_tag_color_text", use_custom);
|
||||
childSetEnabled("custom_tag_color_swatch", use_custom);
|
||||
|
||||
mCustomTagLabel = LLSavedSettingsGlue::getCOAString("AscentCustomTagLabel");
|
||||
mCustomTagColor = LLSavedSettingsGlue::getCOAColor4("AscentCustomTagColor");
|
||||
mFriendColor = LLSavedSettingsGlue::getCOAColor4("AscentFriendColor");
|
||||
mLindenColor = LLSavedSettingsGlue::getCOAColor4("AscentLindenColor");
|
||||
mMutedColor = LLSavedSettingsGlue::getCOAColor4("AscentMutedColor");
|
||||
mEMColor = LLSavedSettingsGlue::getCOAColor4("AscentEstateOwnerColor");
|
||||
mCustomColor = LLSavedSettingsGlue::getCOAColor4("MoyMiniMapCustomColor");
|
||||
mCustomTagLabel = gCOASavedSettings->getString("AscentCustomTagLabel");
|
||||
mCustomTagColor = gCOASavedSettings->getColor4("AscentCustomTagColor");
|
||||
mFriendColor = gCOASavedSettings->getColor4("AscentFriendColor");
|
||||
mLindenColor = gCOASavedSettings->getColor4("AscentLindenColor");
|
||||
mMutedColor = gCOASavedSettings->getColor4("AscentMutedColor");
|
||||
mEMColor = gCOASavedSettings->getColor4("AscentEstateOwnerColor");
|
||||
mCustomColor = gCOASavedSettings->getColor4("MoyMiniMapCustomColor");
|
||||
}
|
||||
|
||||
void LLPrefsAscentVanImpl::refresh()
|
||||
@@ -251,23 +246,23 @@ void LLPrefsAscentVanImpl::refresh()
|
||||
getChild<LLColorSwatchCtrl>("muted_color_swatch")->set(mMutedColor);
|
||||
getChild<LLColorSwatchCtrl>("em_color_swatch")->set(mEMColor);
|
||||
getChild<LLColorSwatchCtrl>("custom_color_swatch")->set(mCustomColor);
|
||||
LLSavedSettingsGlue::setCOAColor4("EffectColor", LLColor4::white);
|
||||
LLSavedSettingsGlue::setCOAColor4("EffectColor", mEffectColor);
|
||||
gCOASavedSettings->setColor4("EffectColor", LLColor4::white);
|
||||
gCOASavedSettings->setColor4("EffectColor", mEffectColor);
|
||||
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentFriendColor", LLColor4::white);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentFriendColor", mFriendColor);
|
||||
gCOASavedSettings->setColor4("AscentFriendColor", LLColor4::white);
|
||||
gCOASavedSettings->setColor4("AscentFriendColor", mFriendColor);
|
||||
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentLindenColor", LLColor4::white);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentLindenColor", mLindenColor);
|
||||
gCOASavedSettings->setColor4("AscentLindenColor", LLColor4::white);
|
||||
gCOASavedSettings->setColor4("AscentLindenColor", mLindenColor);
|
||||
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentMutedColor", LLColor4::white);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentMutedColor", mMutedColor);
|
||||
gCOASavedSettings->setColor4("AscentMutedColor", LLColor4::white);
|
||||
gCOASavedSettings->setColor4("AscentMutedColor", mMutedColor);
|
||||
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentEstateOwnerColor", LLColor4::white);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentEstateOwnerColor", mEMColor);
|
||||
gCOASavedSettings->setColor4("AscentEstateOwnerColor", LLColor4::white);
|
||||
gCOASavedSettings->setColor4("AscentEstateOwnerColor", mEMColor);
|
||||
|
||||
LLSavedSettingsGlue::setCOAColor4("MoyMiniMapCustomColor", LLColor4::white);
|
||||
LLSavedSettingsGlue::setCOAColor4("MoyMiniMapCustomColor", mCustomColor);
|
||||
gCOASavedSettings->setColor4("MoyMiniMapCustomColor", LLColor4::white);
|
||||
gCOASavedSettings->setColor4("MoyMiniMapCustomColor", mCustomColor);
|
||||
gAgent.resetClientTag();
|
||||
}
|
||||
|
||||
@@ -279,18 +274,18 @@ void LLPrefsAscentVanImpl::cancel()
|
||||
childSetValue("tp_sound_check", mPlayTPSound);
|
||||
childSetValue("disable_logout_screen_check", mShowLogScreens);
|
||||
|
||||
LLSavedSettingsGlue::setCOAColor4("EffectColor", LLColor4::white);
|
||||
LLSavedSettingsGlue::setCOAColor4("EffectColor", mEffectColor);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentFriendColor", LLColor4::yellow);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentFriendColor", mFriendColor);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentLindenColor", LLColor4::yellow);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentLindenColor", mLindenColor);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentMutedColor", LLColor4::yellow);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentMutedColor", mMutedColor);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentEstateOwnerColor", LLColor4::yellow);
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentEstateOwnerColor", mEMColor);
|
||||
LLSavedSettingsGlue::setCOAColor4("MoyMiniMapCustomColor", LLColor4::yellow);
|
||||
LLSavedSettingsGlue::setCOAColor4("MoyMiniMapCustomColor", mCustomColor);
|
||||
gCOASavedSettings->setColor4("EffectColor", LLColor4::white);
|
||||
gCOASavedSettings->setColor4("EffectColor", mEffectColor);
|
||||
gCOASavedSettings->setColor4("AscentFriendColor", LLColor4::yellow);
|
||||
gCOASavedSettings->setColor4("AscentFriendColor", mFriendColor);
|
||||
gCOASavedSettings->setColor4("AscentLindenColor", LLColor4::yellow);
|
||||
gCOASavedSettings->setColor4("AscentLindenColor", mLindenColor);
|
||||
gCOASavedSettings->setColor4("AscentMutedColor", LLColor4::yellow);
|
||||
gCOASavedSettings->setColor4("AscentMutedColor", mMutedColor);
|
||||
gCOASavedSettings->setColor4("AscentEstateOwnerColor", LLColor4::yellow);
|
||||
gCOASavedSettings->setColor4("AscentEstateOwnerColor", mEMColor);
|
||||
gCOASavedSettings->setColor4("MoyMiniMapCustomColor", LLColor4::yellow);
|
||||
gCOASavedSettings->setColor4("MoyMiniMapCustomColor", mCustomColor);
|
||||
}
|
||||
|
||||
void LLPrefsAscentVanImpl::apply()
|
||||
@@ -311,8 +306,8 @@ void LLPrefsAscentVanImpl::apply()
|
||||
if (client_index != mSelectedClient)
|
||||
{
|
||||
client_uuid = combo->getSelectedValue().asString();
|
||||
LLSavedSettingsGlue::setCOAString("AscentReportClientUUID", client_uuid);
|
||||
LLSavedSettingsGlue::setCOAU32("AscentReportClientIndex", client_index);
|
||||
gCOASavedSettings->setString("AscentReportClientUUID", client_uuid);
|
||||
gCOASavedSettings->setU32("AscentReportClientIndex", client_index);
|
||||
LLVOAvatar* avatar = gAgent.getAvatarObject();
|
||||
if (!avatar) return;
|
||||
|
||||
@@ -324,15 +319,15 @@ void LLPrefsAscentVanImpl::apply()
|
||||
gSavedSettings.setBOOL("AscentShowSelfTag", childGetValue("show_self_tag_check"));
|
||||
gSavedSettings.setBOOL("AscentShowSelfTagColor", childGetValue("show_self_tag_color_check"));
|
||||
|
||||
LLSavedSettingsGlue::setCOAColor4("EffectColor", childGetValue("effect_color_swatch"));
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentFriendColor", childGetValue("friend_color_swatch"));
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentLindenColor", childGetValue("linden_color_swatch"));
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentMutedColor", childGetValue("muted_color_swatch"));
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentEstateOwnerColor", childGetValue("em_color_swatch"));
|
||||
LLSavedSettingsGlue::setCOAColor4("MoyMiniMapCustomColor", childGetValue("custom_color_swatch"));
|
||||
LLSavedSettingsGlue::setCOABOOL("AscentUseCustomTag", childGetValue("customize_own_tag_check"));
|
||||
LLSavedSettingsGlue::setCOAString("AscentCustomTagLabel", childGetValue("custom_tag_label_box"));
|
||||
LLSavedSettingsGlue::setCOAColor4("AscentCustomTagColor", childGetValue("custom_tag_color_swatch"));
|
||||
gCOASavedSettings->setColor4("EffectColor", childGetValue("effect_color_swatch"));
|
||||
gCOASavedSettings->setColor4("AscentFriendColor", childGetValue("friend_color_swatch"));
|
||||
gCOASavedSettings->setColor4("AscentLindenColor", childGetValue("linden_color_swatch"));
|
||||
gCOASavedSettings->setColor4("AscentMutedColor", childGetValue("muted_color_swatch"));
|
||||
gCOASavedSettings->setColor4("AscentEstateOwnerColor", childGetValue("em_color_swatch"));
|
||||
gCOASavedSettings->setColor4("MoyMiniMapCustomColor", childGetValue("custom_color_swatch"));
|
||||
gCOASavedSettings->setBOOL("AscentUseCustomTag", childGetValue("customize_own_tag_check"));
|
||||
gCOASavedSettings->setString("AscentCustomTagLabel", childGetValue("custom_tag_label_box"));
|
||||
gCOASavedSettings->setColor4("AscentCustomTagColor", childGetValue("custom_tag_color_swatch"));
|
||||
|
||||
refreshValues();
|
||||
}
|
||||
|
||||
@@ -164,11 +164,15 @@ Matrox .*Matrox.* 0 0
|
||||
Mesa .*Mesa.* 0 0
|
||||
NVIDIA GT 120 .*NVIDIA.*GeForce.*GT.*12.* 2 1
|
||||
NVIDIA GT 130 .*NVIDIA.*GeForce.*GT.*13.* 3 1
|
||||
NVIDIA GT 220 .*NVIDIA.*GeForce.*GT.*22.* 3 1
|
||||
NVIDIA GTS 250 .*NVIDIA.*GeForce.*GTS.*25.* 3 1
|
||||
NVIDIA GTX 260 .*NVIDIA.*GeForce.*GTX.*26.* 3 1
|
||||
NVIDIA GTX 270 .*NVIDIA.*GeForce.*GTX.*27.* 3 1
|
||||
NVIDIA GTX 280 .*NVIDIA.*GeForce.*GTX.*28.* 3 1
|
||||
NVIDIA GTX 290 .*NVIDIA.*GeForce.*GTX.*29.* 3 1
|
||||
NVIDIA GTX 460 .*NVIDIA.*GeForce.*GTX.*46.* 3 1
|
||||
NVIDIA GTX 470 .*NVIDIA.*GeForce.*GTX.*47.* 3 1
|
||||
NVIDIA GTX 480 .*NVIDIA.*GeForce.*GTX.*48.* 3 1
|
||||
NVIDIA C51 .*NVIDIA.*C51.* 0 1
|
||||
NVIDIA G72 .*NVIDIA.*G72.* 1 1
|
||||
NVIDIA G73 .*NVIDIA.*G73.* 1 1
|
||||
|
||||
@@ -95,7 +95,6 @@
|
||||
#include "llnotify.h"
|
||||
#include "llprimitive.h" //For new client id method -HgB
|
||||
#include "llquantize.h"
|
||||
#include "llsavedsettingsglue.h" //For Client-Or-Account settings
|
||||
#include "llsdutil.h"
|
||||
#include "llselectmgr.h"
|
||||
#include "llsky.h"
|
||||
@@ -475,7 +474,7 @@ void LLAgent::init()
|
||||
|
||||
// LLDebugVarMessageBox::show("Camera Lag", &CAMERA_FOCUS_HALF_LIFE, 0.5f, 0.01f);
|
||||
|
||||
mEffectColor = LLSavedSettingsGlue::getCOAColor4("EffectColor");
|
||||
mEffectColor = gCOASavedSettings->getColor4("EffectColor");
|
||||
|
||||
mInitialized = TRUE;
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ void LLDrawPoolWLSky::renderStars(void) const
|
||||
|
||||
void LLDrawPoolWLSky::renderSkyClouds(F32 camHeightLocal) const
|
||||
{
|
||||
if (gPipeline.canUseWindLightShaders() && gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLOUDS))
|
||||
if (gPipeline.canUseWindLightShaders() && gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_WL_CLOUDS))
|
||||
{
|
||||
LLGLSLShader* shader =
|
||||
LLPipeline::sUnderWaterRender ?
|
||||
|
||||
@@ -44,8 +44,7 @@
|
||||
|
||||
#include "llagent.h"
|
||||
#include "llcombobox.h"
|
||||
#include "llnotify.h"
|
||||
#include "llsavedsettingsglue.h"
|
||||
#include "llnotify.h"
|
||||
#include "llviewerimagelist.h"
|
||||
#include "llviewerparcelmgr.h"
|
||||
#include "llviewerregion.h"
|
||||
@@ -81,7 +80,7 @@ LLFloaterAuction::LLFloaterAuction() :
|
||||
childSetValue("fence_check",
|
||||
LLSD( gSavedSettings.getBOOL("AuctionShowFence") ) );
|
||||
childSetCommitCallback("fence_check",
|
||||
LLSavedSettingsGlue::setBOOL, (void*)"AuctionShowFence");
|
||||
onCommitControlSetting(gSavedSettings), (void*)"AuctionShowFence");
|
||||
|
||||
childSetAction("snapshot_btn", onClickSnapshot, this);
|
||||
childSetAction("ok_btn", onClickOK, this);
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "llregionflags.h"
|
||||
#include "llfloaterreporter.h"
|
||||
#include "llagent.h"
|
||||
#include "llsavedsettingsglue.h"
|
||||
#include "llviewerregion.h"
|
||||
#include "lltracker.h"
|
||||
#include "llviewerstats.h"
|
||||
@@ -708,22 +707,22 @@ void LLFloaterAvatarList::refreshAvatarList()
|
||||
//Lindens are always more Linden than your friend, make that take precedence
|
||||
if(LLMuteList::getInstance()->isLinden(av_name))
|
||||
{
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = LLSavedSettingsGlue::getCOAColor4("AscentLindenColor").getValue();
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = gCOASavedSettings->getColor4("AscentLindenColor").getValue();
|
||||
}
|
||||
//check if they are an estate owner at their current position
|
||||
else if(estate_owner.notNull() && av_id == estate_owner)
|
||||
{
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = LLSavedSettingsGlue::getCOAColor4("AscentEstateOwnerColor").getValue();
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = gCOASavedSettings->getColor4("AscentEstateOwnerColor").getValue();
|
||||
}
|
||||
//without these dots, SL would suck.
|
||||
else if(is_agent_friend(av_id))
|
||||
{
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = LLSavedSettingsGlue::getCOAColor4("AscentFriendColor").getValue();
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = gCOASavedSettings->getColor4("AscentFriendColor").getValue();
|
||||
}
|
||||
//big fat jerkface who is probably a jerk, display them as such.
|
||||
else if(LLMuteList::getInstance()->isMuted(av_id))
|
||||
{
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = LLSavedSettingsGlue::getCOAColor4("AscentMutedColor").getValue();
|
||||
element["columns"][LIST_AVATAR_NAME]["color"] = gCOASavedSettings->getColor4("AscentMutedColor").getValue();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
#include "llviewerdisplay.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewerwindow.h"
|
||||
#include "llsavedsettingsglue.h"
|
||||
|
||||
#include "llwaterparamset.h"
|
||||
#include "llwaterparammanager.h"
|
||||
|
||||
@@ -53,7 +53,6 @@
|
||||
#include "llviewerdisplay.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewerwindow.h"
|
||||
#include "llsavedsettingsglue.h"
|
||||
|
||||
#include "llwlparamset.h"
|
||||
#include "llwlparammanager.h"
|
||||
@@ -210,7 +209,7 @@ void LLFloaterWindLight::initCallbacks(void) {
|
||||
childSetCommitCallback("WLCloudScrollX", onCloudScrollXMoved, NULL);
|
||||
childSetCommitCallback("WLCloudScrollY", onCloudScrollYMoved, NULL);
|
||||
childSetCommitCallback("WLDistanceMult", onFloatControlMoved, ¶m_mgr->mDistanceMult);
|
||||
childSetCommitCallback("DrawClassicClouds", LLSavedSettingsGlue::setBOOL, (void*)"SkyUseClassicClouds");
|
||||
childSetCommitCallback("DrawClassicClouds", onCommitControlSetting(gSavedSettings), (void*)"SkyUseClassicClouds");
|
||||
|
||||
// WL Top
|
||||
childSetAction("WLDayCycleMenuButton", onOpenDayCycle, NULL);
|
||||
|
||||
@@ -1663,7 +1663,7 @@ void LLManipTranslate::highlightIntersection(LLVector3 normal,
|
||||
glClipPlane(GL_CLIP_PLANE0, plane);
|
||||
|
||||
BOOL particles = gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_PARTICLES);
|
||||
BOOL clouds = gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLOUDS);
|
||||
BOOL clouds = gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS);
|
||||
|
||||
if (particles)
|
||||
{
|
||||
@@ -1671,7 +1671,7 @@ void LLManipTranslate::highlightIntersection(LLVector3 normal,
|
||||
}
|
||||
if (clouds)
|
||||
{
|
||||
LLPipeline::toggleRenderType(LLPipeline::RENDER_TYPE_CLOUDS);
|
||||
LLPipeline::toggleRenderType(LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS);
|
||||
}
|
||||
|
||||
//stencil in volumes
|
||||
@@ -1695,7 +1695,7 @@ void LLManipTranslate::highlightIntersection(LLVector3 normal,
|
||||
}
|
||||
if (clouds)
|
||||
{
|
||||
LLPipeline::toggleRenderType(LLPipeline::RENDER_TYPE_CLOUDS);
|
||||
LLPipeline::toggleRenderType(LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS);
|
||||
}
|
||||
|
||||
gGL.setColorMask(true, false);
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
#include "llframetimer.h"
|
||||
#include "lltracker.h"
|
||||
#include "llmenugl.h"
|
||||
#include "llsavedsettingsglue.h"
|
||||
#include "llsurface.h"
|
||||
#include "lltextbox.h"
|
||||
#include "lluictrlfactory.h"
|
||||
@@ -361,10 +360,10 @@ void LLNetMap::draw()
|
||||
// LLColor4 mapcolor = gAvatarMapColor;
|
||||
|
||||
LLColor4 standard_color = gColors.getColor( "MapAvatar" );
|
||||
LLColor4 friend_color = LLSavedSettingsGlue::getCOAColor4("AscentFriendColor");
|
||||
LLColor4 em_color = LLSavedSettingsGlue::getCOAColor4("AscentEstateOwnerColor");
|
||||
LLColor4 linden_color = LLSavedSettingsGlue::getCOAColor4("AscentLindenColor");
|
||||
LLColor4 muted_color = LLSavedSettingsGlue::getCOAColor4("AscentMutedColor");
|
||||
LLColor4 friend_color = gCOASavedSettings->getColor4("AscentFriendColor");
|
||||
LLColor4 em_color = gCOASavedSettings->getColor4("AscentEstateOwnerColor");
|
||||
LLColor4 linden_color = gCOASavedSettings->getColor4("AscentLindenColor");
|
||||
LLColor4 muted_color = gCOASavedSettings->getColor4("AscentMutedColor");
|
||||
|
||||
std::vector<LLUUID> avatar_ids;
|
||||
std::vector<LLVector3d> positions;
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
#include "llviewercontrol.h"
|
||||
|
||||
/*
|
||||
void LLSavedSettingsGlue::setBOOL(LLUICtrl* ctrl, void* data)
|
||||
{
|
||||
const char* name = (const char*)data;
|
||||
@@ -73,12 +74,20 @@ void LLSavedSettingsGlue::setString(LLUICtrl* ctrl, void* data)
|
||||
LLSD value = ctrl->getValue();
|
||||
gSavedSettings.setString(name, value.asString());
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
//Begin Ascent SavedSettings/PerAccountSettings handling
|
||||
|
||||
//Get
|
||||
BOOL LLSavedSettingsGlue::getCOABOOL(std::string name)
|
||||
LLControlVariable *gCOASavedSettings->getControl(const std::string &name)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
return gSavedSettings.getControl(name);
|
||||
else
|
||||
return gSavedPerAccountSettings.getControl(name);
|
||||
}
|
||||
BOOL gCOASavedSettings->getBOOL(const std::string &name)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
return gSavedSettings.getBOOL(name);
|
||||
@@ -86,7 +95,7 @@ BOOL LLSavedSettingsGlue::getCOABOOL(std::string name)
|
||||
return gSavedPerAccountSettings.getBOOL(name);
|
||||
}
|
||||
|
||||
S32 LLSavedSettingsGlue::getCOAS32(std::string name)
|
||||
S32 gCOASavedSettings->getS32(const std::string &name)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
return gSavedSettings.getS32(name);
|
||||
@@ -94,7 +103,7 @@ S32 LLSavedSettingsGlue::getCOAS32(std::string name)
|
||||
return gSavedPerAccountSettings.getS32(name);
|
||||
}
|
||||
|
||||
F32 LLSavedSettingsGlue::getCOAF32(std::string name)
|
||||
F32 gCOASavedSettings->getF32(const std::string &name)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
return gSavedSettings.getF32(name);
|
||||
@@ -102,7 +111,7 @@ F32 LLSavedSettingsGlue::getCOAF32(std::string name)
|
||||
return gSavedPerAccountSettings.getF32(name);
|
||||
}
|
||||
|
||||
U32 LLSavedSettingsGlue::getCOAU32(std::string name)
|
||||
U32 gCOASavedSettings->getU32(const std::string &name)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
return gSavedSettings.getU32(name);
|
||||
@@ -110,7 +119,7 @@ U32 LLSavedSettingsGlue::getCOAU32(std::string name)
|
||||
return gSavedPerAccountSettings.getU32(name);
|
||||
}
|
||||
|
||||
std::string LLSavedSettingsGlue::getCOAString(std::string name)
|
||||
std::string gCOASavedSettings->getString(const std::string &name)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
return gSavedSettings.getString(name);
|
||||
@@ -118,7 +127,7 @@ std::string LLSavedSettingsGlue::getCOAString(std::string name)
|
||||
return gSavedPerAccountSettings.getString(name);
|
||||
}
|
||||
|
||||
LLColor4 LLSavedSettingsGlue::getCOAColor4(std::string name)
|
||||
LLColor4 gCOASavedSettings->getColor4(const std::string &name)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
return gSavedSettings.getColor4(name);
|
||||
@@ -128,7 +137,7 @@ LLColor4 LLSavedSettingsGlue::getCOAColor4(std::string name)
|
||||
|
||||
//Set
|
||||
|
||||
void LLSavedSettingsGlue::setCOABOOL(std::string name, BOOL value)
|
||||
void gCOASavedSettings->setBOOL(const std::string &name, BOOL value)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
gSavedSettings.setBOOL(name, value);
|
||||
@@ -136,7 +145,7 @@ void LLSavedSettingsGlue::setCOABOOL(std::string name, BOOL value)
|
||||
gSavedPerAccountSettings.setBOOL(name, value);
|
||||
}
|
||||
|
||||
void LLSavedSettingsGlue::setCOAS32(std::string name, S32 value)
|
||||
void gCOASavedSettings->setS32(const std::string &name, S32 value)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
gSavedSettings.setS32(name, value);
|
||||
@@ -144,7 +153,7 @@ void LLSavedSettingsGlue::setCOAS32(std::string name, S32 value)
|
||||
gSavedPerAccountSettings.setS32(name, value);
|
||||
}
|
||||
|
||||
void LLSavedSettingsGlue::setCOAF32(std::string name, F32 value)
|
||||
void gCOASavedSettings->setF32(const std::string &name, F32 value)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
gSavedSettings.setF32(name, value);
|
||||
@@ -152,7 +161,7 @@ void LLSavedSettingsGlue::setCOAF32(std::string name, F32 value)
|
||||
gSavedPerAccountSettings.setF32(name, value);
|
||||
}
|
||||
|
||||
void LLSavedSettingsGlue::setCOAU32(std::string name, U32 value)
|
||||
void gCOASavedSettings->setU32(const std::string &name, U32 value)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
gSavedSettings.setU32(name, value);
|
||||
@@ -160,7 +169,7 @@ void LLSavedSettingsGlue::setCOAU32(std::string name, U32 value)
|
||||
gSavedPerAccountSettings.setU32(name, value);
|
||||
}
|
||||
|
||||
void LLSavedSettingsGlue::setCOAString(std::string name, std::string value)
|
||||
void gCOASavedSettings->setString(const std::string &name, std::string value)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
gSavedSettings.setString(name, value);
|
||||
@@ -168,10 +177,10 @@ void LLSavedSettingsGlue::setCOAString(std::string name, std::string value)
|
||||
gSavedPerAccountSettings.setString(name, value);
|
||||
}
|
||||
|
||||
void LLSavedSettingsGlue::setCOAColor4(std::string name, LLColor4 value)
|
||||
void gCOASavedSettings->setColor4(const std::string &name, LLColor4 value)
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
gSavedSettings.setColor4(name, value);
|
||||
else
|
||||
gSavedPerAccountSettings.setColor4(name, value);
|
||||
}
|
||||
}*/
|
||||
@@ -41,7 +41,7 @@ class LLUICtrl;
|
||||
// and assign the control name as a const char* to the userdata.
|
||||
class LLSavedSettingsGlue
|
||||
{
|
||||
public:
|
||||
public:/*
|
||||
static void setBOOL(LLUICtrl* ctrl, void* name);
|
||||
static void setS32(LLUICtrl* ctrl, void* name);
|
||||
static void setF32(LLUICtrl* ctrl, void* name);
|
||||
@@ -49,20 +49,21 @@ public:
|
||||
static void setString(LLUICtrl* ctrl, void* name);
|
||||
|
||||
//Ascent Client-Or-Account Settings Get
|
||||
static BOOL getCOABOOL(std::string name);
|
||||
static S32 getCOAS32(std::string name);
|
||||
static F32 getCOAF32(std::string name);
|
||||
static U32 getCOAU32(std::string name);
|
||||
static std::string getCOAString(std::string name);
|
||||
static LLColor4 getCOAColor4(std::string name);
|
||||
static LLControlVariable *gCOASavedSettings->getControl(const std::string &name);
|
||||
static BOOL getCOABOOL(const std::string &name);
|
||||
static S32 getCOAS32(const std::string &name);
|
||||
static F32 getCOAF32(const std::string &name);
|
||||
static U32 getCOAU32(const std::string &name);
|
||||
static std::string getCOAString(const std::string &name);
|
||||
static LLColor4 getCOAColor4(const std::string &name);
|
||||
|
||||
//Ascent Client-Or-Account Settings Set
|
||||
static void setCOABOOL(std::string name, BOOL value);
|
||||
static void setCOAS32(std::string name, S32 value);
|
||||
static void setCOAF32(std::string name, F32 value);
|
||||
static void setCOAU32(std::string name, U32 value);
|
||||
static void setCOAString(std::string name, std::string value);
|
||||
static void setCOAColor4(std::string name, LLColor4 value);
|
||||
static void setCOABOOL(const std::string &name, BOOL value);
|
||||
static void setCOAS32(const std::string &name, S32 value);
|
||||
static void setCOAF32(const std::string &name, F32 value);
|
||||
static void setCOAU32(const std::string &name, U32 value);
|
||||
static void setCOAString(const std::string &name, std::string value);
|
||||
static void setCOAColor4(const std::string &name, LLColor4 value);*/
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -2638,16 +2638,15 @@ bool idle_startup()
|
||||
|
||||
/*if (gSavedSettings.getBOOL("BeaconAlwaysOn"))
|
||||
{
|
||||
LLFloaterBeacons::showInstance(); DIE
|
||||
LLFloaterBeacons::showInstance(); DIE -HgB
|
||||
}*/
|
||||
|
||||
if (!gSavedSettings.getBOOL("CloudsEnabled") && !gNoRender)
|
||||
{
|
||||
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
||||
}
|
||||
|
||||
if (!gNoRender)
|
||||
{
|
||||
//Set up cloud rendertypes. Passed argument is unused.
|
||||
handleCloudSettingsChanged(LLSD());
|
||||
|
||||
// Move the progress view in front of the UI
|
||||
gViewerWindow->moveProgressViewToFront();
|
||||
|
||||
|
||||
@@ -1419,7 +1419,7 @@ bool LLTextureFetch::createRequest(const std::string& url, const LLUUID& id, con
|
||||
}
|
||||
else if (w*h*c > 0)
|
||||
{
|
||||
// If the requester knows the dimentions of the image,
|
||||
// If the requester knows the dimensions of the image,
|
||||
// this will calculate how much data we need without having to parse the header
|
||||
|
||||
desired_size = LLImageJ2C::calcDataSizeJ2C(w, h, c, desired_discard);
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
#include "llvowlsky.h"
|
||||
#include "llrender.h"
|
||||
#include "llfloaterchat.h"
|
||||
#include "llviewerobjectlist.h"
|
||||
#include "emeraldboobutils.h"
|
||||
|
||||
#ifdef TOGGLE_HACKED_GODLIKE_VIEWER
|
||||
@@ -81,6 +82,7 @@ BOOL gHackGodmode = FALSE;
|
||||
std::map<std::string, LLControlGroup*> gSettings;
|
||||
LLControlGroup gSavedSettings; // saved at end of session
|
||||
LLControlGroup gSavedPerAccountSettings; // saved at end of session
|
||||
LLControlGroup *gCOASavedSettings = &gSavedSettings; //Ascent Client-Or-Account
|
||||
LLControlGroup gColors; // read-only
|
||||
LLControlGroup gCrashSettings; // saved at end of session
|
||||
|
||||
@@ -485,7 +487,40 @@ bool handleTranslateChatPrefsChanged(const LLSD& newvalue)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool handleCloudSettingsChanged(const LLSD& newvalue)
|
||||
{
|
||||
bool bCloudsEnabled = gSavedSettings.getBOOL("CloudsEnabled");
|
||||
if((bool)LLPipeline::hasRenderTypeControl((void*)LLPipeline::RENDER_TYPE_WL_CLOUDS)!=bCloudsEnabled)
|
||||
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_WL_CLOUDS);
|
||||
|
||||
if( !gSavedSettings.getBOOL("SkyUseClassicClouds") ) bCloudsEnabled = false;
|
||||
|
||||
if((bool)LLPipeline::hasRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS)!=bCloudsEnabled )
|
||||
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS);
|
||||
return true;
|
||||
}
|
||||
bool handleAscentCOAChange(const LLSD& newvalue)
|
||||
{
|
||||
gCOASavedSettings = newvalue.asBoolean() ? &gSavedPerAccountSettings : &gSavedSettings;
|
||||
return true;
|
||||
}
|
||||
bool handleAscentSelfTag(const LLSD& newvalue)
|
||||
{
|
||||
if(gAgent.getAvatarObject())
|
||||
gAgent.getAvatarObject()->mClientTag = "";
|
||||
return true;
|
||||
}
|
||||
bool handleAscentGlobalTag(const LLSD& newvalue)
|
||||
{
|
||||
S32 object_count = gObjectList.getNumObjects();
|
||||
for (S32 i = 0; i < object_count; i++)
|
||||
{
|
||||
LLViewerObject *objectp = gObjectList.getObject(i);
|
||||
if (objectp && objectp->isAvatar())
|
||||
((LLVOAvatar*)objectp)->mClientTag = "";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void settings_setup_listeners()
|
||||
@@ -625,6 +660,22 @@ void settings_setup_listeners()
|
||||
gSavedSettings.getControl("AudioLevelMic")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1));
|
||||
gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1));
|
||||
gSavedSettings.getControl("TranslateChat")->getSignal()->connect(boost::bind(&handleTranslateChatPrefsChanged, _1));
|
||||
|
||||
gSavedSettings.getControl("CloudsEnabled")->getSignal()->connect(boost::bind(&handleCloudSettingsChanged, _1));
|
||||
gSavedSettings.getControl("SkyUseClassicClouds")->getSignal()->connect(boost::bind(&handleCloudSettingsChanged, _1));
|
||||
|
||||
gSavedSettings.getControl("AscentStoreSettingsPerAccount")->getSignal()->connect(boost::bind(&handleAscentCOAChange,_1));
|
||||
gSavedSettings.getControl("AscentShowSelfTag")->getSignal()->connect(boost::bind(&handleAscentSelfTag,_1));
|
||||
gSavedSettings.getControl("AscentShowSelfTagColor")->getSignal()->connect(boost::bind(&handleAscentSelfTag,_1));
|
||||
gSavedSettings.getControl("AscentUseTag")->getSignal()->connect(boost::bind(&handleAscentSelfTag,_1));
|
||||
gCOASavedSettings->getControl("AscentUseCustomTag")->getSignal()->connect(boost::bind(&handleAscentSelfTag,_1));
|
||||
gCOASavedSettings->getControl("AscentCustomTagColor")->getSignal()->connect(boost::bind(&handleAscentSelfTag,_1));
|
||||
gCOASavedSettings->getControl("AscentCustomTagLabel")->getSignal()->connect(boost::bind(&handleAscentSelfTag,_1));
|
||||
gCOASavedSettings->getControl("AscentReportClientUUID")->getSignal()->connect(boost::bind(&handleAscentSelfTag,_1));
|
||||
gSavedSettings.getControl("AscentShowFriendsTag")->getSignal()->connect(boost::bind(&handleAscentGlobalTag,_1));
|
||||
gSavedSettings.getControl("AscentShowOthersTag")->getSignal()->connect(boost::bind(&handleAscentGlobalTag,_1));
|
||||
gSavedSettings.getControl("AscentShowOthersTagColor")->getSignal()->connect(boost::bind(&handleAscentGlobalTag,_1));
|
||||
gSavedSettings.getControl("AscentUseStatusColors")->getSignal()->connect(boost::bind(&handleAscentGlobalTag,_1));
|
||||
}
|
||||
|
||||
template <> eControlType get_control_type<U32>(const U32& in, LLSD& out)
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include <map>
|
||||
#include "llcontrol.h"
|
||||
#include "lluictrl.h"
|
||||
|
||||
// Enabled this definition to compile a 'hacked' viewer that
|
||||
// allows a hacked godmode to be toggled on and off.
|
||||
@@ -54,6 +55,7 @@ void create_graphics_group(LLControlGroup& group);
|
||||
|
||||
// saved at end of session
|
||||
extern LLControlGroup gSavedSettings;
|
||||
extern LLControlGroup *gCOASavedSettings;
|
||||
extern LLControlGroup gSavedPerAccountSettings;
|
||||
|
||||
// Read-only
|
||||
@@ -74,6 +76,8 @@ eControlType get_control_type(const T& in, LLSD& out)
|
||||
return TYPE_COUNT;
|
||||
}
|
||||
|
||||
bool handleCloudSettingsChanged(const LLSD& newvalue);
|
||||
|
||||
//! Publish/Subscribe object to interact with LLControlGroups.
|
||||
|
||||
//! An LLCachedControl instance to connect to a LLControlVariable
|
||||
@@ -171,6 +175,12 @@ template <> eControlType get_control_type<LLColor3>(const LLColor3& in, LLSD& ou
|
||||
template <> eControlType get_control_type<LLColor4U>(const LLColor4U& in, LLSD& out);
|
||||
template <> eControlType get_control_type<LLSD>(const LLSD& in, LLSD& out);
|
||||
|
||||
//A template would be a little awkward to use here.. so.. a preprocessor macro. Alas. onCommitControlSetting(gSavedSettings) etc.
|
||||
inline void onCommitControlSetting_gSavedSettings(LLUICtrl* ctrl, void* name) {gSavedSettings.setValue((const char*)name,ctrl->getValue());}
|
||||
inline void onCommitControlSetting_gSavedPerAccountSettings(LLUICtrl* ctrl, void* name) {gSavedPerAccountSettings.setValue((const char*)name,ctrl->getValue());}
|
||||
inline void onCommitControlSetting_gCOASavedSettings(LLUICtrl* ctrl, void* name) {gCOASavedSettings->setValue((const char*)name,ctrl->getValue());}
|
||||
#define onCommitControlSetting(controlgroup) onCommitControlSetting_##controlgroup
|
||||
|
||||
//#define TEST_CACHED_CONTROL 1
|
||||
#ifdef TEST_CACHED_CONTROL
|
||||
void test_cached_control();
|
||||
|
||||
@@ -1299,10 +1299,10 @@ void init_debug_rendering_menu(LLMenuGL* menu)
|
||||
&LLPipeline::toggleRenderTypeControl, NULL,
|
||||
&LLPipeline::hasRenderTypeControl,
|
||||
(void*)LLPipeline::RENDER_TYPE_GRASS, '0', MASK_CONTROL|MASK_ALT|MASK_SHIFT));
|
||||
sub_menu->append(new LLMenuItemCheckGL("Clouds",
|
||||
&LLPipeline::toggleRenderTypeControl, NULL,
|
||||
&LLPipeline::hasRenderTypeControl,
|
||||
(void*)LLPipeline::RENDER_TYPE_CLOUDS, '-', MASK_CONTROL|MASK_ALT| MASK_SHIFT));
|
||||
sub_menu->append(new LLMenuItemCheckGL("Clouds", //This clobbers skyuseclassicclouds, but.. big deal.
|
||||
&LLPipeline::toggleRenderPairedTypeControl, NULL,
|
||||
&LLPipeline::hasRenderPairedTypeControl,
|
||||
(void*)(1<<LLPipeline::RENDER_TYPE_WL_CLOUDS | 1<<LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS), '-', MASK_CONTROL|MASK_ALT| MASK_SHIFT));
|
||||
sub_menu->append(new LLMenuItemCheckGL("Particles",
|
||||
&LLPipeline::toggleRenderTypeControl, NULL,
|
||||
&LLPipeline::hasRenderTypeControl,
|
||||
|
||||
@@ -3470,7 +3470,7 @@ void LLVOAvatar::getClientInfo(std::string& client, LLColor4& color, BOOL useCom
|
||||
std::string uuid_str = getTE(TEX_HEAD_BODYPAINT)->getID().asString(); //UUID of the head texture
|
||||
if (mIsSelf)
|
||||
{
|
||||
BOOL showCustomTag = LLSavedSettingsGlue::getCOABOOL("AscentUseCustomTag");
|
||||
BOOL showCustomTag = gCOASavedSettings->getBOOL("AscentUseCustomTag");
|
||||
if (!gSavedSettings.getBOOL("AscentShowSelfTagColor"))
|
||||
{
|
||||
color = gColors.getColor( "AvatarNameColor" );
|
||||
@@ -3478,12 +3478,12 @@ void LLVOAvatar::getClientInfo(std::string& client, LLColor4& color, BOOL useCom
|
||||
}
|
||||
else if (showCustomTag)
|
||||
{
|
||||
color = LLSavedSettingsGlue::getCOAColor4("AscentCustomTagColor");
|
||||
client = LLSavedSettingsGlue::getCOAString("AscentCustomTagLabel");
|
||||
color = gCOASavedSettings->getColor4("AscentCustomTagColor");
|
||||
client = gCOASavedSettings->getString("AscentCustomTagLabel");
|
||||
return;
|
||||
}
|
||||
else if (gSavedSettings.getBOOL("AscentUseTag"))
|
||||
uuid_str = LLSavedSettingsGlue::getCOAString("AscentReportClientUUID");
|
||||
uuid_str = gCOASavedSettings->getString("AscentReportClientUUID");
|
||||
}
|
||||
if(getTEImage(TEX_HEAD_BODYPAINT)->getID() == IMG_DEFAULT_AVATAR)
|
||||
{
|
||||
@@ -3722,6 +3722,8 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
|
||||
llinfos << "Using Emerald-style client identifier." << llendl;
|
||||
//The old client identification. Used only if the new method doesn't exist, so that it isn't automatically overwritten. -HgB
|
||||
getClientInfo(mClientTag,mClientColor);
|
||||
if(mClientTag == "")
|
||||
client = "?"; //prevent console spam..
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3750,22 +3752,22 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
|
||||
//Lindens are always more Linden than your friend, make that take precedence
|
||||
if(LLMuteList::getInstance()->isLinden(name))
|
||||
{
|
||||
mClientColor = LLSavedSettingsGlue::getCOAColor4("AscentLindenColor").getValue();
|
||||
mClientColor = gCOASavedSettings->getColor4("AscentLindenColor").getValue();
|
||||
}*/
|
||||
//check if they are an estate owner at their current position
|
||||
else if(estate_owner.notNull() && this->getID() == estate_owner)
|
||||
{
|
||||
mClientColor = LLSavedSettingsGlue::getCOAColor4("AscentEstateOwnerColor").getValue();
|
||||
mClientColor = gCOASavedSettings->getColor4("AscentEstateOwnerColor").getValue();
|
||||
}
|
||||
//without these dots, SL would suck.
|
||||
else if (LLAvatarTracker::instance().getBuddyInfo(this->getID()) != NULL)
|
||||
{
|
||||
mClientColor = LLSavedSettingsGlue::getCOAColor4("AscentFriendColor");
|
||||
mClientColor = gCOASavedSettings->getColor4("AscentFriendColor");
|
||||
}
|
||||
//big fat jerkface who is probably a jerk, display them as such.
|
||||
else if(LLMuteList::getInstance()->isMuted(this->getID()))
|
||||
{
|
||||
mClientColor = LLSavedSettingsGlue::getCOAColor4("AscentMutedColor").getValue();
|
||||
mClientColor = gCOASavedSettings->getColor4("AscentMutedColor").getValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ BOOL LLVOClouds::isActive() const
|
||||
|
||||
BOOL LLVOClouds::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time)
|
||||
{
|
||||
if (!(gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLOUDS)))
|
||||
if (!(gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS)))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
@@ -110,7 +110,7 @@ LLDrawable* LLVOClouds::createDrawable(LLPipeline *pipeline)
|
||||
{
|
||||
pipeline->allocDrawable(this);
|
||||
mDrawable->setLit(FALSE);
|
||||
mDrawable->setRenderType(LLPipeline::RENDER_TYPE_CLOUDS);
|
||||
mDrawable->setRenderType(LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS);
|
||||
|
||||
return mDrawable;
|
||||
}
|
||||
@@ -118,7 +118,7 @@ LLDrawable* LLVOClouds::createDrawable(LLPipeline *pipeline)
|
||||
BOOL LLVOClouds::updateGeometry(LLDrawable *drawable)
|
||||
{
|
||||
LLFastTimer ftm(LLFastTimer::FTM_UPDATE_CLOUDS);
|
||||
if (!(gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLOUDS)))
|
||||
if (!(gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS)))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
@@ -286,7 +286,7 @@ void LLVOClouds::updateDrawable(BOOL force_damped)
|
||||
|
||||
LLCloudPartition::LLCloudPartition()
|
||||
{
|
||||
mDrawableType = LLPipeline::RENDER_TYPE_CLOUDS;
|
||||
mDrawableType = LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS;
|
||||
mPartitionType = LLViewerRegion::PARTITION_CLOUD;
|
||||
}
|
||||
|
||||
|
||||
@@ -4471,6 +4471,25 @@ BOOL LLPipeline::toggleRenderTypeControlNegated(void* data)
|
||||
return !gPipeline.hasRenderType(type);
|
||||
}
|
||||
|
||||
//static
|
||||
BOOL LLPipeline::hasRenderPairedTypeControl(void* data)
|
||||
{
|
||||
U32 typeflags = (U32)(intptr_t)data;
|
||||
return (gPipeline.mRenderTypeMask & typeflags);
|
||||
}
|
||||
|
||||
//static
|
||||
void LLPipeline::toggleRenderPairedTypeControl(void *data)
|
||||
{
|
||||
U32 typeflags = (U32)(intptr_t)data;
|
||||
if(typeflags & RENDER_TYPE_WATER)
|
||||
typeflags |= RENDER_TYPE_VOIDWATER;
|
||||
if( gPipeline.mRenderTypeMask & typeflags)
|
||||
gPipeline.mRenderTypeMask &= ~typeflags;
|
||||
else
|
||||
gPipeline.mRenderTypeMask |= typeflags;
|
||||
}
|
||||
|
||||
//static
|
||||
void LLPipeline::toggleRenderDebug(void* data)
|
||||
{
|
||||
@@ -5752,7 +5771,8 @@ void LLPipeline::renderDeferredLighting()
|
||||
U32 render_mask = mRenderTypeMask;
|
||||
mRenderTypeMask = mRenderTypeMask &
|
||||
((1 << LLPipeline::RENDER_TYPE_SKY) |
|
||||
(1 << LLPipeline::RENDER_TYPE_CLOUDS) |
|
||||
(1 << LLPipeline::RENDER_TYPE_WL_CLOUDS) |
|
||||
(1 << LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS) |
|
||||
(1 << LLPipeline::RENDER_TYPE_WL_SKY) |
|
||||
(1 << LLPipeline::RENDER_TYPE_ALPHA) |
|
||||
(1 << LLPipeline::RENDER_TYPE_AVATAR) |
|
||||
@@ -5909,7 +5929,8 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
|
||||
updateCull(camera, result);
|
||||
stateSort(camera, result);
|
||||
mRenderTypeMask = tmp & ((1 << LLPipeline::RENDER_TYPE_SKY) |
|
||||
(1 << LLPipeline::RENDER_TYPE_CLOUDS) |
|
||||
(1 << LLPipeline::RENDER_TYPE_WL_CLOUDS) |
|
||||
(1 << LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS) |
|
||||
(1 << LLPipeline::RENDER_TYPE_WL_SKY));
|
||||
renderGeom(camera, TRUE);
|
||||
mRenderTypeMask = tmp;
|
||||
@@ -5921,7 +5942,8 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
|
||||
(1<<LLPipeline::RENDER_TYPE_VOIDWATER) |
|
||||
(1<<LLPipeline::RENDER_TYPE_GROUND) |
|
||||
(1<<LLPipeline::RENDER_TYPE_SKY) |
|
||||
(1<<LLPipeline::RENDER_TYPE_CLOUDS));
|
||||
(1<<LLPipeline::RENDER_TYPE_WL_CLOUDS) |
|
||||
(1<<LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS));
|
||||
|
||||
if (gSavedSettings.getBOOL("RenderWaterReflections"))
|
||||
{ //mask out selected geometry based on reflection detail
|
||||
@@ -5974,7 +5996,8 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
|
||||
{
|
||||
mRenderTypeMask &= ~((1<<LLPipeline::RENDER_TYPE_GROUND) |
|
||||
(1<<LLPipeline::RENDER_TYPE_SKY) |
|
||||
(1<<LLPipeline::RENDER_TYPE_CLOUDS) |
|
||||
(1<<LLPipeline::RENDER_TYPE_WL_CLOUDS) |
|
||||
(1<<LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS) |
|
||||
(1<<LLPipeline::RENDER_TYPE_WL_SKY));
|
||||
}
|
||||
LLViewerCamera::updateFrustumPlanes(camera);
|
||||
|
||||
@@ -256,6 +256,8 @@ public:
|
||||
static void toggleRenderDebugFeature(void* data);
|
||||
static void toggleRenderTypeControl(void* data);
|
||||
static BOOL toggleRenderTypeControlNegated(void* data);
|
||||
static BOOL hasRenderPairedTypeControl(void* data);
|
||||
static void toggleRenderPairedTypeControl(void* data);
|
||||
static BOOL toggleRenderDebugControl(void* data);
|
||||
static BOOL toggleRenderDebugFeatureControl(void* data);
|
||||
|
||||
@@ -323,7 +325,8 @@ public:
|
||||
RENDER_TYPE_HUD = LLDrawPool::NUM_POOL_TYPES,
|
||||
RENDER_TYPE_VOLUME,
|
||||
RENDER_TYPE_PARTICLES,
|
||||
RENDER_TYPE_CLOUDS,
|
||||
RENDER_TYPE_WL_CLOUDS,
|
||||
RENDER_TYPE_CLASSIC_CLOUDS,
|
||||
RENDER_TYPE_HUD_PARTICLES
|
||||
};
|
||||
|
||||
|
||||
@@ -311,7 +311,12 @@ Use #f for user's first name, #l for last name,
|
||||
label="Enable Clouds" left="10"
|
||||
mouse_opaque="true" name="enable_clouds" radio_style="false"
|
||||
width="400" />
|
||||
<check_box bottom_delta="-20" control_name="SpeedRez" enabled="true"
|
||||
<check_box bottom_delta="-20" left_delta="10" control_name="SkyUseClassicClouds" enabled="true"
|
||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
|
||||
label="Enable Classic Clouds" left="10"
|
||||
mouse_opaque="true" name="enable_classic_clouds" radio_style="false"
|
||||
width="400" />
|
||||
<check_box bottom_delta="-20" left_delta="-10" control_name="SpeedRez" enabled="true"
|
||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="false"
|
||||
label="Enable speed-rezzing via draw distance stepping" left="10"
|
||||
mouse_opaque="true" name="speed_rez_check" radio_style="false"
|
||||
|
||||
Reference in New Issue
Block a user