diff options
-rw-r--r-- | ChangeLog.txt | 7 | ||||
-rw-r--r-- | linden/indra/newview/lloverlaybar.cpp | 7 | ||||
-rw-r--r-- | linden/indra/newview/lloverlaybar.h | 3 | ||||
-rw-r--r-- | linden/indra/newview/llviewerparcelmgr.cpp | 2 |
4 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 2932ab4..4348a3e 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -13,6 +13,13 @@ | |||
13 | * linden/indra/newview/skins/default/xui/en-us/alerts.xml: | 13 | * linden/indra/newview/skins/default/xui/en-us/alerts.xml: |
14 | Ditto. | 14 | Ditto. |
15 | 15 | ||
16 | * linden/indra/newview/lloverlaybar.cpp: | ||
17 | Fixed music button not toggling on first run. | ||
18 | * linden/indra/newview/lloverlaybar.h: | ||
19 | Ditto. | ||
20 | * linden/indra/newview/llviewerparcelmgr.cpp: | ||
21 | Ditto. | ||
22 | |||
16 | 23 | ||
17 | 2009-02-13 McCabe Maxsted <hakushakukun@gmail.com> | 24 | 2009-02-13 McCabe Maxsted <hakushakukun@gmail.com> |
18 | 25 | ||
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp index 1087fd8..80cac14 100644 --- a/linden/indra/newview/lloverlaybar.cpp +++ b/linden/indra/newview/lloverlaybar.cpp | |||
@@ -275,6 +275,7 @@ void LLOverlayBar::refresh() | |||
275 | { | 275 | { |
276 | layoutButtons(); | 276 | layoutButtons(); |
277 | } | 277 | } |
278 | |||
278 | } | 279 | } |
279 | 280 | ||
280 | //----------------------------------------------------------------------- | 281 | //----------------------------------------------------------------------- |
@@ -360,6 +361,12 @@ void LLOverlayBar::toggleMediaPlay(void*) | |||
360 | } | 361 | } |
361 | 362 | ||
362 | //static | 363 | //static |
364 | void LLOverlayBar::musicFirstRun() | ||
365 | { | ||
366 | gOverlayBar->mMusicState = PLAYING; | ||
367 | } | ||
368 | |||
369 | //static | ||
363 | void LLOverlayBar::toggleMusicPlay(void*) | 370 | void LLOverlayBar::toggleMusicPlay(void*) |
364 | { | 371 | { |
365 | if (!gOverlayBar) | 372 | if (!gOverlayBar) |
diff --git a/linden/indra/newview/lloverlaybar.h b/linden/indra/newview/lloverlaybar.h index 5880ff0..73d0a43 100644 --- a/linden/indra/newview/lloverlaybar.h +++ b/linden/indra/newview/lloverlaybar.h | |||
@@ -80,6 +80,9 @@ public: | |||
80 | static void musicStop(void*); | 80 | static void musicStop(void*); |
81 | static void mediaStop(void*); | 81 | static void mediaStop(void*); |
82 | 82 | ||
83 | // hack to make sure the music button plays. | ||
84 | static void musicFirstRun(); | ||
85 | |||
83 | static void toggleAudioVolumeFloater(void*); | 86 | static void toggleAudioVolumeFloater(void*); |
84 | 87 | ||
85 | protected: | 88 | protected: |
diff --git a/linden/indra/newview/llviewerparcelmgr.cpp b/linden/indra/newview/llviewerparcelmgr.cpp index e27e284..2dee2bf 100644 --- a/linden/indra/newview/llviewerparcelmgr.cpp +++ b/linden/indra/newview/llviewerparcelmgr.cpp | |||
@@ -1720,6 +1720,8 @@ void callback_start_music(S32 option, void* data) | |||
1720 | // We fetch again to avoid lag while loading. | 1720 | // We fetch again to avoid lag while loading. |
1721 | LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); | 1721 | LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); |
1722 | gAudiop->startInternetStream(parcel->getMusicURL()); | 1722 | gAudiop->startInternetStream(parcel->getMusicURL()); |
1723 | |||
1724 | LLOverlayBar::musicFirstRun(); | ||
1723 | } | 1725 | } |
1724 | gSavedSettings.setWarning("FirstStreamingMusic", FALSE); | 1726 | gSavedSettings.setWarning("FirstStreamingMusic", FALSE); |
1725 | } | 1727 | } |