1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 22:23:52 +00:00

Show a message if player attempts to access postprocessor hud when postprocessing is disabled

This commit is contained in:
Mads Buvik Sandvei 2022-08-19 21:15:50 +02:00
parent ab2931223e
commit 5863790c74

View file

@ -2079,7 +2079,10 @@ namespace MWGui
void WindowManager::togglePostProcessorHud()
{
if (!MWBase::Environment::get().getWorld()->getPostProcessor()->isEnabled())
{
messageBox("Postprocessor is not enabled.");
return;
}
bool visible = mPostProcessorHud->isVisible();