diff options
Diffstat (limited to 'linden/indra/llui/llbutton.cpp')
-rw-r--r-- | linden/indra/llui/llbutton.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/llui/llbutton.cpp b/linden/indra/llui/llbutton.cpp index 1a6c705..702e34e 100644 --- a/linden/indra/llui/llbutton.cpp +++ b/linden/indra/llui/llbutton.cpp | |||
@@ -840,6 +840,11 @@ void LLButton::setColor(const LLColor4& color) | |||
840 | setImageColor(color); | 840 | setImageColor(color); |
841 | } | 841 | } |
842 | 842 | ||
843 | void LLButton::setAlpha(F32 alpha) | ||
844 | { | ||
845 | mImageColor.setAlpha(alpha); | ||
846 | mDisabledImageColor.setAlpha(alpha * 0.5f); | ||
847 | } | ||
843 | 848 | ||
844 | void LLButton::setImageDisabled(LLPointer<LLUIImage> image) | 849 | void LLButton::setImageDisabled(LLPointer<LLUIImage> image) |
845 | { | 850 | { |