Satisfy Issue 411: Song list in local chat - not a floater
AnnounceStreamMetadata debug setting. "Announce music stream's metadata in local chat when tuned in" checkbox added to vanity main preferences. Made the words Title and Artist translatable, as well as the "Now playing" string.
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
#include "ascentprefsvan.h"
|
||||
|
||||
//project includes
|
||||
#include "llaudioengine.h" //For gAudiop
|
||||
#include "llstreamingaudio.h" //For LLStreamingAudioInterface
|
||||
#include "llcolorswatch.h"
|
||||
#include "llvoavatarself.h"
|
||||
#include "llagent.h"
|
||||
@@ -54,6 +56,8 @@ LLPrefsAscentVan::LLPrefsAscentVan()
|
||||
{
|
||||
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_ascent_vanity.xml");
|
||||
|
||||
childSetVisible("announce_streaming_metadata", gAudiop && gAudiop->getStreamingAudioImpl() && gAudiop->getStreamingAudioImpl()->supportsMetaData());
|
||||
|
||||
childSetCommitCallback("tag_spoofing_combobox", onCommitClientTag, this);
|
||||
|
||||
childSetCommitCallback("show_my_tag_check", onCommitCheckBox, this);
|
||||
@@ -180,6 +184,7 @@ void LLPrefsAscentVan::refreshValues()
|
||||
mDisableChatAnimation = gSavedSettings.getBOOL("SGDisableChatAnimation");
|
||||
mAddNotReplace = gSavedSettings.getBOOL("LiruAddNotReplace");
|
||||
mTurnAround = gSavedSettings.getBOOL("TurnAroundWhenWalkingBackwards");
|
||||
mAnnounceStreamMetadata = gSavedSettings.getBOOL("AnnounceStreamMetadata");
|
||||
|
||||
//Tags\Colors ----------------------------------------------------------------------------
|
||||
mAscentUseTag = gSavedSettings.getBOOL("AscentUseTag");
|
||||
@@ -256,6 +261,7 @@ void LLPrefsAscentVan::cancel()
|
||||
gSavedSettings.setBOOL("SGDisableChatAnimation", mDisableChatAnimation);
|
||||
gSavedSettings.setBOOL("LiruAddNotReplace", mAddNotReplace);
|
||||
gSavedSettings.setBOOL("TurnAroundWhenWalkingBackwards", mTurnAround);
|
||||
gSavedSettings.setBOOL("AnnounceStreamMetadata", mAnnounceStreamMetadata);
|
||||
|
||||
//Tags\Colors ----------------------------------------------------------------------------
|
||||
gSavedSettings.setBOOL("AscentUseTag", mAscentUseTag);
|
||||
|
||||
Reference in New Issue
Block a user