Skip to content

Commit

Permalink
Incorporate new sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Morxemplum committed Sep 19, 2020
1 parent b5a0143 commit 7173f69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/SSVOpenHexagon/Core/HexagonDialogBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void HexagonDialogBox::drawDialogBox()

void HexagonDialogBox::clearDialogBox()
{
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
dialogFrame.clear();
dialogText.clear();
}
Expand Down
4 changes: 4 additions & 0 deletions src/SSVOpenHexagon/Core/HexagonGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ void HexagonGame::newGame(const std::string& mPackId, const std::string& mId,
if(!firstPlay)
{
runLuaFunction<void>("onUnload");
assets.playSound("restart.ogg");
} else {
assets.playSound("select.ogg");
}

runLuaFunction<void>("onInit");
Expand Down Expand Up @@ -449,6 +452,7 @@ void HexagonGame::sideChange(unsigned int mSideNumber)

mustChangeSides = false;

assets.playSound("increment.ogg");
runLuaFunction<void>("onIncrement");
}

Expand Down
10 changes: 3 additions & 7 deletions src/SSVOpenHexagon/Core/MenuGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ void MenuGame::downAction()
}
void MenuGame::okAction()
{
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
touchDelay = 50.f;

if(state == States::EpilepsyWarning)
Expand Down Expand Up @@ -947,8 +947,6 @@ void MenuGame::createProfileAction()

void MenuGame::selectProfileAction()
{
assets.playSound("beep.ogg");

if(state != States::SMain)
{
return;
Expand All @@ -958,20 +956,18 @@ void MenuGame::selectProfileAction()
state = States::MWlcm;
return;
}
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
enteredStr = "";
state = States::SLPSelect;
}

void MenuGame::openOptionsAction()
{
assets.playSound("beep.ogg");

if(state != States::SMain)
{
return;
}
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
state = States::MOpts;
}

Expand Down

0 comments on commit 7173f69

Please sign in to comment.