diff options
author | Rider Linden <rider@lindenlab.com> | 2018-12-21 15:30:57 -0800 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2018-12-21 15:30:57 -0800 |
commit | 8227a0b270f6e7cc521adeb7b97ad2d5fb646973 (patch) | |
tree | f03d3a12f94c503350dd11b7167b541a98306757 /indra/llui/llmultislider.cpp | |
parent | 634910f685057c50ae3233d9f71d4b21cf958749 (diff) |
SL-10279: Rework the environment pannel. Still in progress.
Diffstat (limited to 'indra/llui/llmultislider.cpp')
-rw-r--r-- | indra/llui/llmultislider.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llui/llmultislider.cpp b/indra/llui/llmultislider.cpp index ed93b3d44c..f30ce28b9d 100644 --- a/indra/llui/llmultislider.cpp +++ b/indra/llui/llmultislider.cpp @@ -306,6 +306,15 @@ F32 LLMultiSlider::getSliderValueFromPos(S32 xpos, S32 ypos) const return((t * (mMaxValue - mMinValue)) + mMinValue); } + +LLRect LLMultiSlider::getSliderThumbRect(const std::string& name) const +{ + auto it = mThumbRects.find(name); + if (it != mThumbRects.end()) + return (*it).second; + return LLRect(); +} + void LLMultiSlider::resetCurSlider() { mCurSlider = LLStringUtil::null; |