fix bug with phase highlighting in replays (#5161)

* fix bug with incorrectly highlighted phases

* fix new bug with phases continuously darkening

* use preincrement instead of postincrement

* simplify conditional
This commit is contained in:
RickyRister 2024-11-05 09:23:01 -08:00 committed by GitHub
parent 0c4e8ca290
commit 6652012f4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 51 additions and 6 deletions

View file

@ -45,6 +45,7 @@ public:
{
return active;
}
void reset();
void triggerDoubleClickAction();
signals:
void clicked();
@ -85,6 +86,7 @@ public:
public slots:
void setActivePhase(int phase);
void triggerPhaseAction(int phase);
void reset();
private slots:
void phaseButtonClicked();
void actNextTurn();