mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Show a message if player attempts to access postprocessor hud when postprocessing is disabled
This commit is contained in:
parent
ab2931223e
commit
5863790c74
@ -2079,7 +2079,10 @@ namespace MWGui
|
|||||||
void WindowManager::togglePostProcessorHud()
|
void WindowManager::togglePostProcessorHud()
|
||||||
{
|
{
|
||||||
if (!MWBase::Environment::get().getWorld()->getPostProcessor()->isEnabled())
|
if (!MWBase::Environment::get().getWorld()->getPostProcessor()->isEnabled())
|
||||||
|
{
|
||||||
|
messageBox("Postprocessor is not enabled.");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool visible = mPostProcessorHud->isVisible();
|
bool visible = mPostProcessorHud->isVisible();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user