Make Leave Area button work in the camp. Fix background music volume not being halved when entering/exiting the pause menu. Release Build 7909.

This commit is contained in:
2024-03-05 00:59:00 -06:00
parent 05e59f8ca4
commit 0fd57311be
10 changed files with 15 additions and 26 deletions
+5 -4
View File
@@ -53,8 +53,6 @@ void Menu::InitializePauseWindow(){
pauseWindow->ADD("Resume Button",MenuComponent)(geom2d::rect<float>{{6.f,0.f},{84.f,24.f}},"Resume",[](MenuFuncData data){
Menu::CloseMenu();
game->ResumeGame();
Audio::UpdateBGMVolume(); //When we open the pause menu, it forces the bgm volume to be halved. So we notify the engine that this is happening.
return true;
},ButtonAttr::FIT_TO_LABEL)END;
pauseWindow->ADD("Character Button",MenuComponent)(geom2d::rect<float>{{6.f,28.f},{84.f,24.f}},"Character",[](MenuFuncData data){
@@ -79,8 +77,11 @@ void Menu::InitializePauseWindow(){
}else{
Component<MenuComponent>(LEVEL_COMPLETE,"Next Button")->Disable();
}
game->ResumeGame();
GameState::ChangeState(States::LEVEL_COMPLETE,0.4f);
if(GameState::STATE==GameState::states[States::GAME_HUB]){
GameState::ChangeState(States::OVERWORLD_MAP,0.4f);
}else{
GameState::ChangeState(States::LEVEL_COMPLETE,0.4f);
}
return true;
},ButtonAttr::FIT_TO_LABEL)END;