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
+2
View File
@@ -318,6 +318,7 @@ void Menu::OpenMenu(MenuType menu,bool cover){
if(std::holds_alternative<ButtonName>(returnData)&&std::get<ButtonName>(returnData).length()>0||std::holds_alternative<std::weak_ptr<MenuComponent>>(returnData))menus[menu]->SetSelection(returnData,true);
}
stack.push_back(menus[menu]);
Audio::UpdateBGMVolume(); //If we open the pause menu, it forces the bgm volume to be halved. So we notify the engine that this is happening.
}
void Menu::KeyboardButtonNavigation(AiL*game,vf2d menuPos){
@@ -644,6 +645,7 @@ void Menu::CloseMenu(){
}else{
ERR("WARNING! Trying to close out no menu?? Why are we doing this?")
}
Audio::UpdateBGMVolume(); //If we close the pause menu, the bgm volume was halved. So we notify the engine that this is happening so it can correct it.
}
std::pair<MenuType,std::string>Menu::GetMemoryLeakReportInfo(){