summaryrefslogtreecommitdiff
path: root/indra/newview/llstatusbar.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2009-11-25 10:22:39 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2009-11-25 10:22:39 +0000
commit7c340079ef679fa4b459cbe2ec0404b3a9a911df (patch)
tree4f5c0a445ba7335256b115168afc1d834ded479d /indra/newview/llstatusbar.cpp
parent75b89527932209eff14f62d6f4ee6e44ce1ceb5d (diff)
more attempts to panelize the volume pulldown, but why won't it show?
Diffstat (limited to 'indra/newview/llstatusbar.cpp')
-rw-r--r--indra/newview/llstatusbar.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/indra/newview/llstatusbar.cpp b/indra/newview/llstatusbar.cpp
index 8289930d97..6178ca6da0 100644
--- a/indra/newview/llstatusbar.cpp
+++ b/indra/newview/llstatusbar.cpp
@@ -124,6 +124,7 @@ LLStatusBar::LLStatusBar(const LLRect& rect)
mSGPacketLoss(NULL),
mBtnBuyCurrency(NULL),
mBtnVolume(NULL),
+ mPanelVolume(NULL),
mBalance(0),
mHealth(100),
mSquareMetersCredit(0),
@@ -159,6 +160,8 @@ LLStatusBar::LLStatusBar(const LLRect& rect)
mBtnVolume = getChild<LLButton>( "volume_btn" );
mBtnVolume->setClickedCallback( onClickVolume, this );
+ mPanelVolume = getChild<LLPanel>( "volume_pulldown" );
+
gSavedSettings.getControl("MuteAudio")->getSignal()->connect(boost::bind(&LLStatusBar::onVolumeChanged, this, _2));
childSetAction("scriptout", onClickScriptDebug, this);
@@ -511,10 +514,17 @@ static void onClickVolume(void* data)
gSavedSettings.setBOOL("MuteAudio", !mute_audio);
// toggle the master volume pull-down
+
//LLFloaterReg::showInstance("volume_pulldown"); //tmp
- LLPanelVolumePulldown *foo=
- new LLPanelVolumePulldown();
- foo->setVisible(TRUE);
+ //LLPanelVolumePulldown *foo=
+ //new LLPanelVolumePulldown();
+ //LLPanel* container = getRootView();//->getChild<LLPanel>("nav_bar_container");
+ //container->addChild(foo);
+ LLStatusBar *sb = (LLStatusBar*)(data);
+ llassert_always(sb);
+ sb->mPanelVolume->setRect(LLRect(1,1,100,100));
+ sb->mPanelVolume->setVisible(TRUE);
+ sb->mPanelVolume->setEnabled(TRUE);
}
// sets the static variables necessary for the date