mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 20:23:54 +00:00
Merge branch 'esm4console' into 'master'
Autocomplete ESM4::Cell editor IDs See merge request OpenMW/openmw!3209
This commit is contained in:
commit
3833f2e92e
1 changed files with 8 additions and 2 deletions
|
@ -121,14 +121,20 @@ namespace MWGui
|
||||||
ids.clear();
|
ids.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// exterior cell names aren't technically identifiers, but since the COC function accepts them,
|
// exterior cell names and editor IDs aren't technically identifiers,
|
||||||
// we should list them too
|
// 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)
|
for (auto it = esmStore.get<ESM::Cell>().extBegin(); it != esmStore.get<ESM::Cell>().extEnd(); ++it)
|
||||||
{
|
{
|
||||||
if (!it->mName.empty())
|
if (!it->mName.empty())
|
||||||
mNames.push_back(it->mName);
|
mNames.push_back(it->mName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const auto& cell : esmStore.get<ESM4::Cell>())
|
||||||
|
{
|
||||||
|
if (!cell.mEditorId.empty())
|
||||||
|
mNames.push_back(cell.mEditorId);
|
||||||
|
}
|
||||||
|
|
||||||
// sort
|
// sort
|
||||||
std::sort(mNames.begin(), mNames.end());
|
std::sort(mNames.begin(), mNames.end());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue