diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lloverlaybar.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lloverlaybar.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp index d430d17..d0aad25 100644 --- a/linden/indra/newview/lloverlaybar.cpp +++ b/linden/indra/newview/lloverlaybar.cpp | |||
@@ -87,7 +87,7 @@ void* LLOverlayBar::createMediaRemote(void* userdata) | |||
87 | void* LLOverlayBar::createVoiceRemote(void* userdata) | 87 | void* LLOverlayBar::createVoiceRemote(void* userdata) |
88 | { | 88 | { |
89 | LLOverlayBar *self = (LLOverlayBar*)userdata; | 89 | LLOverlayBar *self = (LLOverlayBar*)userdata; |
90 | self->mVoiceRemote = new LLVoiceRemoteCtrl("voice_remote"); | 90 | self->mVoiceRemote = new LLVoiceRemoteCtrl(std::string("voice_remote")); |
91 | return self->mVoiceRemote; | 91 | return self->mVoiceRemote; |
92 | } | 92 | } |
93 | 93 | ||
@@ -120,7 +120,6 @@ BOOL LLOverlayBar::postBuild() | |||
120 | { | 120 | { |
121 | childSetAction("IM Received",onClickIMReceived,this); | 121 | childSetAction("IM Received",onClickIMReceived,this); |
122 | childSetAction("Set Not Busy",onClickSetNotBusy,this); | 122 | childSetAction("Set Not Busy",onClickSetNotBusy,this); |
123 | childSetAction("Release Keys",onClickReleaseKeys,this); | ||
124 | childSetAction("Mouselook",onClickMouselook,this); | 123 | childSetAction("Mouselook",onClickMouselook,this); |
125 | childSetAction("Stand Up",onClickStandUp,this); | 124 | childSetAction("Stand Up",onClickStandUp,this); |
126 | childSetVisible("chat_bar", gSavedSettings.getBOOL("ChatVisible")); | 125 | childSetVisible("chat_bar", gSavedSettings.getBOOL("ChatVisible")); |
@@ -210,17 +209,6 @@ void LLOverlayBar::refresh() | |||
210 | buttons_changed = TRUE; | 209 | buttons_changed = TRUE; |
211 | } | 210 | } |
212 | 211 | ||
213 | BOOL controls_grabbed = gAgent.anyControlGrabbed(); | ||
214 | button = getChild<LLButton>("Release Keys"); | ||
215 | |||
216 | if (button && button->getVisible() != controls_grabbed) | ||
217 | { | ||
218 | button->setVisible(controls_grabbed); | ||
219 | sendChildToFront(button); | ||
220 | moveChildToBackOfTabGroup(button); | ||
221 | buttons_changed = TRUE; | ||
222 | } | ||
223 | |||
224 | BOOL mouselook_grabbed; | 212 | BOOL mouselook_grabbed; |
225 | mouselook_grabbed = gAgent.isControlGrabbed(CONTROL_ML_LBUTTON_DOWN_INDEX) | 213 | mouselook_grabbed = gAgent.isControlGrabbed(CONTROL_ML_LBUTTON_DOWN_INDEX) |
226 | || gAgent.isControlGrabbed(CONTROL_ML_LBUTTON_UP_INDEX); | 214 | || gAgent.isControlGrabbed(CONTROL_ML_LBUTTON_UP_INDEX); |
@@ -296,12 +284,6 @@ void LLOverlayBar::onClickSetNotBusy(void*) | |||
296 | 284 | ||
297 | 285 | ||
298 | // static | 286 | // static |
299 | void LLOverlayBar::onClickReleaseKeys(void*) | ||
300 | { | ||
301 | gAgent.forceReleaseControls(); | ||
302 | } | ||
303 | |||
304 | // static | ||
305 | void LLOverlayBar::onClickResetView(void* data) | 287 | void LLOverlayBar::onClickResetView(void* data) |
306 | { | 288 | { |
307 | handle_reset_view(); | 289 | handle_reset_view(); |
@@ -379,7 +361,7 @@ void LLOverlayBar::toggleMusicPlay(void*) | |||
379 | // stream is stopped, it doesn't return the right thing - commenting out for now. | 361 | // stream is stopped, it doesn't return the right thing - commenting out for now. |
380 | // if ( gAudiop->isInternetStreamPlaying() == 0 ) | 362 | // if ( gAudiop->isInternetStreamPlaying() == 0 ) |
381 | { | 363 | { |
382 | gAudiop->startInternetStream(parcel->getMusicURL().c_str()); | 364 | gAudiop->startInternetStream(parcel->getMusicURL()); |
383 | } | 365 | } |
384 | } | 366 | } |
385 | } | 367 | } |