diff options
author | Leslie Linden <leslie@lindenlab.com> | 2011-10-11 15:54:56 -0700 |
---|---|---|
committer | Leslie Linden <leslie@lindenlab.com> | 2011-10-11 15:54:56 -0700 |
commit | ca9ea840951bcfeaf46f07c9ee0974408c21792a (patch) | |
tree | c3f59eed51922ecbe6d124eafd0dea7917f561e1 /indra/llui/llbutton.cpp | |
parent | 6f39beec9aa7168e6ad6f6e395f451d12b885a80 (diff) |
* Dimmed overlay color on button image overlays to 0.75*alpha when buttons are
unselected.
Diffstat (limited to 'indra/llui/llbutton.cpp')
-rw-r--r-- | indra/llui/llbutton.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index 2e9c7a5d3d..0a7584a576 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -828,6 +828,10 @@ void LLButton::draw() { overlay_color.mV[VALPHA] = 0.5f; } + else if (!getToggleState()) + { + overlay_color.mV[VALPHA] = 0.75f; + } overlay_color.mV[VALPHA] *= alpha; switch(mImageOverlayAlignment) |