//! Default constructor GMMRegDialog(QWidget* parent = 0) : QDialog(parent, Qt::Tool) , Ui::GMMRegDialog() { setupUi(this); m_stepWidgets.push_back(StepWidgets(step1CheckBox, step1ScaleDoubleSpinBox, step1LambdaDoubleSpinBox, step1MaxIterSpinBox)); m_stepWidgets.push_back(StepWidgets(step2CheckBox, step2ScaleDoubleSpinBox, step2LambdaDoubleSpinBox, step2MaxIterSpinBox)); m_stepWidgets.push_back(StepWidgets(step3CheckBox, step3ScaleDoubleSpinBox, step3LambdaDoubleSpinBox, step3MaxIterSpinBox)); }
void PauseMenu::step() { if (jngl::keyPressed(jngl::key::Escape)) { jngl::setWork(work); } StepWidgets(); game->StepToRotateScreen(); }
void GameOverScreen::step() { game_->GetField().step(); // Show GameOver animation game_->StepToRotateScreen(); if (game_->GameOverAnimationFinished()) { if (isHighscore()) { StepWidgets(); if(jngl::keyPressed(jngl::key::Return) || jngl::keyPressed(jngl::key::WizB)) { data_.name = input_->getText(); GetOptions().Set("lastHighscoreName", data_.name); highscore_.Add(data_); highscore_.save(); Menu* menu = new Menu; menu->BlinkHighscore(data_); jngl::setWork(new Fade(menu)); } } else { blink_ += 4; if (blink_ > 2 * 255) { blink_ = 0; } if (jngl::mousePressed() || jngl::keyPressed(jngl::key::Any)) { jngl::setWork(new Fade(new Menu)); } } } else if (jngl::keyPressed(jngl::key::Escape)) { while (!game_->GameOverAnimationFinished()) { game_->GetField().step(); } } }
void Login::step() { try { socket_->Step(); } catch(std::exception& e) { text_ = "Exception: "; text_ += e.what(); OnError(); } cancel_.step(); StepWidgets(); }