mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Allow annotations on face-down tokens
This commit is contained in:
parent
8a93f70b65
commit
c292979f10
2 changed files with 2 additions and 5 deletions
|
|
@ -63,7 +63,7 @@ DlgCreateToken::DlgCreateToken(const QStringList &_predefinedTokens, QWidget *pa
|
|||
destroyCheckBox = new QCheckBox(tr("&Destroy token when it leaves the table"));
|
||||
destroyCheckBox->setChecked(true);
|
||||
|
||||
faceDownCheckBox = new QCheckBox(tr("Create face-down token"));
|
||||
faceDownCheckBox = new QCheckBox(tr("Create face-down (Only hides name)"));
|
||||
connect(faceDownCheckBox, &QCheckBox::toggled, this, &DlgCreateToken::faceDownCheckBoxToggled);
|
||||
|
||||
QGridLayout *grid = new QGridLayout;
|
||||
|
|
@ -167,9 +167,6 @@ void DlgCreateToken::faceDownCheckBoxToggled(bool checked)
|
|||
ptEdit->clear();
|
||||
ptEdit->clearFocus();
|
||||
ptEdit->setEnabled(false);
|
||||
annotationEdit->clear();
|
||||
annotationEdit->clearFocus();
|
||||
annotationEdit->setEnabled(false);
|
||||
} else {
|
||||
colorEdit->setEnabled(true);
|
||||
ptEdit->setEnabled(true);
|
||||
|
|
|
|||
|
|
@ -1519,8 +1519,8 @@ Server_Player::cmdCreateToken(const Command_CreateToken &cmd, ResponseContainer
|
|||
if (!cmd.face_down()) {
|
||||
card->setColor(nameFromStdString(cmd.color()));
|
||||
card->setPT(nameFromStdString(cmd.pt()));
|
||||
card->setAnnotation(nameFromStdString(cmd.annotation()));
|
||||
}
|
||||
card->setAnnotation(nameFromStdString(cmd.annotation()));
|
||||
card->setDestroyOnZoneChange(cmd.destroy_on_zone_change());
|
||||
card->setFaceDown(cmd.face_down());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue