mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 00:45:34 +00:00
Autocomplete ESM4::Cell editor IDs
This commit is contained in:
parent
5c9dbdaceb
commit
3b85f9f8cf
1 changed files with 8 additions and 2 deletions
|
@ -121,14 +121,20 @@ namespace MWGui
|
|||
ids.clear();
|
||||
}
|
||||
|
||||
// exterior cell names aren't technically identifiers, but since the COC function accepts them,
|
||||
// we should list them too
|
||||
// exterior cell names and editor IDs aren't technically identifiers,
|
||||
// but since the COC function accepts them, we should list them too
|
||||
for (auto it = esmStore.get<ESM::Cell>().extBegin(); it != esmStore.get<ESM::Cell>().extEnd(); ++it)
|
||||
{
|
||||
if (!it->mName.empty())
|
||||
mNames.push_back(it->mName);
|
||||
}
|
||||
|
||||
for (const auto& cell : esmStore.get<ESM4::Cell>())
|
||||
{
|
||||
if (!cell.mEditorId.empty())
|
||||
mNames.push_back(cell.mEditorId);
|
||||
}
|
||||
|
||||
// sort
|
||||
std::sort(mNames.begin(), mNames.end());
|
||||
|
||||
|
|
Loading…
Reference in a new issue