fichier settings
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "MainAppMenu.h"
|
||||
|
||||
#include "AppMenu.h"
|
||||
#include "InGameAppMenu.h"
|
||||
|
||||
#include <stack>
|
||||
#include <memory>
|
||||
@@ -14,7 +15,7 @@ MainAppMenu::MainAppMenu(std::shared_ptr<std::stack<AppMenu>> menuStack, std::sh
|
||||
|
||||
void MainAppMenu::computeFrame() {
|
||||
if (sf::Keyboard::isKeyPressed(sfKey::Enter)) {
|
||||
|
||||
this->menuStack->push(InGameAppMenu(this->menuStack, this->settings, this->renderWindow));
|
||||
}
|
||||
else if (sf::Keyboard::isKeyPressed(sfKey::Escape)) {
|
||||
this->menuStack->pop();
|
||||
|
||||
Reference in New Issue
Block a user