forked from teamnwah/openmw-tes3coop
added missing click sound to main menu
This commit is contained in:
parent
21f502e3dd
commit
13c33c1613
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
|
@ -65,6 +66,7 @@ namespace MWGui
|
|||
|
||||
void MainMenu::onButtonClicked(MyGUI::Widget *sender)
|
||||
{
|
||||
MWBase::Environment::get().getSoundManager()->playSound("Menu Click", 1.f, 1.f);
|
||||
if (sender == mButtons["return"])
|
||||
MWBase::Environment::get().getWindowManager ()->removeGuiMode (GM_MainMenu);
|
||||
else if (sender == mButtons["options"])
|
||||
|
|
Loading…
Reference in a new issue