mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Added click sound to OK button for message boxes
This commit is contained in:
parent
1a43d86d9e
commit
b1ca719d61
@ -1,6 +1,8 @@
|
||||
#include <components/misc/stringops.hpp>
|
||||
|
||||
#include "messagebox.hpp"
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
|
||||
using namespace MWGui;
|
||||
|
||||
@ -375,6 +377,7 @@ void InteractiveMessageBox::enterPressed()
|
||||
if(Misc::StringUtils::lowerCase((*button)->getCaption()) == ok)
|
||||
{
|
||||
buttonActivated(*button);
|
||||
MWBase::Environment::get().getSoundManager()->playSound("Menu Click", 1.f, 1.f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user