Took 3 minutes
This commit is contained in:
Lukas Brübach 2025-09-09 21:32:33 +02:00
parent b478026f6c
commit 27580f1d4a
4 changed files with 16 additions and 14 deletions

View file

@ -323,7 +323,8 @@ void PlayerActions::actDrawCards()
int deckSize = player->getDeckZone()->getCards().size();
bool ok;
int number = QInputDialog::getInt(/* player->getGame() */ nullptr, tr("Draw cards"),
tr("Number of cards: (max. %1)").arg(deckSize), defaultNumberTopCards, 1, deckSize, 1, &ok);
tr("Number of cards: (max. %1)").arg(deckSize), defaultNumberTopCards, 1,
deckSize, 1, &ok);
if (ok) {
defaultNumberTopCards = number;
Command_DrawCards cmd;
@ -747,7 +748,8 @@ void PlayerActions::actDrawBottomCards()
bool ok;
int number = QInputDialog::getInt(/* player->getGame() */ nullptr, tr("Draw bottom cards"),
tr("Number of cards: (max. %1)").arg(maxCards), defaultNumberBottomCards, 1, maxCards, 1, &ok);
tr("Number of cards: (max. %1)").arg(maxCards), defaultNumberBottomCards, 1,
maxCards, 1, &ok);
if (!ok) {
return;
} else if (number > maxCards) {