diff options
Diffstat (limited to 'indra')
9 files changed, 86 insertions, 65 deletions
| diff --git a/indra/newview/llinspectavatar.cpp b/indra/newview/llinspectavatar.cpp index 72994a4371..5f9d479b3e 100644 --- a/indra/newview/llinspectavatar.cpp +++ b/indra/newview/llinspectavatar.cpp @@ -403,7 +403,8 @@ void LLInspectAvatar::updateModeratorPanel()  {  	bool enable_moderator_panel = false; -    if (LLVoiceChannel::getCurrentVoiceChannel()) +    if (LLVoiceChannel::getCurrentVoiceChannel() && +		mAvatarID != gAgent.getID())      {  		LLUUID session_id = LLVoiceChannel::getCurrentVoiceChannel()->getSessionID(); @@ -514,42 +515,57 @@ void LLInspectAvatar::toggleSelectedVoice(bool enabled)  void LLInspectAvatar::updateVolumeSlider()  { -	// By convention, we only display and toggle voice mutes, not all mutes -	bool is_muted = LLMuteList::getInstance()-> -						isMuted(mAvatarID, LLMute::flagVoiceChat); -	bool voice_enabled = gVoiceClient->getVoiceEnabled(mAvatarID); -	LLUICtrl* mute_btn = getChild<LLUICtrl>("mute_btn"); -	mute_btn->setEnabled( voice_enabled ); -	mute_btn->setValue( is_muted ); +	bool voice_enabled = gVoiceClient->getVoiceEnabled(mAvatarID); -	LLUICtrl* volume_slider = getChild<LLUICtrl>("volume_slider"); -	volume_slider->setEnabled( voice_enabled && !is_muted ); -	const F32 DEFAULT_VOLUME = 0.5f; -	F32 volume; -	if (is_muted) -	{ -		// it's clearer to display their volume as zero -		volume = 0.f; -	} -	else if (!voice_enabled) +	// Do not display volume slider and mute button if it  +	// is ourself or we are not in a voice channel together +	if (!voice_enabled || (mAvatarID == gAgent.getID()))  	{ -		// use nominal value rather than 0 -		volume = DEFAULT_VOLUME; +		getChild<LLUICtrl>("mute_btn")->setVisible(false); +		getChild<LLUICtrl>("volume_slider")->setVisible(false);  	} -	else + +	else   	{ -		// actual volume -		volume = gVoiceClient->getUserVolume(mAvatarID); +		getChild<LLUICtrl>("mute_btn")->setVisible(true); +		getChild<LLUICtrl>("volume_slider")->setVisible(true); + +		// By convention, we only display and toggle voice mutes, not all mutes +		bool is_muted = LLMuteList::getInstance()-> +							isMuted(mAvatarID, LLMute::flagVoiceChat); -		// *HACK: Voice client doesn't have any data until user actually -		// says something. -		if (volume == 0.f) +		LLUICtrl* mute_btn = getChild<LLUICtrl>("mute_btn"); + +		bool is_linden = LLStringUtil::endsWith(mAvatarName, " Linden"); + +		mute_btn->setEnabled( !is_linden); +		mute_btn->setValue( is_muted ); + +		LLUICtrl* volume_slider = getChild<LLUICtrl>("volume_slider"); +		volume_slider->setEnabled( !is_muted ); +		const F32 DEFAULT_VOLUME = 0.5f; +		F32 volume; +		if (is_muted)  		{ -			volume = DEFAULT_VOLUME; +			// it's clearer to display their volume as zero +			volume = 0.f;  		} +		else +		{ +			// actual volume +			volume = gVoiceClient->getUserVolume(mAvatarID); + +			// *HACK: Voice client doesn't have any data until user actually +			// says something. +			if (volume == 0.f) +			{ +				volume = DEFAULT_VOLUME; +			} +		} +		volume_slider->setValue( (F64)volume );  	} -	volume_slider->setValue( (F64)volume ); +  }  void LLInspectAvatar::onClickMuteVolume() diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index 25e5e23e6f..a5ddb0a620 100644 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -1242,11 +1242,11 @@ void LLTextureCtrl::draw()  		 (mTexturep->getDiscardLevel() != 1) &&  		 (mTexturep->getDiscardLevel() != 0))  	{ -		LLFontGL* font = LLFontGL::getFontSansSerifBig(); +		LLFontGL* font = LLFontGL::getFontSansSerif();  		font->renderUTF8(  			mLoadingPlaceholderString, 0, -			llfloor(interior.mLeft+10),  -			llfloor(interior.mTop-20), +			llfloor(interior.mLeft+3),  +			llfloor(interior.mTop-25),  			LLColor4::white,  			LLFontGL::LEFT,  			LLFontGL::BASELINE, diff --git a/indra/newview/skins/default/xui/en/floater_bulk_perms.xml b/indra/newview/skins/default/xui/en/floater_bulk_perms.xml index 53ae24fe3f..d007ceff98 100644 --- a/indra/newview/skins/default/xui/en/floater_bulk_perms.xml +++ b/indra/newview/skins/default/xui/en/floater_bulk_perms.xml @@ -287,7 +287,7 @@      <button       follows="left|top"       height="23" -     label="Ok" +     label="OK"       layout="topleft"       left="65"       name="apply" diff --git a/indra/newview/skins/default/xui/en/floater_color_picker.xml b/indra/newview/skins/default/xui/en/floater_color_picker.xml index 4380ff8f4b..fbecebc363 100644 --- a/indra/newview/skins/default/xui/en/floater_color_picker.xml +++ b/indra/newview/skins/default/xui/en/floater_color_picker.xml @@ -186,8 +186,8 @@      <button       follows="right|bottom"       height="20" -     label="Ok" -     label_selected="Ok" +     label="OK" +     label_selected="OK"       layout="topleft"       right="-120"       top_delta="9" diff --git a/indra/newview/skins/default/xui/en/floater_mute_object.xml b/indra/newview/skins/default/xui/en/floater_mute_object.xml index 454b1c43b2..22b0a1783f 100644 --- a/indra/newview/skins/default/xui/en/floater_mute_object.xml +++ b/indra/newview/skins/default/xui/en/floater_mute_object.xml @@ -47,7 +47,7 @@      <button       follows="bottom|left"       height="23" -     label="Ok" +     label="OK"       layout="topleft"       left="155"       name="OK" diff --git a/indra/newview/skins/default/xui/en/floater_texture_ctrl.xml b/indra/newview/skins/default/xui/en/floater_texture_ctrl.xml index 695021f755..cad7d72ed7 100644 --- a/indra/newview/skins/default/xui/en/floater_texture_ctrl.xml +++ b/indra/newview/skins/default/xui/en/floater_texture_ctrl.xml @@ -131,8 +131,8 @@           <button       follows="right|bottom"       height="20" -     label="Ok" -     label_selected="Ok" +     label="OK" +     label_selected="OK"       layout="topleft"       right="-120"       name="Select" diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 6d5f0bedb0..410c398ea5 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -157,7 +157,7 @@ No tutorial is currently available.   An error occurred while updating [APP_NAME].  Please [http://get.secondlife.com download the latest version] of the Viewer.      <usetemplate       name="okbutton" -     yestext="Ok"/> +     yestext="OK"/>    </notification>    <notification @@ -169,7 +169,7 @@ Could not connect to the [SECOND_LIFE_GRID].  Make sure your Internet connection is working properly.  	<usetemplate       name="okbutton" -     yestext="Ok"/> +     yestext="OK"/>    </notification>    <notification @@ -179,7 +179,7 @@ Make sure your Internet connection is working properly.  Message Template [PATH] not found.  	<usetemplate       name="okbutton" -     yestext="Ok"/> +     yestext="OK"/>    </notification>    <notification @@ -5793,7 +5793,7 @@ Are you sure you want to close all IMs?      <usetemplate       name="okcancelignore"       notext="Cancel" -     yestext="Ok"/> +     yestext="OK"/>    </notification>    <notification icon="notifytip.tga" diff --git a/indra/newview/skins/default/xui/en/panel_group_notify.xml b/indra/newview/skins/default/xui/en/panel_group_notify.xml index 9b0b81cd0a..65b2e81d50 100644 --- a/indra/newview/skins/default/xui/en/panel_group_notify.xml +++ b/indra/newview/skins/default/xui/en/panel_group_notify.xml @@ -93,7 +93,7 @@       bottom="85"       follows="bottom"       height="20" -     label="Ok" +     label="OK"       layout="topleft"       right="-10"       name="btn_ok" diff --git a/indra/newview/skins/default/xui/en/panel_preferences_setup.xml b/indra/newview/skins/default/xui/en/panel_preferences_setup.xml index 34bd6fb091..2c60271801 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_setup.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_setup.xml @@ -134,20 +134,20 @@  		 parameter="ChangeConnectionPort" />      </check_box>      <spinner -     control_name="BrowserProxyPort" -     enabled_control="BrowserProxyEnabled" +     control_name="ConnectionPort" +     enabled_control="ConnectionPortEnabled"  	 decimal_digits="0"       follows="left|top"       height="23"       increment="1" -     initial_value="80" +     initial_value="13000"       label="Port number:"       label_width="75"       layout="topleft"       left_delta="160" -     max_val="12000" -     min_val="10" -     name="web_proxy_port" +     max_val="13050" +     min_val="13000" +     name="connection_port"       top_delta="-2"       width="140" />      <text @@ -296,7 +296,8 @@       follows="left|top"       height="16"       initial_value="false" -     label="Web proxy" +     control_name="BrowserProxyEnabled"  +     label="Enable Web Proxy"       left_delta="0"       mouse_opaque="true"       name="web_proxy_enabled" @@ -314,30 +315,34 @@       tool_tip="The name or IP address of the proxy you would like to use"       top_pad="4"       width="200" /> -    <button -     follows="left|top" -     height="23" -     enabled="false" -     label="Browse" -     label_selected="Browse" -     layout="topleft" -     left_pad="5" -     name="set_proxy" -     top_pad="-21" -     width="100"> -        <button.commit_callback -         function="Pref.SetCache" /> -    </button>      <text       type="string"       length="1"       follows="left|top"       height="10"       layout="topleft" -     left_delta="-203" +     left_delta="0"       name="Proxy location"       top_delta="20"       width="300"       text_color="LtGray_50">          Proxy location -    </text></panel> +    </text> +  <spinner +     control_name="BrowserProxyPort" +     enabled_control="BrowserProxyEnabled" +	 decimal_digits="0" +     follows="left|top" +     height="23" +     increment="1" +     initial_value="80" +     label="Port number:" +     label_width="75" +     layout="topleft" +     left_delta="230" +     max_val="12000" +     min_val="10" +     name="web_proxy_port" +     top_delta="-20" +     width="140" /> +</panel> | 
