diff options
author | Steven Bennetts <steve@lindenlab.com> | 2009-07-10 21:18:42 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2009-07-10 21:18:42 +0000 |
commit | e4dc104e3296319476bb0d6c327d6a326c967976 (patch) | |
tree | 33125c00656d612a0e294eb4fe773aa60ff0d698 /indra/llui/llfloaterreg.cpp | |
parent | 923d84d08f98b33657d6bd861c34b985125db757 (diff) |
EXT-70 Camera and Movement controls don't save their positions
DEV-35250 Quitting from the login screen forgets window placement and visibility (e.g. movement and camera floaters)
reviewed by Leyla
Diffstat (limited to 'indra/llui/llfloaterreg.cpp')
-rw-r--r-- | indra/llui/llfloaterreg.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/llui/llfloaterreg.cpp b/indra/llui/llfloaterreg.cpp index faa763cea9..d12f600503 100644 --- a/indra/llui/llfloaterreg.cpp +++ b/indra/llui/llfloaterreg.cpp @@ -363,6 +363,24 @@ std::string LLFloaterReg::declareVisibilityControl(const std::string& name) return controlname; } +//static +void LLFloaterReg::registerControlVariables() +{ + // Iterate through alll registered instance names and register rect and visibility control variables + for (build_map_t::iterator iter = sBuildMap.begin(); iter != sBuildMap.end(); ++iter) + { + const std::string& name = iter->first; + if (LLUI::sSettingGroups["floater"]->controlExists(getRectControlName(name))) + { + declareRectControl(name); + } + if (LLUI::sSettingGroups["floater"]->controlExists(getVisibilityControlName(name))) + { + declareVisibilityControl(name); + } + } +} + // Callbacks // static |