|
|
@ -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){ |
|
|
|
pauseWindow->ADD("Resume Button",MenuComponent)(geom2d::rect<float>{{6.f,0.f},{84.f,24.f}},"Resume",[](MenuFuncData data){ |
|
|
|
Menu::CloseMenu(); |
|
|
|
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; |
|
|
|
return true; |
|
|
|
},ButtonAttr::FIT_TO_LABEL)END; |
|
|
|
},ButtonAttr::FIT_TO_LABEL)END; |
|
|
|
pauseWindow->ADD("Character Button",MenuComponent)(geom2d::rect<float>{{6.f,28.f},{84.f,24.f}},"Character",[](MenuFuncData data){ |
|
|
|
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{ |
|
|
|
}else{ |
|
|
|
Component<MenuComponent>(LEVEL_COMPLETE,"Next Button")->Disable(); |
|
|
|
Component<MenuComponent>(LEVEL_COMPLETE,"Next Button")->Disable(); |
|
|
|
} |
|
|
|
} |
|
|
|
game->ResumeGame(); |
|
|
|
if(GameState::STATE==GameState::states[States::GAME_HUB]){ |
|
|
|
|
|
|
|
GameState::ChangeState(States::OVERWORLD_MAP,0.4f); |
|
|
|
|
|
|
|
}else{ |
|
|
|
GameState::ChangeState(States::LEVEL_COMPLETE,0.4f); |
|
|
|
GameState::ChangeState(States::LEVEL_COMPLETE,0.4f); |
|
|
|
|
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
},ButtonAttr::FIT_TO_LABEL)END; |
|
|
|
},ButtonAttr::FIT_TO_LABEL)END; |
|
|
|
|
|
|
|
|
|
|
|