mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 21:11:33 +00:00
Make post-processing HUD search case-insensitive
This commit is contained in:
parent
5eba755174
commit
3b8001d55d
1 changed files with 10 additions and 3 deletions
|
@ -20,6 +20,8 @@
|
||||||
#include <components/fx/technique.hpp>
|
#include <components/fx/technique.hpp>
|
||||||
#include <components/fx/widgets.hpp>
|
#include <components/fx/widgets.hpp>
|
||||||
|
|
||||||
|
#include <components/misc/utf8stream.hpp>
|
||||||
|
|
||||||
#include <components/widgets/box.hpp>
|
#include <components/widgets/box.hpp>
|
||||||
|
|
||||||
#include "../mwrender/postprocessor.hpp"
|
#include "../mwrender/postprocessor.hpp"
|
||||||
|
@ -426,9 +428,14 @@ namespace MWGui
|
||||||
if (!technique)
|
if (!technique)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!technique->getHidden() && !processor->isTechniqueEnabled(technique)
|
if (!technique->getHidden() && !processor->isTechniqueEnabled(technique))
|
||||||
&& name.find(mFilter->getCaption()) != std::string::npos)
|
{
|
||||||
mInactiveList->addItem(name, technique);
|
std::string lowerName = Utf8Stream::lowerCaseUtf8(name);
|
||||||
|
std::string lowerCaption = mFilter->getCaption();
|
||||||
|
lowerCaption = Utf8Stream::lowerCaseUtf8(lowerCaption);
|
||||||
|
if (lowerName.find(lowerCaption) != std::string::npos)
|
||||||
|
mInactiveList->addItem(name, technique);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto technique : processor->getTechniques())
|
for (auto technique : processor->getTechniques())
|
||||||
|
|
Loading…
Reference in a new issue