allow to re-start arenas
This commit is contained in:
@@ -67,6 +67,7 @@ void ArenaWidget::buildLayout(const std::string& arenaName)
|
||||
void ArenaWidget::startSimulation()
|
||||
{
|
||||
m_running = true;
|
||||
m_wasFinished = false;
|
||||
m_startButton->setEnabled(false);
|
||||
setStyleSheet("ArenaWidget { border: 2px solid #3366ff; padding: 8px; }");
|
||||
}
|
||||
@@ -107,6 +108,8 @@ void ArenaWidget::updateStatus(const ArenaStatus& status)
|
||||
if (status.finished && !m_wasFinished)
|
||||
{
|
||||
m_wasFinished = true;
|
||||
m_running = false;
|
||||
m_startButton->setEnabled(true);
|
||||
setStyleSheet("ArenaWidget { border: 2px solid #33cc33; padding: 8px; }");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user