mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
cipt code
This commit is contained in:
parent
888a64b0fd
commit
388e9255c7
10 changed files with 73 additions and 41 deletions
|
|
@ -173,8 +173,11 @@ void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
|||
if (tz)
|
||||
tz->toggleTapped();
|
||||
else {
|
||||
bool faceDown = event->modifiers().testFlag(Qt::ShiftModifier);
|
||||
bool tapped = info->getCipt();
|
||||
|
||||
TableZone *table = zone->getPlayer()->getTable();
|
||||
QPoint gridPoint = table->getFreeGridPoint(info->getTableRow());
|
||||
table->handleDropEventByGrid(id, zone, gridPoint, false);
|
||||
table->handleDropEventByGrid(id, zone, gridPoint, faceDown, tapped);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue