Merge branch 'esm4console' into 'master'

Autocomplete ESM4::Cell editor IDs

See merge request OpenMW/openmw!3209
revert-6246b479
psi29a 2 years ago
commit 3833f2e92e

@ -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…
Cancel
Save