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:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user