diff options
| author | Vadim Savchuk <vsavchuk@productengine.com> | 2009-11-20 17:44:53 +0200 |
|---|---|---|
| committer | Vadim Savchuk <vsavchuk@productengine.com> | 2009-11-20 17:44:53 +0200 |
| commit | d1ebc5f44d53a47f3e0e849bbaaa4313fd352c01 (patch) | |
| tree | 472f95680810f22bc2cf82efc5d98fafd55277d3 /indra/newview/llspeakbutton.cpp | |
| parent | 7467c005ed3a7269f0247b2551d89c32652953b5 (diff) | |
| parent | 2d9202cb812dec65ec571035389aacd49d19e659 (diff) | |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llspeakbutton.cpp')
| -rw-r--r-- | indra/newview/llspeakbutton.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/newview/llspeakbutton.cpp b/indra/newview/llspeakbutton.cpp index 51d53b2674..54f776ca6a 100644 --- a/indra/newview/llspeakbutton.cpp +++ b/indra/newview/llspeakbutton.cpp @@ -143,6 +143,27 @@ void LLSpeakButton::setShowToolTip(const std::string& msg) mShowBtn->setToolTip(msg); } +void LLSpeakButton::setLabelVisible(bool visible) +{ + static std::string label_selected = mSpeakBtn->getLabelSelected(); + static std::string label_unselected = mSpeakBtn->getLabelUnselected(); + + if (visible) + { + mSpeakBtn->setLabelSelected(label_selected); + mSpeakBtn->setLabelUnselected(label_unselected); + } + else + { + static LLStringExplicit empty_string(""); + mSpeakBtn->setLabelSelected(empty_string); + mSpeakBtn->setLabelUnselected(empty_string); + } +} + +////////////////////////////////////////////////////////////////////////// +/// PROTECTED SECTION +////////////////////////////////////////////////////////////////////////// void LLSpeakButton::onMouseDown_SpeakBtn() { bool down = true; |
