aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcontroldef.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llcontroldef.cpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/linden/indra/newview/llcontroldef.cpp b/linden/indra/newview/llcontroldef.cpp
index 351f437..7c3e8d7 100644
--- a/linden/indra/newview/llcontroldef.cpp
+++ b/linden/indra/newview/llcontroldef.cpp
@@ -3,6 +3,8 @@
3 * @author James Cook 3 * @author James Cook
4 * @brief Viewer control settings 4 * @brief Viewer control settings
5 * 5 *
6 * $LicenseInfo:firstyear=2001&license=viewergpl$
7 *
6 * Copyright (c) 2001-2007, Linden Research, Inc. 8 * Copyright (c) 2001-2007, Linden Research, Inc.
7 * 9 *
8 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
@@ -25,6 +27,7 @@
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE. 29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
28 */ 31 */
29 32
30// Put default viewer settings in here 33// Put default viewer settings in here
@@ -333,6 +336,8 @@ void declare_settings()
333 gSavedSettings.declareString("VoiceImageLevel5", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 5"); 336 gSavedSettings.declareString("VoiceImageLevel5", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 5");
334 gSavedSettings.declareString("VoiceImageLevel6", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 6"); 337 gSavedSettings.declareString("VoiceImageLevel6", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 6");
335 338
339 gSavedSettings.declareString("VoiceHost", "127.0.0.1", "Client SLVoice host to connect to");
340 gSavedSettings.declareU32("VoicePort", 44124, "Client SLVoice port to connect to");
336 341
337 //------------------------------------------------------------------------ 342 //------------------------------------------------------------------------
338 // Caution Script Permission Prompts 343 // Caution Script Permission Prompts
@@ -632,6 +637,9 @@ void declare_settings()
632 gSavedSettings.declareBOOL("CreateToolCopyCenters", TRUE, "", NO_PERSIST); 637 gSavedSettings.declareBOOL("CreateToolCopyCenters", TRUE, "", NO_PERSIST);
633 gSavedSettings.declareBOOL("CreateToolCopyRotates", FALSE, "", NO_PERSIST); 638 gSavedSettings.declareBOOL("CreateToolCopyRotates", FALSE, "", NO_PERSIST);
634 639
640 gSavedSettings.declareBOOL("QuietSnapshotsToDisk", FALSE, "Take snapshots to disk without playing animation or sound");
641 gSavedSettings.declareBOOL("DisableCameraConstraints", FALSE, "Disable the normal bounds put on the camera by avatar position");
642
635 //gSavedSettings.declareBOOL("LogTimestamps", FALSE, "[NOT USED]"); 643 //gSavedSettings.declareBOOL("LogTimestamps", FALSE, "[NOT USED]");
636 //gSavedSettings.declareBOOL("AgentUpdateMouseQuery", FALSE, "[NOT USED]"); 644 //gSavedSettings.declareBOOL("AgentUpdateMouseQuery", FALSE, "[NOT USED]");
637 gSavedSettings.declareBOOL("AutoLogin", FALSE, "Login automatically using last username/password combination"); 645 gSavedSettings.declareBOOL("AutoLogin", FALSE, "Login automatically using last username/password combination");
@@ -823,6 +831,9 @@ void declare_settings()
823 gSavedSettings.declareBOOL("KeepAspectForSnapshot", FALSE, "Use full window when taking snapshot, regardless of requested image size" ); 831 gSavedSettings.declareBOOL("KeepAspectForSnapshot", FALSE, "Use full window when taking snapshot, regardless of requested image size" );
824 gSavedSettings.declareBOOL("AutoSnapshot", TRUE, "Update snapshot when camera stops moving, or any parameter changes" ); 832 gSavedSettings.declareBOOL("AutoSnapshot", TRUE, "Update snapshot when camera stops moving, or any parameter changes" );
825 gSavedSettings.declareS32("LastSnapshotType", 0, "Select this as next type of snapshot to take (0 = postcard, 1 = texture, 2 = local image)" ); 833 gSavedSettings.declareS32("LastSnapshotType", 0, "Select this as next type of snapshot to take (0 = postcard, 1 = texture, 2 = local image)" );
834 gSavedSettings.declareS32("LastSnapshotWidth", 1024, "The width of the last snapshot, in px" );
835 gSavedSettings.declareS32("LastSnapshotHeight", 768, "The height of the last snapshot, in px" );
836
826 gSavedSettings.declareS32("SnapshotPostcardLastResolution", 0, "Take next postcard snapshot at this resolution" ); 837 gSavedSettings.declareS32("SnapshotPostcardLastResolution", 0, "Take next postcard snapshot at this resolution" );
827 gSavedSettings.declareS32("SnapshotTextureLastResolution", 0, "Take next texture snapshot at this resolution" ); 838 gSavedSettings.declareS32("SnapshotTextureLastResolution", 0, "Take next texture snapshot at this resolution" );
828 gSavedSettings.declareS32("SnapshotLocalLastResolution", 0, "Take next local snapshot at this resolution" ); 839 gSavedSettings.declareS32("SnapshotLocalLastResolution", 0, "Take next local snapshot at this resolution" );
@@ -912,6 +923,10 @@ void declare_settings()
912 // Map floater 923 // Map floater
913 gSavedSettings.declareRect("FloaterMapRect", LLRect(0, 225, 200, 0), "Rectangle for world map"); 924 gSavedSettings.declareRect("FloaterMapRect", LLRect(0, 225, 200, 0), "Rectangle for world map");
914 925
926 //Lag-o-Meter floater
927 gSavedSettings.declareRect("FloaterLagMeter", LLRect(0, 142, 350, 0), "Rectangle for lag meter");
928 gSavedSettings.declareBOOL("LagMeterShrunk", FALSE, "Last large/small state for lag meter");
929
915 gSavedSettings.declareF32("MapScale", 128.f, "World map zoom level (pixels per region)"); 930 gSavedSettings.declareF32("MapScale", 128.f, "World map zoom level (pixels per region)");
916 931
917 gSavedSettings.declareF32("MiniMapScale", 128.f, "Miniature world map zoom levle (pixels per region)"); 932 gSavedSettings.declareF32("MiniMapScale", 128.f, "Miniature world map zoom levle (pixels per region)");
@@ -1750,13 +1765,13 @@ class LLAudioStreamMusicListener: public LLSimpleListener
1750 { 1765 {
1751 if (gParcelMgr 1766 if (gParcelMgr
1752 && gParcelMgr->getAgentParcel() 1767 && gParcelMgr->getAgentParcel()
1753 && gParcelMgr->getAgentParcel()->getMusicURL()) 1768 && !gParcelMgr->getAgentParcel()->getMusicURL().empty())
1754 { 1769 {
1755 // if stream is already playing, don't call this 1770 // if stream is already playing, don't call this
1756 // otherwise music will briefly stop 1771 // otherwise music will briefly stop
1757 if ( ! gAudiop->isInternetStreamPlaying() ) 1772 if ( ! gAudiop->isInternetStreamPlaying() )
1758 { 1773 {
1759 gAudiop->startInternetStream(gParcelMgr->getAgentParcel()->getMusicURL()); 1774 gAudiop->startInternetStream(gParcelMgr->getAgentParcel()->getMusicURL().c_str());
1760 } 1775 }
1761 } 1776 }
1762 } 1777 }
@@ -1784,8 +1799,8 @@ class LLAudioStreamMediaListener: public LLSimpleListener
1784 gMessageSystem->setHandlerFunc ( "ParcelMediaCommandMessage", LLMediaEngine::process_parcel_media ); 1799 gMessageSystem->setHandlerFunc ( "ParcelMediaCommandMessage", LLMediaEngine::process_parcel_media );
1785 gMessageSystem->setHandlerFunc ( "ParcelMediaUpdate", LLMediaEngine::process_parcel_media_update ); 1800 gMessageSystem->setHandlerFunc ( "ParcelMediaUpdate", LLMediaEngine::process_parcel_media_update );
1786 if ( ( gParcelMgr ) && 1801 if ( ( gParcelMgr ) &&
1787 ( gParcelMgr->getAgentParcel () ) && 1802 ( gParcelMgr->getAgentParcel () ) &&
1788 ( gParcelMgr->getAgentParcel()->getMediaURL () ) ) 1803 ( !gParcelMgr->getAgentParcel()->getMediaURL().empty() ) )
1789 { 1804 {
1790 prepare_video ( gParcelMgr->getAgentParcel () ); 1805 prepare_video ( gParcelMgr->getAgentParcel () );
1791 } 1806 }