diff options
author | Richard Linden <none@none> | 2013-10-30 00:37:11 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-10-30 00:37:11 -0700 |
commit | ea2494a0839ec02d3889a405306009c2f4f9aea7 (patch) | |
tree | c828040ce7ee994a3bbd8d4393e9f34d0bc0a415 /indra/llui/llstatbar.h | |
parent | 92decff3d41ccd9b517a453da7b42fff2fca268f (diff) |
stats now autoscale back down in range, instead of sticking at high water mark
Diffstat (limited to 'indra/llui/llstatbar.h')
-rwxr-xr-x | indra/llui/llstatbar.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/indra/llui/llstatbar.h b/indra/llui/llstatbar.h index 57e492bc80..89d7ff24ed 100755 --- a/indra/llui/llstatbar.h +++ b/indra/llui/llstatbar.h @@ -44,13 +44,12 @@ public: bar_max, tick_spacing; - Optional<U32> decimal_digits; - Optional<bool> show_bar, show_history, scale_range; - Optional<S32> num_frames, + Optional<S32> decimal_digits, + num_frames, num_frames_short, max_height; Optional<std::string> stat; @@ -67,7 +66,7 @@ public: void setStat(const std::string& stat_name); void setRange(F32 bar_min, F32 bar_max); - void getRange(F32& bar_min, F32& bar_max) { bar_min = mMinBar; bar_max = mMaxBar; } + void getRange(F32& bar_min, F32& bar_max) { bar_min = mTargetMinBar; bar_max = mTargetMaxBar; } /*virtual*/ LLRect getRequiredRect(); // Return the height of this object, given the set options. @@ -75,20 +74,18 @@ private: void drawLabelAndValue( F32 mean, std::string &unit_label, LLRect &bar_rect, S32 decimal_digits ); void drawTicks( F32 min, F32 max, F32 value_scale, LLRect &bar_rect ); - F32 mMinBar, - mMaxBar, + F32 mTargetMinBar, + mTargetMaxBar, + mFloatingTargetMinBar, + mFloatingTargetMaxBar, mCurMaxBar, mCurMinBar, - mLabelSpacing; - F32 mTickValue; - U32 mDecimalDigits; - S32 mNumHistoryFrames, + mLabelSpacing, + mTickSpacing; + S32 mDecimalDigits, + mNumHistoryFrames, mNumShortHistoryFrames; S32 mMaxHeight; - bool mDisplayBar, // Display the bar graph. - mDisplayHistory, - mAutoScaleMax, - mAutoScaleMin; EOrientation mOrientation; F32 mLastDisplayValue; LLFrameTimer mLastDisplayValueTimer; @@ -113,6 +110,11 @@ private: LLUIString mLabel; std::string mUnitLabel; + + bool mDisplayBar, // Display the bar graph. + mDisplayHistory, + mAutoScaleMax, + mAutoScaleMin; }; #endif |