MenuActions::MenuResult TetrisScreen::Show(sf::RenderWindow& window) { window.clear(sf::Color::Black); drawAllButtons(window); drawTetrisField(window); window.display(); return GetAllActions(window); }
//moves to a defined panel void gotoPanel(byte pPanelId){ fill(0); background(0,0,0);// set the screen black mCurrentPanel = pPanelId; setupButtons(); drawAllButtons(); }