add option to auto-play "put top card on stack until" hits (#5258)

* rename variables

* implement feature

* readd null check
This commit is contained in:
RickyRister 2024-12-17 20:47:49 -08:00 committed by GitHub
parent a6b5abf271
commit 116397cdb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 14 deletions

View file

@ -270,8 +270,9 @@ private:
bool movingCardsUntil;
QTimer *moveTopCardTimer;
QString previousMovingCardsUntilExpr = {};
int previousMovingCardsUntilNumberOfHits = 1;
QString movingCardsUntilExpr = {};
int movingCardsUntilNumberOfHits = 1;
bool movingCardsUntilAutoPlay = false;
FilterString movingCardsUntilFilter;
int movingCardsUntilCounter = 0;
void stopMoveTopCardsUntil();
@ -321,7 +322,7 @@ private:
CardRelation::AttachType attach = CardRelation::DoesNotAttach,
bool persistent = false);
bool createRelatedFromRelation(const CardItem *sourceCard, const CardRelation *cardRelation);
void moveOneCardUntil(const CardInfoPtr card);
void moveOneCardUntil(CardItem *card);
void addPlayerToList(QMenu *playerList, Player *player);
static void removePlayerFromList(QMenu *playerList, Player *player);