diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lloverlaybar.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp index 9f3776f..6191a01 100644 --- a/linden/indra/newview/lloverlaybar.cpp +++ b/linden/indra/newview/lloverlaybar.cpp | |||
@@ -37,6 +37,7 @@ | |||
37 | 37 | ||
38 | #include "lloverlaybar.h" | 38 | #include "lloverlaybar.h" |
39 | 39 | ||
40 | #include "aoremotectrl.h" | ||
40 | #include "audioengine.h" | 41 | #include "audioengine.h" |
41 | #include "llrender.h" | 42 | #include "llrender.h" |
42 | #include "llagent.h" | 43 | #include "llagent.h" |
@@ -148,6 +149,13 @@ void* LLOverlayBar::createWindlightRemote(void* userdata) | |||
148 | return self->mWindlightRemote; | 149 | return self->mWindlightRemote; |
149 | } | 150 | } |
150 | 151 | ||
152 | void* LLOverlayBar::createAORemote(void* userdata) | ||
153 | { | ||
154 | LLOverlayBar *self = (LLOverlayBar*)userdata; | ||
155 | self->mAORemote = new AORemoteCtrl(); | ||
156 | return self->mAORemote; | ||
157 | } | ||
158 | |||
151 | void* LLOverlayBar::createChatBar(void* userdata) | 159 | void* LLOverlayBar::createChatBar(void* userdata) |
152 | { | 160 | { |
153 | gChatBar = new LLChatBar(); | 161 | gChatBar = new LLChatBar(); |
@@ -159,6 +167,7 @@ LLOverlayBar::LLOverlayBar() | |||
159 | mMediaRemote(NULL), | 167 | mMediaRemote(NULL), |
160 | mVoiceRemote(NULL), | 168 | mVoiceRemote(NULL), |
161 | mWindlightRemote(NULL), | 169 | mWindlightRemote(NULL), |
170 | mAORemote(NULL), | ||
162 | mMusicState(STOPPED), | 171 | mMusicState(STOPPED), |
163 | mOriginalIMLabel("") | 172 | mOriginalIMLabel("") |
164 | { | 173 | { |
@@ -171,6 +180,7 @@ LLOverlayBar::LLOverlayBar() | |||
171 | factory_map["media_remote"] = LLCallbackMap(LLOverlayBar::createMediaRemote, this); | 180 | factory_map["media_remote"] = LLCallbackMap(LLOverlayBar::createMediaRemote, this); |
172 | factory_map["voice_remote"] = LLCallbackMap(LLOverlayBar::createVoiceRemote, this); | 181 | factory_map["voice_remote"] = LLCallbackMap(LLOverlayBar::createVoiceRemote, this); |
173 | factory_map["windlight_remote"] = LLCallbackMap(LLOverlayBar::createWindlightRemote, this); | 182 | factory_map["windlight_remote"] = LLCallbackMap(LLOverlayBar::createWindlightRemote, this); |
183 | factory_map["ao_remote"] = LLCallbackMap(LLOverlayBar::createAORemote, this); | ||
174 | factory_map["chat_bar"] = LLCallbackMap(LLOverlayBar::createChatBar, this); | 184 | factory_map["chat_bar"] = LLCallbackMap(LLOverlayBar::createChatBar, this); |
175 | 185 | ||
176 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_overlaybar.xml", &factory_map); | 186 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_overlaybar.xml", &factory_map); |
@@ -330,7 +340,7 @@ void LLOverlayBar::refresh() | |||
330 | buttons_changed = TRUE; | 340 | buttons_changed = TRUE; |
331 | } | 341 | } |
332 | 342 | ||
333 | 343 | moveChildToBackOfTabGroup(mAORemote); | |
334 | moveChildToBackOfTabGroup(mWindlightRemote); | 344 | moveChildToBackOfTabGroup(mWindlightRemote); |
335 | moveChildToBackOfTabGroup(mMediaRemote); | 345 | moveChildToBackOfTabGroup(mMediaRemote); |
336 | moveChildToBackOfTabGroup(mVoiceRemote); | 346 | moveChildToBackOfTabGroup(mVoiceRemote); |
@@ -341,6 +351,7 @@ void LLOverlayBar::refresh() | |||
341 | childSetVisible("media_remote_container", FALSE); | 351 | childSetVisible("media_remote_container", FALSE); |
342 | childSetVisible("voice_remote_container", FALSE); | 352 | childSetVisible("voice_remote_container", FALSE); |
343 | childSetVisible("windlight_remote_container", FALSE); | 353 | childSetVisible("windlight_remote_container", FALSE); |
354 | childSetVisible("ao_remote_container", FALSE); | ||
344 | childSetVisible("state_buttons", FALSE); | 355 | childSetVisible("state_buttons", FALSE); |
345 | } | 356 | } |
346 | else | 357 | else |
@@ -349,6 +360,7 @@ void LLOverlayBar::refresh() | |||
349 | childSetVisible("media_remote_container", TRUE); | 360 | childSetVisible("media_remote_container", TRUE); |
350 | childSetVisible("voice_remote_container", LLVoiceClient::voiceEnabled()); | 361 | childSetVisible("voice_remote_container", LLVoiceClient::voiceEnabled()); |
351 | childSetVisible("windlight_remote_container", gSavedSettings.getBOOL("EnableWindlightRemote")); | 362 | childSetVisible("windlight_remote_container", gSavedSettings.getBOOL("EnableWindlightRemote")); |
363 | childSetVisible("ao_remote_container", gSavedSettings.getBOOL("EnableAORemote")); | ||
352 | childSetVisible("state_buttons", TRUE); | 364 | childSetVisible("state_buttons", TRUE); |
353 | } | 365 | } |
354 | 366 | ||