| 15 | namespace State |
| 16 | { |
| 17 | Main_Menu::Main_Menu(Application& application) |
| 18 | : Game_State (application) |
| 19 | , m_frontMenu (GUI::Layout::Center) |
| 20 | , m_playMenu (GUI::Layout::Center) |
| 21 | { |
| 22 | auto backgrounds = getFileNamesFromFolder("Data/Textures/Menu_BG"); |
| 23 | auto selection = Random::intInRange(1, backgrounds.size()); |
| 24 | m_pMenuBackground = &getResources().textures.get("Menu_BG/" + std::to_string(selection)); |
| 25 | |
| 26 | initMenu(); |
| 27 | } |
| 28 | |
| 29 | void Main_Menu::input( const sf::Event& e) |
| 30 | { |
nothing calls this directly
no test coverage detected