CHUI-345 ADDITIONAL FIX (LLConversationViewSession: enable speaking indicator)

- Clicking on the conversation speaking icon brings up the volume floater for voice conversations
meow-7.2.2
Paul ProductEngine 2012-09-28 15:02:31 +03:00
parent 78e6b910a5
commit 3e3735c16b
6 changed files with 109 additions and 1 deletions

View File

@ -197,6 +197,7 @@ set(viewer_SOURCE_FILES
llfloaterbuycurrencyhtml.cpp
llfloaterbuyland.cpp
llfloatercamera.cpp
llfloaterchatvoicevolume.cpp
llfloatercolorpicker.cpp
llfloaterconversationlog.cpp
llfloaterconversationpreview.cpp
@ -781,6 +782,7 @@ set(viewer_HEADER_FILES
llfloaterbuycurrencyhtml.h
llfloaterbuyland.h
llfloatercamera.h
llfloaterchatvoicevolume.h
llfloatercolorpicker.h
llfloaterconversationlog.h
llfloaterconversationpreview.h

View File

@ -0,0 +1,26 @@
/*
* llfloaterchatvoicevolume.cpp
*
* Created on: Sep 27, 2012
* Author: pguslisty
*/
#include "llviewerprecompiledheaders.h"
#include "llfloaterchatvoicevolume.h"
LLFloaterChatVoiceVolume::LLFloaterChatVoiceVolume(const LLSD& key)
: LLInspect(key)
{
}
void LLFloaterChatVoiceVolume::onOpen(const LLSD& key)
{
LLInspect::onOpen(key);
LLUI::positionViewNearMouse(this);
}
LLFloaterChatVoiceVolume::~LLFloaterChatVoiceVolume()
{
LLTransientFloaterMgr::getInstance()->removeControlView(this);
};

View File

@ -0,0 +1,26 @@
/*
* llfloaterchatvoicevolume.h
*
* Created on: Sep 27, 2012
* Author: pguslisty
*/
#ifndef LLFLOATERCHATVOICEVOLUME_H_
#define LLFLOATERCHATVOICEVOLUME_H_
#include "llinspect.h"
#include "lltransientfloatermgr.h"
class LLFloaterChatVoiceVolume : public LLInspect, LLTransientFloater
{
public:
LLFloaterChatVoiceVolume(const LLSD& key);
virtual ~LLFloaterChatVoiceVolume();
virtual void onOpen(const LLSD& key);
/*virtual*/ LLTransientFloaterMgr::ETransientGroup getGroup() { return LLTransientFloaterMgr::GLOBAL; }
};
#endif /* LLFLOATERCHATVOICEVOLUME_H_ */

View File

@ -264,10 +264,14 @@ void LLOutputMonitorCtrl::draw()
// virtual
BOOL LLOutputMonitorCtrl::handleMouseUp(S32 x, S32 y, MASK mask)
{
if (mSpeakerId != gAgentID)
if (mSpeakerId != gAgentID && !mShowParticipantsSpeaking)
{
LLFloaterReg::showInstance("floater_voice_volume", LLSD().with("avatar_id", mSpeakerId));
}
else if(mShowParticipantsSpeaking)
{
LLFloaterReg::showInstance("chat_voice", LLSD());
}
return TRUE;
}

View File

@ -50,6 +50,7 @@
#include "llfloaterbump.h"
#include "llfloaterbvhpreview.h"
#include "llfloatercamera.h"
#include "llfloaterchatvoicevolume.h"
#include "llfloaterconversationlog.h"
#include "llfloaterconversationpreview.h"
#include "llfloaterdeleteenvpreset.h"
@ -192,6 +193,7 @@ void LLViewerFloaterReg::registerFloaters()
LLFloaterReg::add("bumps", "floater_bumps.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterBump>);
LLFloaterReg::add("camera", "floater_camera.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterCamera>);
LLFloaterReg::add("chat_voice", "floater_voice_chat_volume.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterChatVoiceVolume>);
LLFloaterReg::add("nearby_chat", "floater_im_session.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLNearbyChat>);
LLFloaterReg::add("compile_queue", "floater_script_queue.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterCompileQueue>);
LLFloaterReg::add("conversation", "floater_conversation_log.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterConversationLog>);

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater
legacy_header_height="25"
bevel_style="in"
bg_opaque_image="Inspector_Background"
can_close="false"
can_minimize="false"
height="90"
layout="topleft"
name="floater_voice_volume"
single_instance="true"
sound_flags="0"
title="VOICE CHAT VOLUME"
visible="true"
width="245">
<slider
control_name="AudioLevelVoice"
disabled_control="MuteAudio"
follows="left|top"
height="16"
increment="0.025"
initial_value="0.5"
label="Voice Chat"
label_width="50"
layout="topleft"
left="15"
top="50"
name="chat_voice_volume"
show_text="false"
slider_label.halign="right"
volume="true"
width="200">
</slider>
<button
control_name="MuteVoice"
disabled_control="MuteAudio"
follows="top|left"
height="16"
image_selected="AudioMute_Off"
image_unselected="Audio_Off"
is_toggle="true"
layout="topleft"
left_pad="5"
name="mute_audio"
tab_stop="false"
width="16" />
</floater>