diff options
author | James Cook <james@lindenlab.com> | 2009-07-10 00:23:41 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-07-10 00:23:41 +0000 |
commit | 91f9835176d011e963a6df7d183a3f9c093a1989 (patch) | |
tree | 8ff0efbbf5e6579803f2e6ce132c2b7956c6ec22 /indra/newview/lloutputmonitorctrl.h | |
parent | e8bc8264f96d179cccf7cd09de774dd7fb50bc46 (diff) |
DEV-35118 Converted voice volume feedback icon on bottom tray to use real artwork. Converted LLOutputMonitorCtrl to use ParamBlocks to specify art. Added output_monitor.xml to specify art. Bottom bar gives volume feedback even when triggering voice with middle-mouse or keyboard binding. Reviewed with Richard.
Diffstat (limited to 'indra/newview/lloutputmonitorctrl.h')
-rw-r--r-- | indra/newview/lloutputmonitorctrl.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/indra/newview/lloutputmonitorctrl.h b/indra/newview/lloutputmonitorctrl.h index 881ad0f010..e391c14e40 100644 --- a/indra/newview/lloutputmonitorctrl.h +++ b/indra/newview/lloutputmonitorctrl.h @@ -50,14 +50,14 @@ public: struct Params : public LLInitParam::Block<Params, LLView::Params> { Optional<bool> draw_border; + Mandatory<LLUIImage*> image_mute, + image_off, + image_on, + image_level_1, + image_level_2, + image_level_3; - Params() - { - draw_border = true; - name = "output_monitor"; - follows.flags(FOLLOWS_LEFT|FOLLOWS_TOP); - mouse_opaque = false; - }; + Params(); }; protected: bool mBorder; @@ -77,16 +77,22 @@ public: void setIsMuted(bool val) { mIsMuted = val; } private: - static LLColor4 sColorMuted; - static LLColor4 sColorNormal; - static LLColor4 sColorOverdriven; + //static LLColor4 sColorMuted; + //static LLColor4 sColorNormal; + //static LLColor4 sColorOverdriven; static LLColor4 sColorBound; - static S32 sRectsNumber; - static F32 sRectWidthRatio; - static F32 sRectHeightRatio; + //static S32 sRectsNumber; + //static F32 sRectWidthRatio; + //static F32 sRectHeightRatio; F32 mPower; bool mIsMuted; + LLPointer<LLUIImage> mImageMute; + LLPointer<LLUIImage> mImageOff; + LLPointer<LLUIImage> mImageOn; + LLPointer<LLUIImage> mImageLevel1; + LLPointer<LLUIImage> mImageLevel2; + LLPointer<LLUIImage> mImageLevel3; }; #endif |