diff options
Diffstat (limited to 'linden/indra/newview/llviewerwindow.cpp')
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index 43a0d19..3a68f0f 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -298,7 +298,9 @@ public: | |||
298 | U32 ypos = 64; | 298 | U32 ypos = 64; |
299 | const U32 y_inc = 20; | 299 | const U32 y_inc = 20; |
300 | 300 | ||
301 | if (gSavedSettings.getBOOL("DebugShowTime")) | 301 | static BOOL *sDebugShowTime = rebind_llcontrol<BOOL>("DebugShowTime", &gSavedSettings, true); |
302 | |||
303 | if(*sDebugShowTime) | ||
302 | { | 304 | { |
303 | const U32 y_inc2 = 15; | 305 | const U32 y_inc2 = 15; |
304 | for (std::map<S32,LLFrameTimer>::reverse_iterator iter = gDebugTimers.rbegin(); | 306 | for (std::map<S32,LLFrameTimer>::reverse_iterator iter = gDebugTimers.rbegin(); |
@@ -513,8 +515,10 @@ public: | |||
513 | addText(xpos, ypos, llformat("%d %d %d %d", color[0], color[1], color[2], color[3])); | 515 | addText(xpos, ypos, llformat("%d %d %d %d", color[0], color[1], color[2], color[3])); |
514 | ypos += y_inc; | 516 | ypos += y_inc; |
515 | } | 517 | } |
518 | static BOOL* sBeaconsEnabled = rebind_llcontrol<BOOL>("BeaconsEnabled", &gSavedSettings, true); | ||
519 | |||
516 | // only display these messages if we are actually rendering beacons at this moment | 520 | // only display these messages if we are actually rendering beacons at this moment |
517 | if (LLPipeline::getRenderBeacons(NULL) && gSavedSettings.getBOOL("BeaconsEnabled")) | 521 | if (LLPipeline::getRenderBeacons(NULL) && *sBeaconsEnabled) |
518 | { | 522 | { |
519 | if (LLPipeline::getRenderParticleBeacons(NULL)) | 523 | if (LLPipeline::getRenderParticleBeacons(NULL)) |
520 | { | 524 | { |
@@ -2048,7 +2052,9 @@ void LLViewerWindow::draw() | |||
2048 | //S32 screen_x, screen_y; | 2052 | //S32 screen_x, screen_y; |
2049 | 2053 | ||
2050 | // HACK for timecode debugging | 2054 | // HACK for timecode debugging |
2051 | if (gSavedSettings.getBOOL("DisplayTimecode")) | 2055 | static BOOL* sDisplayTimecode = rebind_llcontrol<BOOL>("DisplayTimecode", &gSavedSettings, true); |
2056 | |||
2057 | if (*sDisplayTimecode) | ||
2052 | { | 2058 | { |
2053 | // draw timecode block | 2059 | // draw timecode block |
2054 | std::string text; | 2060 | std::string text; |
@@ -2509,7 +2515,9 @@ BOOL LLViewerWindow::handlePerFrameHover() | |||
2509 | 2515 | ||
2510 | LLVector2 mouse_vel; | 2516 | LLVector2 mouse_vel; |
2511 | 2517 | ||
2512 | if (gSavedSettings.getBOOL("MouseSmooth")) | 2518 | static BOOL* sMouseSmooth = rebind_llcontrol<BOOL>("MouseSmooth", &gSavedSettings, true); |
2519 | |||
2520 | if (*sMouseSmooth) | ||
2513 | { | 2521 | { |
2514 | static F32 fdx = 0.f; | 2522 | static F32 fdx = 0.f; |
2515 | static F32 fdy = 0.f; | 2523 | static F32 fdy = 0.f; |
@@ -2664,7 +2672,9 @@ BOOL LLViewerWindow::handlePerFrameHover() | |||
2664 | // Show a new tool tip (or update one that is alrady shown) | 2672 | // Show a new tool tip (or update one that is alrady shown) |
2665 | BOOL tool_tip_handled = FALSE; | 2673 | BOOL tool_tip_handled = FALSE; |
2666 | std::string tool_tip_msg; | 2674 | std::string tool_tip_msg; |
2667 | F32 tooltip_delay = gSavedSettings.getF32( "ToolTipDelay" ); | 2675 | static F32 *sToolTipDelay = rebind_llcontrol<F32>("ToolTipDelay", &gSavedSettings, true); |
2676 | |||
2677 | F32 tooltip_delay = (*sToolTipDelay); | ||
2668 | //HACK: hack for tool-based tooltips which need to pop up more quickly | 2678 | //HACK: hack for tool-based tooltips which need to pop up more quickly |
2669 | //Also for show xui names as tooltips debug mode | 2679 | //Also for show xui names as tooltips debug mode |
2670 | if ((mouse_captor && !mouse_captor->isView()) || LLUI::sShowXUINames) | 2680 | if ((mouse_captor && !mouse_captor->isView()) || LLUI::sShowXUINames) |
@@ -2715,9 +2725,10 @@ BOOL LLViewerWindow::handlePerFrameHover() | |||
2715 | { | 2725 | { |
2716 | mToolTip->setVisible( tooltip_vis ); | 2726 | mToolTip->setVisible( tooltip_vis ); |
2717 | } | 2727 | } |
2718 | } | 2728 | } |
2729 | static BOOL* sFreezeTime = rebind_llcontrol<BOOL>("FreezeTime", &gSavedSettings, true); | ||
2719 | 2730 | ||
2720 | if (tool && tool != gToolNull && tool != LLToolCompInspect::getInstance() && tool != LLToolDragAndDrop::getInstance() && !gSavedSettings.getBOOL("FreezeTime")) | 2731 | if (tool && tool != gToolNull && tool != LLToolCompInspect::getInstance() && tool != LLToolDragAndDrop::getInstance() && !(*sFreezeTime)) |
2721 | { | 2732 | { |
2722 | LLMouseHandler *captor = gFocusMgr.getMouseCapture(); | 2733 | LLMouseHandler *captor = gFocusMgr.getMouseCapture(); |
2723 | // With the null, inspect, or drag and drop tool, don't muck | 2734 | // With the null, inspect, or drag and drop tool, don't muck |