diff options
author | Ychebotarev ProductEngine <ychebotarev@productengine.com> | 2010-01-22 15:26:20 +0200 |
---|---|---|
committer | Ychebotarev ProductEngine <ychebotarev@productengine.com> | 2010-01-22 15:26:20 +0200 |
commit | a63a1afea649433ae5e50b668fcdd6b43df93c40 (patch) | |
tree | cae7775867ccf342a38b9cd6520e0181e1c2c495 /indra/llui/llbutton.cpp | |
parent | 682fd146b0978363e6264569c74e018f0cb971fa (diff) | |
parent | 951d6e9d8ce636ae01aab37f7e67c7389ebcea11 (diff) |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/llui/llbutton.cpp')
-rw-r--r-- | indra/llui/llbutton.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index e9f6288f44..9ce8ce8d55 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -1022,6 +1022,20 @@ void LLButton::setImageOverlay(const std::string& image_name, LLFontGL::HAlign a } } +void LLButton::setImageOverlay(const LLUUID& image_id, LLFontGL::HAlign alignment, const LLColor4& color) +{ + if (image_id.isNull()) + { + mImageOverlay = NULL; + } + else + { + mImageOverlay = LLUI::getUIImageByID(image_id); + mImageOverlayAlignment = alignment; + mImageOverlayColor = color; + } +} + void LLButton::onMouseCaptureLost() { resetMouseDownTimer(); |