a
This commit is contained in:
parent
04a7a63a25
commit
e9b2a64e43
@ -44,8 +44,8 @@ void PixelManager::displayMenu(const Position& pos, Menu& currentMenu){
|
||||
PlayMode PixelManager::showInitialMenu(){
|
||||
vector<string> entries {"single player","multi player (local)","exit"};
|
||||
Menu initial {entries,0,nsGraphics::KRed,nsGraphics::KWhite};
|
||||
const unsigned xOffset = getScreenHeight() / 2 ;
|
||||
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||
unsigned xOffset = getScreenHeight() / 2 ;
|
||||
unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
||||
while(window.isOpen()){
|
||||
displayMenu(Position(yOffset,xOffset),initial);
|
||||
@ -126,8 +126,8 @@ void PixelManager::askPlayerNameMenu(playerID pID, string& name) {
|
||||
bool PixelManager::showDeathMenu() {
|
||||
vector<string> entries {"retry","main menu"};
|
||||
Menu death {entries,0,nsGraphics::KRed,nsGraphics::KWhite};
|
||||
const unsigned xOffset = getScreenHeight() / 2 ;
|
||||
const unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||
unsigned xOffset = getScreenHeight() / 2 ;
|
||||
unsigned yOffset = getScreenWidth() / 2 - 90;
|
||||
chrono::milliseconds waitTime = chrono::milliseconds(100);
|
||||
while(window.isOpen()){
|
||||
displayMenu(Position(yOffset,xOffset),death);
|
||||
|
Loading…
Reference in New Issue
Block a user