diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 22 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 6 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 31 | ||||
-rw-r--r-- | linden/indra/newview/llviewerdisplay.cpp | 6 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | 9 |
6 files changed, 68 insertions, 10 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index d300b87..c950973 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -15,6 +15,28 @@ | |||
15 | <key>Value</key> | 15 | <key>Value</key> |
16 | <integer>1</integer> | 16 | <integer>1</integer> |
17 | </map> | 17 | </map> |
18 | <key>DisableLoginLogoutScreens</key> | ||
19 | <map> | ||
20 | <key>Comment</key> | ||
21 | <string>Disable login/logout screen progress bar screens</string> | ||
22 | <key>Persist</key> | ||
23 | <integer>1</integer> | ||
24 | <key>Type</key> | ||
25 | <string>Boolean</string> | ||
26 | <key>Value</key> | ||
27 | <integer>0</integer> | ||
28 | </map> | ||
29 | <key>DisableTeleportScreens</key> | ||
30 | <map> | ||
31 | <key>Comment</key> | ||
32 | <string>Disable teleport screens</string> | ||
33 | <key>Persist</key> | ||
34 | <integer>1</integer> | ||
35 | <key>Type</key> | ||
36 | <string>Boolean</string> | ||
37 | <key>Value</key> | ||
38 | <integer>0</integer> | ||
39 | </map> | ||
18 | <key>ShowStatusBarInMouselook</key> | 40 | <key>ShowStatusBarInMouselook</key> |
19 | <map> | 41 | <map> |
20 | <key>Comment</key> | 42 | <key>Comment</key> |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index e4cd3af..9b7eadf 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -3673,7 +3673,7 @@ void LLAppViewer::idleShutdown() | |||
3673 | static S32 total_uploads = 0; | 3673 | static S32 total_uploads = 0; |
3674 | // Sometimes total upload count can change during logout. | 3674 | // Sometimes total upload count can change during logout. |
3675 | total_uploads = llmax(total_uploads, pending_uploads); | 3675 | total_uploads = llmax(total_uploads, pending_uploads); |
3676 | gViewerWindow->setShowProgress(TRUE); | 3676 | gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("DisableLoginLogoutScreens")); |
3677 | S32 finished_uploads = total_uploads - pending_uploads; | 3677 | S32 finished_uploads = total_uploads - pending_uploads; |
3678 | F32 percent = 100.f * finished_uploads / total_uploads; | 3678 | F32 percent = 100.f * finished_uploads / total_uploads; |
3679 | gViewerWindow->setProgressPercent(percent); | 3679 | gViewerWindow->setProgressPercent(percent); |
@@ -3687,7 +3687,7 @@ void LLAppViewer::idleShutdown() | |||
3687 | sendLogoutRequest(); | 3687 | sendLogoutRequest(); |
3688 | 3688 | ||
3689 | // Wait for a LogoutReply message | 3689 | // Wait for a LogoutReply message |
3690 | gViewerWindow->setShowProgress(TRUE); | 3690 | gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("DisableLoginLogoutScreens")); |
3691 | gViewerWindow->setProgressPercent(100.f); | 3691 | gViewerWindow->setProgressPercent(100.f); |
3692 | gViewerWindow->setProgressString("Logging out..."); | 3692 | gViewerWindow->setProgressString("Logging out..."); |
3693 | return; | 3693 | return; |
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index c25f04b..efb8a27 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "llviewerprecompiledheaders.h" | 31 | #include "llviewerprecompiledheaders.h" |
32 | 32 | ||
33 | #include "llprefsadvanced.h" | 33 | #include "llprefsadvanced.h" |
34 | #include "llviewercontrol.h" | ||
34 | 35 | ||
35 | #include "lluictrlfactory.h" | 36 | #include "lluictrlfactory.h" |
36 | 37 | ||
@@ -46,11 +47,16 @@ LLPrefsAdvanced::~LLPrefsAdvanced() | |||
46 | 47 | ||
47 | BOOL LLPrefsAdvanced::postBuild() | 48 | BOOL LLPrefsAdvanced::postBuild() |
48 | { | 49 | { |
50 | childSetValue("disable_log_screen_check", gSavedSettings.getBOOL("DisableLoginLogoutScreens")); | ||
51 | childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); | ||
52 | |||
49 | return TRUE; | 53 | return TRUE; |
50 | } | 54 | } |
51 | 55 | ||
52 | void LLPrefsAdvanced::apply() | 56 | void LLPrefsAdvanced::apply() |
53 | { | 57 | { |
58 | gSavedSettings.setBOOL("DisableLoginLogoutScreens", childGetValue("disable_log_screen_check")); | ||
59 | gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check")); | ||
54 | } | 60 | } |
55 | 61 | ||
56 | void LLPrefsAdvanced::cancel() | 62 | void LLPrefsAdvanced::cancel() |
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 11bd87b..449e712 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -1008,7 +1008,7 @@ bool idle_startup() | |||
1008 | } | 1008 | } |
1009 | 1009 | ||
1010 | // Display the startup progress bar. | 1010 | // Display the startup progress bar. |
1011 | gViewerWindow->setShowProgress(TRUE); | 1011 | gViewerWindow->setShowProgress(!gSavedSettings.getBOOL("DisableLoginLogoutScreens")); |
1012 | gViewerWindow->setProgressCancelButtonVisible(TRUE, std::string("Quit")); // *TODO: Translate | 1012 | gViewerWindow->setProgressCancelButtonVisible(TRUE, std::string("Quit")); // *TODO: Translate |
1013 | 1013 | ||
1014 | // Poke the VFS, which could potentially block for a while if | 1014 | // Poke the VFS, which could potentially block for a while if |
@@ -2910,13 +2910,34 @@ bool first_run_dialog_callback(const LLSD& notification, const LLSD& response) | |||
2910 | } | 2910 | } |
2911 | 2911 | ||
2912 | 2912 | ||
2913 | 2913 | std::string last_d; | |
2914 | void set_startup_status(const F32 frac, const std::string& string, const std::string& msg) | 2914 | void set_startup_status(const F32 frac, const std::string& string, const std::string& msg) |
2915 | { | 2915 | { |
2916 | gViewerWindow->setProgressPercent(frac*100); | 2916 | if(gSavedSettings.getBOOL("DisableLoginLogoutScreens")) |
2917 | gViewerWindow->setProgressString(string); | 2917 | { |
2918 | std::string new_d = string; | ||
2919 | if(new_d != last_d) | ||
2920 | { | ||
2921 | last_d = new_d; | ||
2922 | LLChat chat; | ||
2923 | chat.mText = new_d; | ||
2924 | chat.mSourceType = (EChatSourceType)(CHAT_SOURCE_OBJECT+1); | ||
2925 | LLFloaterChat::addChat(chat); | ||
2926 | if(new_d == LLTrans::getString("LoginWaitingForRegionHandshake")) | ||
2927 | { | ||
2928 | chat.mText = "MOTD: "+msg; | ||
2929 | chat.mSourceType = (EChatSourceType)(CHAT_SOURCE_OBJECT+1); | ||
2930 | LLFloaterChat::addChat(chat); | ||
2931 | } | ||
2932 | } | ||
2933 | } | ||
2934 | else | ||
2935 | { | ||
2936 | gViewerWindow->setProgressPercent(frac*100); | ||
2937 | gViewerWindow->setProgressString(string); | ||
2918 | 2938 | ||
2919 | gViewerWindow->setProgressMessage(msg); | 2939 | gViewerWindow->setProgressMessage(msg); |
2940 | } | ||
2920 | } | 2941 | } |
2921 | 2942 | ||
2922 | bool login_alert_status(const LLSD& notification, const LLSD& response) | 2943 | bool login_alert_status(const LLSD& notification, const LLSD& response) |
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp index 28d048b..6f7de25 100644 --- a/linden/indra/newview/llviewerdisplay.cpp +++ b/linden/indra/newview/llviewerdisplay.cpp | |||
@@ -348,7 +348,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) | |||
348 | // Transition to REQUESTED. Viewer has sent some kind | 348 | // Transition to REQUESTED. Viewer has sent some kind |
349 | // of TeleportRequest to the source simulator | 349 | // of TeleportRequest to the source simulator |
350 | gTeleportDisplayTimer.reset(); | 350 | gTeleportDisplayTimer.reset(); |
351 | gViewerWindow->setShowProgress(TRUE); | 351 | if(!gSavedSettings.getBOOL("DisableTeleportScreens"))gViewerWindow->setShowProgress(TRUE); |
352 | gViewerWindow->setProgressPercent(0); | 352 | gViewerWindow->setProgressPercent(0); |
353 | gAgent.setTeleportState( LLAgent::TELEPORT_REQUESTED ); | 353 | gAgent.setTeleportState( LLAgent::TELEPORT_REQUESTED ); |
354 | gAgent.setTeleportMessage( | 354 | gAgent.setTeleportMessage( |
@@ -376,14 +376,14 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) | |||
376 | gAgent.setTeleportMessage( | 376 | gAgent.setTeleportMessage( |
377 | LLAgent::sTeleportProgressMessages["arriving"]); | 377 | LLAgent::sTeleportProgressMessages["arriving"]); |
378 | gImageList.mForceResetTextureStats = TRUE; | 378 | gImageList.mForceResetTextureStats = TRUE; |
379 | gAgent.resetView(TRUE, TRUE); | 379 | if(!gSavedSettings.getBOOL("DisableTeleportScreens"))gAgent.resetView(TRUE, TRUE); |
380 | break; | 380 | break; |
381 | 381 | ||
382 | case LLAgent::TELEPORT_ARRIVING: | 382 | case LLAgent::TELEPORT_ARRIVING: |
383 | // Make the user wait while content "pre-caches" | 383 | // Make the user wait while content "pre-caches" |
384 | { | 384 | { |
385 | F32 arrival_fraction = (gTeleportArrivalTimer.getElapsedTimeF32() / TELEPORT_ARRIVAL_DELAY); | 385 | F32 arrival_fraction = (gTeleportArrivalTimer.getElapsedTimeF32() / TELEPORT_ARRIVAL_DELAY); |
386 | if( arrival_fraction > 1.f ) | 386 | if( arrival_fraction > 1.f || gSavedSettings.getBOOL("DisableTeleportScreens")) |
387 | { | 387 | { |
388 | arrival_fraction = 1.f; | 388 | arrival_fraction = 1.f; |
389 | LLFirstUse::useTeleport(); | 389 | LLFirstUse::useTeleport(); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml index 31d1ffd..ba02942 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | |||
@@ -2,4 +2,13 @@ | |||
2 | <panel border="true" bottom="-409" enabled="true" follows="left|top|right|bottom" | 2 | <panel border="true" bottom="-409" enabled="true" follows="left|top|right|bottom" |
3 | height="408" label="Advanced" left="102" mouse_opaque="true" | 3 | height="408" label="Advanced" left="102" mouse_opaque="true" |
4 | name="advanced_panel" width="517"> | 4 | name="advanced_panel" width="517"> |
5 | <check_box bottom="-20" enabled="true" | ||
6 | follows="left|top" font="SansSerifSmall" height="16" | ||
7 | initial_value="false" label="Disable Login/Logout Screens" left="12" | ||
8 | mouse_opaque="true" name="disable_log_screen_check" radio_style="false" | ||
9 | width="217" /> | ||
10 | <check_box bottom_delta="-18" enabled="true" follows="left|top" | ||
11 | font="SansSerifSmall" height="16" initial_value="false" | ||
12 | label="Disable Teleport Screens" left="12" mouse_opaque="true" | ||
13 | name="disable_tp_screen_check" radio_style="false" width="217" /> | ||
5 | </panel> | 14 | </panel> |