SL-15039 Prune unused preferences #2
List of removed preferences (usused per statistics): BottomPanelNew BrowserHomePage BlockSomeAvatarAppearanceVisualParams ButtonHPad ButtonHeight ButtonHeightSmall CacheNumberOfRegionsForObjects ChatBarStealsFocus ChatLoadGroupTimeout ChatPersistTime ChatShowTimestamps ContextConeInAlpha ContextConeOutAlpha ContextConeFadeTime ConversationHistoryPageSize ContactsTornOff CurlMaximumNumberOfHandles CurlUseMultipleThreads CustomServer DebugShowPrivateMemmaster
parent
d00b6e4216
commit
a53d111cfa
|
|
@ -58,10 +58,10 @@ static LLDefaultChildRegistry::Register<LLButton> r("button");
|
|||
template class LLButton* LLView::getChild<class LLButton>(
|
||||
const std::string& name, BOOL recurse) const;
|
||||
|
||||
// globals loaded from settings.xml
|
||||
S32 LLBUTTON_H_PAD = 0;
|
||||
S32 BTN_HEIGHT_SMALL= 0;
|
||||
S32 BTN_HEIGHT = 0;
|
||||
// globals
|
||||
S32 LLBUTTON_H_PAD = 4;
|
||||
S32 BTN_HEIGHT_SMALL= 23;
|
||||
S32 BTN_HEIGHT = 23;
|
||||
|
||||
LLButton::Params::Params()
|
||||
: label_selected("label_selected"), // requires is_toggle true
|
||||
|
|
@ -91,8 +91,8 @@ LLButton::Params::Params()
|
|||
image_overlay_disabled_color("image_overlay_disabled_color", LLColor4::white % 0.3f),
|
||||
image_overlay_selected_color("image_overlay_selected_color", LLColor4::white),
|
||||
flash_color("flash_color"),
|
||||
pad_right("pad_right", LLUI::getInstance()->mSettingGroups["config"]->getS32("ButtonHPad")),
|
||||
pad_left("pad_left", LLUI::getInstance()->mSettingGroups["config"]->getS32("ButtonHPad")),
|
||||
pad_right("pad_right", LLBUTTON_H_PAD),
|
||||
pad_left("pad_left", LLBUTTON_H_PAD),
|
||||
pad_bottom("pad_bottom"),
|
||||
click_callback("click_callback"),
|
||||
mouse_down_callback("mouse_down_callback"),
|
||||
|
|
|
|||
|
|
@ -61,6 +61,10 @@ const BOOL CLOSE_NO = FALSE;
|
|||
const BOOL ADJUST_VERTICAL_YES = TRUE;
|
||||
const BOOL ADJUST_VERTICAL_NO = FALSE;
|
||||
|
||||
const F32 CONTEXT_CONE_IN_ALPHA = 0.f;
|
||||
const F32 CONTEXT_CONE_OUT_ALPHA = 1.f;
|
||||
const F32 CONTEXT_CONE_FADE_TIME = .08f;
|
||||
|
||||
namespace LLFloaterEnums
|
||||
{
|
||||
enum EOpenPositioning
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@
|
|||
LLMenuHolderGL *LLMenuGL::sMenuContainer = NULL;
|
||||
view_listener_t::listener_map_t view_listener_t::sListeners;
|
||||
|
||||
S32 MENU_BAR_HEIGHT = 0;
|
||||
S32 MENU_BAR_WIDTH = 0;
|
||||
S32 MENU_BAR_HEIGHT = 18;
|
||||
S32 MENU_BAR_WIDTH = 410;
|
||||
|
||||
///============================================================================
|
||||
/// Local function declarations, constants, enums, and typedefs
|
||||
|
|
|
|||
|
|
@ -1497,8 +1497,6 @@ DECL_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));
|
|||
LLSD test_llsd = LLSD()["testing1"] = LLSD()["testing2"];
|
||||
DECL_LLCC(LLSD, test_llsd);
|
||||
|
||||
static LLCachedControl<std::string> test_BrowserHomePage("BrowserHomePage", "hahahahahha", "Not the real comment");
|
||||
|
||||
void test_cached_control()
|
||||
{
|
||||
#define TEST_LLCC(T, V) if((T)mySetting_##T != V) LL_ERRS() << "Fail "#T << LL_ENDL
|
||||
|
|
@ -1515,8 +1513,6 @@ void test_cached_control()
|
|||
TEST_LLCC(LLColor3, LLColor3(1.0f, 0.f, 0.5f));
|
||||
TEST_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));
|
||||
//There's no LLSD comparsion for LLCC yet. TEST_LLCC(LLSD, test_llsd);
|
||||
|
||||
if((std::string)test_BrowserHomePage != "http://www.secondlife.com") LL_ERRS() << "Fail BrowserHomePage" << LL_ENDL;
|
||||
}
|
||||
#endif // TEST_CACHED_CONTROL
|
||||
|
||||
|
|
|
|||
|
|
@ -632,28 +632,6 @@
|
|||
<key>Value</key>
|
||||
<integer>40</integer>
|
||||
</map>
|
||||
<key>BottomPanelNew</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Enable the new bottom panel</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>BrowserHomePage</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>[NOT USED]</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>http://www.secondlife.com</string>
|
||||
</map>
|
||||
<key>BrowserIgnoreSSLCertErrors</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -687,17 +665,6 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>BlockSomeAvatarAppearanceVisualParams</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Drop around 50% of VisualParam occurances in appearance messages (for simulating Ruth)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>BrowserProxyAddress</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -1127,39 +1094,6 @@
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>ButtonHPad</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Default horizontal spacing between buttons (pixels)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>4</integer>
|
||||
</map>
|
||||
<key>ButtonHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Default height for normal buttons (pixels)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>23</integer>
|
||||
</map>
|
||||
<key>ButtonHeightSmall</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Default height for small buttons (pixels)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>23</integer>
|
||||
</map>
|
||||
<key>EnableDiskCacheDebugInfo</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -1215,17 +1149,6 @@
|
|||
<key>Value</key>
|
||||
<string />
|
||||
</map>
|
||||
<key>CacheNumberOfRegionsForObjects</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Controls number of regions to be cached for objects.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>U32</string>
|
||||
<key>Value</key>
|
||||
<integer>128</integer>
|
||||
</map>
|
||||
<key>CacheSize</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -1510,17 +1433,6 @@
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>ChatBarStealsFocus</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Whenever keyboard focus is removed from the UI, and the chat bar is visible, the chat bar takes focus</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>LetterKeysFocusChatBar</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -1587,17 +1499,6 @@
|
|||
<key>Value</key>
|
||||
<integer>100</integer>
|
||||
</map>
|
||||
<key>ChatLoadGroupTimeout</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Time we give the server to send group participants before we hit the server for group info (seconds)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>10.0</real>
|
||||
</map>
|
||||
<key>ChatOnlineNotification</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -1609,28 +1510,6 @@
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>ChatPersistTime</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Time for which chat stays visible in console (seconds)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>20.0</real>
|
||||
</map>
|
||||
<key>ChatShowTimestamps</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Show timestamps in chat</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>CheesyBeacon</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -1653,50 +1532,6 @@
|
|||
<key>Value</key>
|
||||
<string />
|
||||
</map>
|
||||
<key>ContextConeInAlpha</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Cone In Alpha</string>
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>0.0</real>
|
||||
</map>
|
||||
<key>ContextConeOutAlpha</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Cone Out Alpha</string>
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>1.0</real>
|
||||
</map>
|
||||
<key>ContextConeFadeTime</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Cone Fade Time</string>
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>.08</real>
|
||||
</map>
|
||||
<key>ConversationHistoryPageSize</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Chat history of conversation opened from call log is displayed by pages. So this is number of entries per page.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>100</integer>
|
||||
</map>
|
||||
<key>ConversationSortOrder</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -1875,17 +1710,6 @@
|
|||
<key>Value</key>
|
||||
<integer>40</integer>
|
||||
</map>
|
||||
<key>ContactsTornOff</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Show contacts window separately from Communicate window.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>CookiesEnabled</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -2007,17 +1831,6 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>CurlMaximumNumberOfHandles</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Maximum number of handles curl can use (requires restart)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>256</integer>
|
||||
</map>
|
||||
<key>CurlRequestTimeOut</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -2028,17 +1841,6 @@
|
|||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>120.0</real>
|
||||
</map>
|
||||
<key>CurlUseMultipleThreads</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Use background threads for executing curl_multi_perform (requires restart)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>Cursor3D</key>
|
||||
<map>
|
||||
|
|
@ -2062,17 +1864,6 @@
|
|||
<key>Value</key>
|
||||
<string></string>
|
||||
</map>
|
||||
<key>CustomServer</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Specifies IP address or hostname of grid to which you connect</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string />
|
||||
</map>
|
||||
<key>DebugAnimatedObjects</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -2315,18 +2106,6 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>DebugShowPrivateMem</key>
|
||||
<!-- deprecated (see MAINT-8091) -->
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>(Deprecated) Show Private Mem Info</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>DebugShowRenderInfo</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -3317,28 +3096,6 @@
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>ClickActionBuyEnabled</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Enable click to buy actions in tool pie menu</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>ClickActionPayEnabled</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Enable click to pay actions in tool pie menu</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>DoubleClickAutoPilot</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -6476,28 +6233,6 @@
|
|||
<key>Value</key>
|
||||
<real>0.25</real>
|
||||
</map>
|
||||
<key>MenuBarHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string />
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>18</integer>
|
||||
</map>
|
||||
<key>MenuBarWidth</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string />
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>410</integer>
|
||||
</map>
|
||||
<key>MePanelOpened</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -7151,17 +6886,6 @@
|
|||
<key>Value</key>
|
||||
<integer>90</integer>
|
||||
</map>
|
||||
<key>ChannelBottomPanelMargin</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Space from a lower toast to the Bottom Tray</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>35</integer>
|
||||
</map>
|
||||
<key>NotificationChannelRightMargin</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
@ -7839,17 +7563,6 @@
|
|||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>6.0</real>
|
||||
</map>
|
||||
<key>ClothingLoadingDelay</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Time to wait for avatar appearance to resolve before showing world (seconds)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>10.0</real>
|
||||
</map>
|
||||
<key>PreferredMaturity</key>
|
||||
<map>
|
||||
|
|
@ -12790,17 +12503,6 @@
|
|||
<key>Value</key>
|
||||
<string></string>
|
||||
</map>
|
||||
<key>BingTranslateAPIKey</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>(Deprecated) Bing AppID to use with the Microsoft Translator API</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string></string>
|
||||
</map>
|
||||
<key>AzureTranslateAPIKey</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -528,13 +528,6 @@ bool create_text_segment_icon_from_url_match(LLUrlMatch* match,LLTextBase* base)
|
|||
// or for things that are performance critical. JC
|
||||
static void settings_to_globals()
|
||||
{
|
||||
LLBUTTON_H_PAD = gSavedSettings.getS32("ButtonHPad");
|
||||
BTN_HEIGHT_SMALL = gSavedSettings.getS32("ButtonHeightSmall");
|
||||
BTN_HEIGHT = gSavedSettings.getS32("ButtonHeight");
|
||||
|
||||
MENU_BAR_HEIGHT = gSavedSettings.getS32("MenuBarHeight");
|
||||
MENU_BAR_WIDTH = gSavedSettings.getS32("MenuBarWidth");
|
||||
|
||||
LLSurface::setTextureSize(gSavedSettings.getU32("RegionTextureSize"));
|
||||
|
||||
LLRender::sGLCoreProfile = gSavedSettings.getBOOL("RenderGLContextCoreProfile");
|
||||
|
|
@ -4271,7 +4264,8 @@ bool LLAppViewer::initCache()
|
|||
|
||||
LLAppViewer::getTextureCache()->initCache(LL_PATH_CACHE, texture_cache_size, texture_cache_mismatch);
|
||||
|
||||
LLVOCache::getInstance()->initCache(LL_PATH_CACHE, gSavedSettings.getU32("CacheNumberOfRegionsForObjects"), getObjectCacheVersion());
|
||||
const U32 CACHE_NUMBER_OF_REGIONS_FOR_OBJECTS = 128;
|
||||
LLVOCache::getInstance()->initCache(LL_PATH_CACHE, CACHE_NUMBER_OF_REGIONS_FOR_OBJECTS, getObjectCacheVersion());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,15 +107,11 @@ LLFloaterAvatarPicker::LLFloaterAvatarPicker(const LLSD& key)
|
|||
mCloseOnSelect(FALSE),
|
||||
mExcludeAgentFromSearchResults(FALSE),
|
||||
mContextConeOpacity (0.f),
|
||||
mContextConeInAlpha(0.f),
|
||||
mContextConeOutAlpha(0.f),
|
||||
mContextConeFadeTime(0.f)
|
||||
mContextConeInAlpha(CONTEXT_CONE_IN_ALPHA),
|
||||
mContextConeOutAlpha(CONTEXT_CONE_OUT_ALPHA),
|
||||
mContextConeFadeTime(CONTEXT_CONE_FADE_TIME)
|
||||
{
|
||||
mCommitCallbackRegistrar.add("Refresh.FriendList", boost::bind(&LLFloaterAvatarPicker::populateFriend, this));
|
||||
|
||||
mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha");
|
||||
mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha");
|
||||
mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");
|
||||
}
|
||||
|
||||
BOOL LLFloaterAvatarPicker::postBuild()
|
||||
|
|
|
|||
|
|
@ -102,9 +102,9 @@ LLFloaterColorPicker::LLFloaterColorPicker (LLColorSwatchCtrl* swatch, BOOL show
|
|||
mActive ( TRUE ),
|
||||
mCanApplyImmediately ( show_apply_immediate ),
|
||||
mContextConeOpacity ( 0.f ),
|
||||
mContextConeInAlpha ( 0.f ),
|
||||
mContextConeOutAlpha ( 0.f ),
|
||||
mContextConeFadeTime ( 0.f )
|
||||
mContextConeInAlpha (CONTEXT_CONE_IN_ALPHA),
|
||||
mContextConeOutAlpha (CONTEXT_CONE_OUT_ALPHA),
|
||||
mContextConeFadeTime (CONTEXT_CONE_FADE_TIME)
|
||||
{
|
||||
buildFromFile ( "floater_color_picker.xml");
|
||||
|
||||
|
|
@ -116,10 +116,6 @@ LLFloaterColorPicker::LLFloaterColorPicker (LLColorSwatchCtrl* swatch, BOOL show
|
|||
mApplyImmediateCheck->setEnabled(FALSE);
|
||||
mApplyImmediateCheck->set(FALSE);
|
||||
}
|
||||
|
||||
mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha");
|
||||
mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha");
|
||||
mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");
|
||||
}
|
||||
|
||||
LLFloaterColorPicker::~LLFloaterColorPicker()
|
||||
|
|
|
|||
|
|
@ -37,13 +37,14 @@
|
|||
|
||||
const std::string LL_FCP_COMPLETE_NAME("complete_name");
|
||||
const std::string LL_FCP_ACCOUNT_NAME("user_name");
|
||||
const S32 CONVERSATION_HISTORY_PAGE_SIZE = 100;
|
||||
|
||||
LLFloaterConversationPreview::LLFloaterConversationPreview(const LLSD& session_id)
|
||||
: LLFloater(session_id),
|
||||
mChatHistory(NULL),
|
||||
mSessionID(session_id.asUUID()),
|
||||
mCurrentPage(0),
|
||||
mPageSize(gSavedSettings.getS32("ConversationHistoryPageSize")),
|
||||
mPageSize(CONVERSATION_HISTORY_PAGE_SIZE),
|
||||
mAccountName(session_id[LL_FCP_ACCOUNT_NAME]),
|
||||
mCompleteName(session_id[LL_FCP_COMPLETE_NAME]),
|
||||
mMutex(),
|
||||
|
|
|
|||
|
|
@ -88,13 +88,10 @@ LLFloaterExperiencePicker::LLFloaterExperiencePicker( const LLSD& key )
|
|||
:LLFloater(key)
|
||||
,mSearchPanel(NULL)
|
||||
,mContextConeOpacity(0.f)
|
||||
,mContextConeInAlpha(0.f)
|
||||
,mContextConeOutAlpha(0.f)
|
||||
,mContextConeFadeTime(0.f)
|
||||
,mContextConeInAlpha(CONTEXT_CONE_IN_ALPHA)
|
||||
,mContextConeOutAlpha(CONTEXT_CONE_OUT_ALPHA)
|
||||
,mContextConeFadeTime(CONTEXT_CONE_FADE_TIME)
|
||||
{
|
||||
mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha");
|
||||
mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha");
|
||||
mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");
|
||||
}
|
||||
|
||||
LLFloaterExperiencePicker::~LLFloaterExperiencePicker()
|
||||
|
|
|
|||
|
|
@ -170,8 +170,9 @@ void LLScreenChannelBase::init(S32 channel_left, S32 channel_right)
|
|||
|
||||
void LLScreenChannelBase::updateRect()
|
||||
{
|
||||
const S32 CHANNEL_BOTTOM_PANEL_MARGIN = 35;
|
||||
S32 channel_top = getChannelRect().mTop;
|
||||
S32 channel_bottom = getChannelRect().mBottom + gSavedSettings.getS32("ChannelBottomPanelMargin");
|
||||
S32 channel_bottom = getChannelRect().mBottom + CHANNEL_BOTTOM_PANEL_MARGIN;
|
||||
S32 channel_left = getRect().mLeft;
|
||||
S32 channel_right = getRect().mRight;
|
||||
setRect(LLRect(channel_left, channel_top, channel_right, channel_bottom));
|
||||
|
|
|
|||
|
|
@ -74,13 +74,10 @@ LLSetKeyBindDialog::LLSetKeyBindDialog(const LLSD& key)
|
|||
pUpdater(NULL),
|
||||
mLastMaskKey(0),
|
||||
mContextConeOpacity(0.f),
|
||||
mContextConeInAlpha(0.f),
|
||||
mContextConeOutAlpha(0.f),
|
||||
mContextConeFadeTime(0.f)
|
||||
mContextConeInAlpha(CONTEXT_CONE_IN_ALPHA),
|
||||
mContextConeOutAlpha(CONTEXT_CONE_OUT_ALPHA),
|
||||
mContextConeFadeTime(CONTEXT_CONE_FADE_TIME)
|
||||
{
|
||||
mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha");
|
||||
mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha");
|
||||
mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime");
|
||||
}
|
||||
|
||||
LLSetKeyBindDialog::~LLSetKeyBindDialog()
|
||||
|
|
|
|||
|
|
@ -2215,7 +2215,7 @@ bool idle_startup()
|
|||
static LLFrameTimer wearables_timer;
|
||||
|
||||
const F32 wearables_time = wearables_timer.getElapsedTimeF32();
|
||||
static LLCachedControl<F32> max_wearables_time(gSavedSettings, "ClothingLoadingDelay");
|
||||
const F32 MAX_WEARABLES_TIME = 10.f;
|
||||
|
||||
if (!gAgent.isOutfitChosen() && isAgentAvatarValid())
|
||||
{
|
||||
|
|
@ -2234,7 +2234,7 @@ bool idle_startup()
|
|||
|
||||
display_startup();
|
||||
|
||||
if (gAgent.isOutfitChosen() && (wearables_time > max_wearables_time))
|
||||
if (gAgent.isOutfitChosen() && (wearables_time > MAX_WEARABLES_TIME))
|
||||
{
|
||||
if (gInventory.isInventoryUsable())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@ LLToolPie::LLToolPie()
|
|||
mMouseSteerX(-1),
|
||||
mMouseSteerY(-1),
|
||||
mClickAction(0),
|
||||
mClickActionBuyEnabled( gSavedSettings.getBOOL("ClickActionBuyEnabled") ),
|
||||
mClickActionPayEnabled( gSavedSettings.getBOOL("ClickActionPayEnabled") ),
|
||||
mClickActionBuyEnabled( TRUE ),
|
||||
mClickActionPayEnabled( TRUE ),
|
||||
mDoubleClickTimer()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -370,15 +370,6 @@ static bool handleChatFontSizeChanged(const LLSD& newvalue)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool handleChatPersistTimeChanged(const LLSD& newvalue)
|
||||
{
|
||||
if(gConsole)
|
||||
{
|
||||
gConsole->setLinePersistTime((F32) newvalue.asReal());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool handleConsoleMaxLinesChanged(const LLSD& newvalue)
|
||||
{
|
||||
if(gConsole)
|
||||
|
|
@ -804,7 +795,6 @@ void settings_setup_listeners()
|
|||
setting_setup_signal_listener(gSavedSettings, "RenderPerformanceTest", handleRenderPerfTestChanged);
|
||||
setting_setup_signal_listener(gSavedSettings, "TextureMemory", handleVideoMemoryChanged);
|
||||
setting_setup_signal_listener(gSavedSettings, "ChatFontSize", handleChatFontSizeChanged);
|
||||
setting_setup_signal_listener(gSavedSettings, "ChatPersistTime", handleChatPersistTimeChanged);
|
||||
setting_setup_signal_listener(gSavedSettings, "ConsoleMaxLines", handleConsoleMaxLinesChanged);
|
||||
setting_setup_signal_listener(gSavedSettings, "UploadBakedTexOld", handleUploadBakedTexOldChanged);
|
||||
setting_setup_signal_listener(gSavedSettings, "UseOcclusion", handleUseOcclusionChanged);
|
||||
|
|
@ -933,8 +923,6 @@ DECL_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));
|
|||
LLSD test_llsd = LLSD()["testing1"] = LLSD()["testing2"];
|
||||
DECL_LLCC(LLSD, test_llsd);
|
||||
|
||||
static LLCachedControl<std::string> test_BrowserHomePage("BrowserHomePage", "hahahahahha", "Not the real comment");
|
||||
|
||||
void test_cached_control()
|
||||
{
|
||||
#define do { TEST_LLCC(T, V) if((T)mySetting_##T != V) LL_ERRS() << "Fail "#T << LL_ENDL; } while(0)
|
||||
|
|
@ -951,8 +939,6 @@ void test_cached_control()
|
|||
TEST_LLCC(LLColor3, LLColor3(1.0f, 0.f, 0.5f));
|
||||
TEST_LLCC(LLColor4U, LLColor4U(255, 200, 100, 255));
|
||||
//There's no LLSD comparsion for LLCC yet. TEST_LLCC(LLSD, test_llsd);
|
||||
|
||||
if((std::string)test_BrowserHomePage != "http://www.secondlife.com") LL_ERRS() << "Fail BrowserHomePage" << LL_ENDL;
|
||||
}
|
||||
#endif // TEST_CACHED_CONTROL
|
||||
|
||||
|
|
|
|||
|
|
@ -2148,13 +2148,15 @@ void LLViewerWindow::initBase()
|
|||
gFloaterView->setFloaterSnapView(main_view->getChild<LLView>("floater_snap_region")->getHandle());
|
||||
gSnapshotFloaterView = main_view->getChild<LLSnapshotFloaterView>("Snapshot Floater View");
|
||||
|
||||
const F32 CHAT_PERSIST_TIME = 20.f;
|
||||
|
||||
// Console
|
||||
llassert( !gConsole );
|
||||
LLConsole::Params cp;
|
||||
cp.name("console");
|
||||
cp.max_lines(gSavedSettings.getS32("ConsoleBufferSize"));
|
||||
cp.rect(getChatConsoleRect());
|
||||
cp.persist_time(gSavedSettings.getF32("ChatPersistTime"));
|
||||
cp.persist_time(CHAT_PERSIST_TIME);
|
||||
cp.font_size_index(gSavedSettings.getS32("ChatFontSize"));
|
||||
cp.follows.flags(FOLLOWS_LEFT | FOLLOWS_RIGHT | FOLLOWS_BOTTOM);
|
||||
gConsole = LLUICtrlFactory::create<LLConsole>(cp);
|
||||
|
|
|
|||
|
|
@ -9262,9 +9262,7 @@ void LLVOAvatar::parseAppearanceMessage(LLMessageSystem* mesgsys, LLAppearanceMe
|
|||
|
||||
// Parse visual params, if any.
|
||||
S32 num_blocks = mesgsys->getNumberOfBlocksFast(_PREHASH_VisualParam);
|
||||
static LLCachedControl<bool> block_some_avatars(gSavedSettings, "BlockSomeAvatarAppearanceVisualParams");
|
||||
bool drop_visual_params_debug = block_some_avatars && (ll_rand(2) == 0); // pretend that ~12% of AvatarAppearance messages arrived without a VisualParam block, for testing
|
||||
if( num_blocks > 1 && !drop_visual_params_debug)
|
||||
if( num_blocks > 1)
|
||||
{
|
||||
//LL_DEBUGS("Avatar") << avString() << " handle visual params, num_blocks " << num_blocks << LL_ENDL;
|
||||
|
||||
|
|
@ -9309,14 +9307,7 @@ void LLVOAvatar::parseAppearanceMessage(LLMessageSystem* mesgsys, LLAppearanceMe
|
|||
}
|
||||
else
|
||||
{
|
||||
if (drop_visual_params_debug)
|
||||
{
|
||||
LL_INFOS() << "Debug-faked lack of parameters on AvatarAppearance for object: " << getID() << LL_ENDL;
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_DEBUGS("Avatar") << "AvatarAppearance msg received without any parameters, object: " << getID() << LL_ENDL;
|
||||
}
|
||||
LL_DEBUGS("Avatar") << "AvatarAppearance msg received without any parameters, object: " << getID() << LL_ENDL;
|
||||
}
|
||||
|
||||
LLVisualParam* appearance_version_param = getVisualParam(11000);
|
||||
|
|
|
|||
Loading…
Reference in New Issue