aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llxml
diff options
context:
space:
mode:
authorArmin Weatherwax2010-02-05 14:05:56 +0100
committerJacek Antonelli2010-02-22 00:29:06 -0600
commit669c34894ada93db64e05b4a887b15efe990c81f (patch)
treedc08bd01e34972bd8748cc449aa5b44b876a1e34 /linden/indra/llxml
parentFixed #197: Windlight toolbar can't be hidden. (diff)
downloadmeta-impy-669c34894ada93db64e05b4a887b15efe990c81f.zip
meta-impy-669c34894ada93db64e05b4a887b15efe990c81f.tar.gz
meta-impy-669c34894ada93db64e05b4a887b15efe990c81f.tar.bz2
meta-impy-669c34894ada93db64e05b4a887b15efe990c81f.tar.xz
Ignore HideFromEditor from settings.xml.
Don't hide any settings from Debug Settings.
Diffstat (limited to 'linden/indra/llxml')
-rw-r--r--linden/indra/llxml/llcontrol.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/linden/indra/llxml/llcontrol.cpp b/linden/indra/llxml/llcontrol.cpp
index 8bd04d7..88eb2c3 100644
--- a/linden/indra/llxml/llcontrol.cpp
+++ b/linden/indra/llxml/llcontrol.cpp
@@ -216,7 +216,8 @@ void LLControlVariable::setPersist(bool state)
216 216
217void LLControlVariable::setHiddenFromSettingsEditor(bool hide) 217void LLControlVariable::setHiddenFromSettingsEditor(bool hide)
218{ 218{
219 mHideFromSettingsEditor = hide; 219 // mHideFromSettingsEditor = hide; //no, not really
220 mHideFromSettingsEditor = false;
220} 221}
221 222
222void LLControlVariable::setComment(const std::string& comment) 223void LLControlVariable::setComment(const std::string& comment)
@@ -1077,6 +1078,17 @@ U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_v
1077 // Sometimes we want to use the settings system to provide cheap persistence, but we 1078 // Sometimes we want to use the settings system to provide cheap persistence, but we
1078 // don't want the settings themselves to be easily manipulated in the UI because 1079 // don't want the settings themselves to be easily manipulated in the UI because
1079 // doing so can cause support problems. So we have this option: 1080 // doing so can cause support problems. So we have this option:
1081
1082 // To actually only hide adult settings and the world search url.
1083 // Upside of the latter is that it also makes it harder to use the viewer with OpenSim.
1084 // And teenagers never would dare ever to touch the settings.xml file.
1085 //
1086 // For it's anyway useful to be able to change them we should add in future
1087 // a possibility to unhide them again, e.g. typing "I'm up to no good" to channel 666,
1088 // tripple-rightclick the avatars nose and then play a "I will tell your MUM that you
1089 // changed ADULT setting in the DEBUG MENU!" gesture in world.
1090 //
1091/*
1080 if(control_map.has("HideFromEditor")) 1092 if(control_map.has("HideFromEditor"))
1081 { 1093 {
1082 hidefromsettingseditor = control_map["HideFromEditor"].asInteger(); 1094 hidefromsettingseditor = control_map["HideFromEditor"].asInteger();
@@ -1085,6 +1097,7 @@ U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_v
1085 { 1097 {
1086 hidefromsettingseditor = false; 1098 hidefromsettingseditor = false;
1087 } 1099 }
1100*/
1088 1101
1089 // If the control exists just set the value from the input file. 1102 // If the control exists just set the value from the input file.
1090 LLControlVariable* existing_control = getControl(name); 1103 LLControlVariable* existing_control = getControl(name);