allow to inspect balancing arena

This commit is contained in:
2026-05-03 21:17:43 +02:00
parent afd8cd28fa
commit 3ef32ee6ba
13 changed files with 851 additions and 4 deletions

View File

@@ -30,6 +30,10 @@ void ArenaWidget::buildLayout(const std::string& arenaName)
titleRow->addStretch();
m_inspectButton = new QPushButton("Inspect", this);
connect(m_inspectButton, &QPushButton::clicked, this, &ArenaWidget::inspectRequested);
titleRow->addWidget(m_inspectButton);
m_startButton = new QPushButton("Start", this);
connect(m_startButton, &QPushButton::clicked, this, &ArenaWidget::startRequested);
titleRow->addWidget(m_startButton);
@@ -72,6 +76,14 @@ void ArenaWidget::startSimulation()
setStyleSheet("ArenaWidget { border: 2px solid #3366ff; padding: 8px; }");
}
void ArenaWidget::resetToGrey()
{
m_running = false;
m_wasFinished = false;
m_startButton->setEnabled(true);
setStyleSheet("ArenaWidget { border: 2px solid #999999; padding: 8px; }");
}
void ArenaWidget::updateStatus(const ArenaStatus& status)
{
for (int ti = 0; ti < 2; ++ti)