diff options
| author | Rider Linden <rider@lindenlab.com> | 2018-12-12 14:07:56 -0800 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2018-12-12 14:07:56 -0800 |
| commit | 9475a593a170f0c90a8d353de3e1277f844ee913 (patch) | |
| tree | 1d32cc3383b13fc51e2f6b7f03d50b7e0f63aa1b /indra/llui/llmultisliderctrl.cpp | |
| parent | 70ac8d9fa7049891ed1b65f68f112127dfb5f5f7 (diff) | |
| parent | 1cc8286c2097fb0896d40df6fe8ef311fa4c92ef (diff) | |
Merge
Diffstat (limited to 'indra/llui/llmultisliderctrl.cpp')
| -rw-r--r-- | indra/llui/llmultisliderctrl.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llui/llmultisliderctrl.cpp b/indra/llui/llmultisliderctrl.cpp index 972567ef9b..20e2b569f1 100644 --- a/indra/llui/llmultisliderctrl.cpp +++ b/indra/llui/llmultisliderctrl.cpp @@ -293,6 +293,17 @@ const std::string& LLMultiSliderCtrl::addSlider(F32 val) return name; } +bool LLMultiSliderCtrl::addSlider(F32 val, const std::string& name) +{ + bool res = mMultiSlider->addSlider(val, name); + if (res) + { + mCurValue = mMultiSlider->getCurSliderValue(); + updateText(); + } + return res; +} + void LLMultiSliderCtrl::deleteSlider(const std::string& name) { mMultiSlider->deleteSlider(name); |
