mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 01:23:53 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue