diff options
author | Loren Shih <seraph@lindenlab.com> | 2009-11-03 16:41:38 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2009-11-03 16:41:38 -0500 |
commit | 4692244422fd45057164bcb85f040b258dd307b6 (patch) | |
tree | 67752a57b13a483de35d92ca88150f25af3da505 /indra | |
parent | b7d020e744e69749dc946ce63fdb18d613a18e0a (diff) |
Adding sidepanel_ .xml files to XUI preview tool.
--HG--
branch : avatar-pipeline
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloateruipreview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloateruipreview.cpp b/indra/newview/llfloateruipreview.cpp index 2fe21f28de..663bd232f7 100644 --- a/indra/newview/llfloateruipreview.cpp +++ b/indra/newview/llfloateruipreview.cpp @@ -670,6 +670,15 @@ void LLFloaterUIPreview::refreshList() } } + found = TRUE; + while(found) // for every sidepanel file that matches the pattern + { + if((found = gDirUtilp->getNextFileInDir(getLocalizedDirectory(), "sidepanel_*.xml", name, FALSE))) // get next file matching pattern + { + addFloaterEntry(name.c_str()); // and add it to the list (file name only; localization code takes care of rest of path) + } + } + if(!mFileList->isEmpty()) // if there were any matching files, just select the first one (so we don't have to worry about disabling buttons when no entry is selected) { mFileList->selectFirstItem(); |