mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 06:40:09 +00:00
Make post-processing HUD search case-insensitive
This commit is contained in:
parent
5eba755174
commit
3b8001d55d
@ -20,6 +20,8 @@
|
||||
#include <components/fx/technique.hpp>
|
||||
#include <components/fx/widgets.hpp>
|
||||
|
||||
#include <components/misc/utf8stream.hpp>
|
||||
|
||||
#include <components/widgets/box.hpp>
|
||||
|
||||
#include "../mwrender/postprocessor.hpp"
|
||||
@ -426,9 +428,14 @@ namespace MWGui
|
||||
if (!technique)
|
||||
continue;
|
||||
|
||||
if (!technique->getHidden() && !processor->isTechniqueEnabled(technique)
|
||||
&& name.find(mFilter->getCaption()) != std::string::npos)
|
||||
mInactiveList->addItem(name, technique);
|
||||
if (!technique->getHidden() && !processor->isTechniqueEnabled(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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user