diff options
author | Mike Antipov <mantipov@productengine.com> | 2009-12-08 13:24:37 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2009-12-08 13:24:37 +0200 |
commit | 7348fbb69af095f073da5ec9bd25c690c80b93f5 (patch) | |
tree | d0a0af4bdd760de51712ffd32a80e7d4ffcc7516 /indra/newview/llchiclet.cpp | |
parent | d36b993e92bb8a69d32407a42b67adf40f1a75ab (diff) |
Completed normal task EXT-3147 (Implement new states for message indicators)
-- Implemented 4 states of button by its background images via force Pressed state. They are:
--- xml attribute Description
--- image_unselected "Unlit" - there are no new messages
--- image_selected "Unlit" + "Selected" - there are no new messages and the Well is open
--- image_pressed "Lit" - there are new messages
--- image_pressed_selected "Lit" + "Selected" - there are new messages and the Well is open
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llchiclet.cpp')
-rw-r--r-- | indra/newview/llchiclet.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index 6d37eaed3d..bd8effd93d 100644 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -120,6 +120,16 @@ void LLSysWellChiclet::setCounter(S32 counter) mButton->setLabel(s_count); mCounter = counter; + + /* + Emulate 4 states of button by background images, see detains in EXT-3147 + xml attribute Description + image_unselected "Unlit" - there are no new messages
+ image_selected "Unlit" + "Selected" - there are no new messages and the Well is open
+ image_pressed "Lit" - there are new messages
+ image_pressed_selected "Lit" + "Selected" - there are new messages and the Well is open + */ + mButton->setForcePressedState(counter > 0); } boost::signals2::connection LLSysWellChiclet::setClickCallback( |