diff options
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 33 | ||||
| -rw-r--r-- | indra/newview/app_settings/settings_minimal.xml | 33 | ||||
| -rwxr-xr-x | indra/newview/llfloaterworldmap.cpp | 6 | ||||
| -rwxr-xr-x | indra/newview/llpanelprofile.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/llshareavatarhandler.cpp | 8 | ||||
| -rw-r--r-- | indra/newview/llvoicecallhandler.cpp | 8 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 42 | 
7 files changed, 137 insertions, 0 deletions
| diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 3dedf0ddd7..42fd9929ae 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -12476,6 +12476,39 @@        <key>Value</key>        <integer>1</integer>      </map> +  <key>EnableAvatarPay</key> +  <map> +    <key>Comment</key> +    <string>Enable paying other avatars from web link</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>Boolean</string> +    <key>Value</key> +    <integer>1</integer> +  </map> +  <key>EnableVoiceCall</key> +  <map> +    <key>Comment</key> +    <string>Enable voice calls from web link</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>Boolean</string> +    <key>Value</key> +    <integer>1</integer> +  </map> +  <key>EnableAvatarShare</key> +  <map> +    <key>Comment</key> +    <string>Enable sharing from web link</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>Boolean</string> +    <key>Value</key> +    <integer>1</integer> +  </map>      <key>SearchFromAddressBar</key>      <map>        <key>Comment</key> diff --git a/indra/newview/app_settings/settings_minimal.xml b/indra/newview/app_settings/settings_minimal.xml index 73c865bc9f..4770c7d7e6 100644 --- a/indra/newview/app_settings/settings_minimal.xml +++ b/indra/newview/app_settings/settings_minimal.xml @@ -270,6 +270,39 @@        <key>Value</key>        <integer>0</integer>      </map> +    <key>EnableAvatarPay</key> +    <map> +      <key>Comment</key> +      <string>Enable paying other avatars from web link</string> +      <key>Persist</key> +      <integer>1</integer> +      <key>Type</key> +      <string>Boolean</string> +      <key>Value</key> +      <integer>0</integer> +    </map> +    <key>EnableVoiceCall</key> +    <map> +      <key>Comment</key> +      <string>Enable voice calls from web link</string> +      <key>Persist</key> +      <integer>1</integer> +      <key>Type</key> +      <string>Boolean</string> +      <key>Value</key> +      <integer>0</integer> +    </map> +    <key>EnableAvatarShare</key> +    <map> +      <key>Comment</key> +      <string>Enable sharing from web link</string> +      <key>Persist</key> +      <integer>1</integer> +      <key>Type</key> +      <string>Boolean</string> +      <key>Value</key> +      <integer>0</integer> +    </map>      <key>DoubleClickShowWorldMap</key>      <map>        <key>Comment</key> diff --git a/indra/newview/llfloaterworldmap.cpp b/indra/newview/llfloaterworldmap.cpp index e6d91a658d..03cf0332a9 100755 --- a/indra/newview/llfloaterworldmap.cpp +++ b/indra/newview/llfloaterworldmap.cpp @@ -148,6 +148,12 @@ public:  	bool handle(const LLSD& params, const LLSD& query_map, LLMediaCtrl* web)  	{ +		if (!LLUI::sSettingGroups["config"]->getBOOL("EnableWorldMap")) +		{ +			LLNotificationsUtil::add("NoWorldMap", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit")); +			return true; +		} +		  		//Make sure we have some parameters  		if (params.size() == 0)  		{ diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 4f13c0c022..cead6c24cd 100755 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -31,6 +31,7 @@  #include "llavataractions.h"  #include "llfloaterreg.h"  #include "llcommandhandler.h" +#include "llnotificationsutil.h"  #include "llpanelpicks.h"  #include "lltabcontainer.h"  #include "llviewercontrol.h" @@ -105,6 +106,12 @@ public:  		if (verb == "pay")  		{ +			if (!LLUI::sSettingGroups["config"]->getBOOL("EnableAvatarPay")) +			{ +				LLNotificationsUtil::add("NoAvatarPay", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit")); +				return true; +			} +  			LLAvatarActions::pay(avatar_id);  			return true;  		} diff --git a/indra/newview/llshareavatarhandler.cpp b/indra/newview/llshareavatarhandler.cpp index 34194970b8..6b4f1d3dc6 100644 --- a/indra/newview/llshareavatarhandler.cpp +++ b/indra/newview/llshareavatarhandler.cpp @@ -27,6 +27,8 @@  #include "llviewerprecompiledheaders.h"  #include "llcommandhandler.h"  #include "llavataractions.h" +#include "llnotificationsutil.h" +#include "llui.h"  class LLShareWithAvatarHandler : public LLCommandHandler  { @@ -38,6 +40,12 @@ public:  	bool handle(const LLSD& params, const LLSD& query_map, LLMediaCtrl* web)  	{ +		if (!LLUI::sSettingGroups["config"]->getBOOL("EnableAvatarShare")) +		{ +			LLNotificationsUtil::add("NoAvatarShare", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit")); +			return true; +		} +  		//Make sure we have some parameters  		if (params.size() == 0)  		{ diff --git a/indra/newview/llvoicecallhandler.cpp b/indra/newview/llvoicecallhandler.cpp index 274bd75208..2050dab689 100644 --- a/indra/newview/llvoicecallhandler.cpp +++ b/indra/newview/llvoicecallhandler.cpp @@ -27,6 +27,8 @@  #include "llviewerprecompiledheaders.h"  #include "llcommandhandler.h"   #include "llavataractions.h" +#include "llnotificationsutil.h" +#include "llui.h"  class LLVoiceCallAvatarHandler : public LLCommandHandler  { @@ -38,6 +40,12 @@ public:  	bool handle(const LLSD& params, const LLSD& query_map, LLMediaCtrl* web)  	{ +		if (!LLUI::sSettingGroups["config"]->getBOOL("EnableVoiceCall")) +		{ +			LLNotificationsUtil::add("NoVoiceCall", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit")); +			return true; +		} +  		//Make sure we have some parameters  		if (params.size() == 0)  		{ diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 50193a198b..8e7da11c25 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -7139,6 +7139,48 @@ The site at '<nolink>[HOST_NAME]</nolink>' in realm '     yestext="Quit"     notext="Don't Quit"/>    </notification> + +  <notification + name="NoVoiceCall" + label="" + type="alertmodal" + unique="true"> +    <tag>fail</tag> +    <tag>confirm</tag> +    Voice calls are only available in Standard mode. Would you like to logout and change modes? +    <usetemplate +   name="okcancelbuttons" +   yestext="Quit" +   notext="Don't Quit"/> +  </notification> + +  <notification + name="NoAvatarShare" + label="" + type="alertmodal" + unique="true"> +    <tag>fail</tag> +    <tag>confirm</tag> +    Sharing is only available in Standard mode. Would you like to logout and change modes? +    <usetemplate +   name="okcancelbuttons" +   yestext="Quit" +   notext="Don't Quit"/> +  </notification> +   +  <notification + name="NoAvatarPay" + label="" + type="alertmodal" + unique="true"> +    <tag>fail</tag> +    <tag>confirm</tag> +    Paying other residents is only available in Standard mode. Would you like to logout and change modes? +    <usetemplate +   name="okcancelbuttons" +   yestext="Quit" +   notext="Don't Quit"/> +  </notification>    <global name="UnsupportedCPU">  - Your CPU speed does not meet the minimum requirements. | 
