aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorPatrick Sapinski2010-09-21 21:40:23 -0400
committerMcCabe Maxsted2010-09-22 15:13:00 -0700
commitceca2fbeb58be924902471ab58f5ad8a8c1fd157 (patch)
tree4c0947796ae13dd95478ff54444bc26249fe1e1a /linden/indra
parentShow start location on the login screen by default (diff)
downloadmeta-impy-ceca2fbeb58be924902471ab58f5ad8a8c1fd157.zip
meta-impy-ceca2fbeb58be924902471ab58f5ad8a8c1fd157.tar.gz
meta-impy-ceca2fbeb58be924902471ab58f5ad8a8c1fd157.tar.bz2
meta-impy-ceca2fbeb58be924902471ab58f5ad8a8c1fd157.tar.xz
Added handler for new OpenSim function "OpenRegionInfo", more info at http://imprudenceviewer.org/wiki/Opensim_information_needed
Currently only supports a fraction of the provided parameters.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/CMakeLists.txt1
-rw-r--r--linden/indra/newview/app_settings/settings.xml14
-rw-r--r--linden/indra/newview/hippoLimits.h2
-rw-r--r--linden/indra/newview/llviewermenu.cpp15
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml2
5 files changed, 27 insertions, 7 deletions
diff --git a/linden/indra/newview/CMakeLists.txt b/linden/indra/newview/CMakeLists.txt
index 1691095..b071795 100644
--- a/linden/indra/newview/CMakeLists.txt
+++ b/linden/indra/newview/CMakeLists.txt
@@ -90,6 +90,7 @@ set(viewer_SOURCE_FILES
90 impprefsfonts.cpp 90 impprefsfonts.cpp
91 jcfloater_animation_list.cpp 91 jcfloater_animation_list.cpp
92 jcfloaterareasearch.cpp 92 jcfloaterareasearch.cpp
93 kowopenregionsettings.cpp
93 lightshare.cpp 94 lightshare.cpp
94 llagent.cpp 95 llagent.cpp
95 llagentaccess.cpp 96 llagentaccess.cpp
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index ee8f76e..70659f8 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -1168,6 +1168,20 @@
1168 <integer>1</integer> 1168 <integer>1</integer>
1169 </map> 1169 </map>
1170 1170
1171 <!-- Begin: OpenRegionInfo -->
1172
1173 <key>ToggleTeenMode</key>
1174 <map>
1175 <key>Comment</key>
1176 <string>Allow the toggle of Teen Mode via debug options</string>
1177 <key>Persist</key>
1178 <integer>0</integer>
1179 <key>Type</key>
1180 <string>Boolean</string>
1181 <key>Value</key>
1182 <integer>1</integer>
1183 </map>
1184
1171 <!-- Begin: AO--> 1185 <!-- Begin: AO-->
1172 1186
1173 <key>AOEnabled</key> 1187 <key>AOEnabled</key>
diff --git a/linden/indra/newview/hippoLimits.h b/linden/indra/newview/hippoLimits.h
index f76e7e9..a5fe351 100644
--- a/linden/indra/newview/hippoLimits.h
+++ b/linden/indra/newview/hippoLimits.h
@@ -19,7 +19,6 @@ public:
19 19
20 void setLimits(); 20 void setLimits();
21 21
22private:
23 S32 mMaxAgentGroups; 22 S32 mMaxAgentGroups;
24 23
25 F32 mMaxHeight; 24 F32 mMaxHeight;
@@ -29,6 +28,7 @@ private:
29 F32 mMinPrimScale; 28 F32 mMinPrimScale;
30 S32 mMaxLinkedPrims; 29 S32 mMaxLinkedPrims;
31 30
31private:
32 void setOpenSimLimits(); 32 void setOpenSimLimits();
33 void setSecondLifeLimits(); 33 void setSecondLifeLimits();
34}; 34};
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index fd6e842..681216a 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -7137,11 +7137,16 @@ void handle_test_female(void*)
7137 7137
7138void handle_toggle_pg(void*) 7138void handle_toggle_pg(void*)
7139{ 7139{
7140 gAgent.setTeen( !gAgent.isTeen() ); 7140 if(gSavedSettings.getBOOL("ToggleTeenMode"))
7141 7141 {
7142 LLFloaterWorldMap::reloadIcons(NULL); 7142 gAgent.setTeen( !gAgent.isTeen() );
7143 7143 LLFloaterWorldMap::reloadIcons(NULL);
7144 llinfos << "PG status set to " << (S32)gAgent.isTeen() << llendl; 7144 llinfos << "PG status set to " << (S32)gAgent.isTeen() << llendl;
7145 }
7146 else
7147 {
7148 llinfos << "Teen mode cannot be toggled on this region" << llendl;
7149 }
7145} 7150}
7146 7151
7147void handle_dump_attachments(void*) 7152void handle_dump_attachments(void*)
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
index fffab6c..0a27f85 100644
--- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
@@ -1803,7 +1803,7 @@
1803 <menu_item_call name="Test Female" label="Test Female"> 1803 <menu_item_call name="Test Female" label="Test Female">
1804 <on_click function="Advanced.TestFemale" userdata="" /> 1804 <on_click function="Advanced.TestFemale" userdata="" />
1805 </menu_item_call> 1805 </menu_item_call>
1806 <menu_item_call name="Toggle PG" label="Toggle PG"> 1806 <menu_item_call name="Toggle PG" label="Toggle Teen Mode">
1807 <on_click function="Advanced.TogglePG" userdata="" /> 1807 <on_click function="Advanced.TogglePG" userdata="" />
1808 </menu_item_call> 1808 </menu_item_call>
1809 <menu_item_check name="Allow Select Avatar" 1809 <menu_item_check name="Allow Select Avatar"