mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 19:43:55 -07:00
improved card dragging
This commit is contained in:
parent
680d5ab84c
commit
0f272a2f51
9 changed files with 115 additions and 74 deletions
|
|
@ -13,13 +13,6 @@ const int CARD_HEIGHT = 102;
|
|||
const int RASTER_WIDTH = 36;
|
||||
const int RASTER_HEIGHT = 34;
|
||||
|
||||
/*
|
||||
const int CARD_WIDTH = 72;
|
||||
const int CARD_HEIGHT = 108;
|
||||
const int RASTER_WIDTH = 36;
|
||||
const int RASTER_HEIGHT = 36;
|
||||
*/
|
||||
|
||||
const int MAX_COUNTERS_ON_CARD = 999;
|
||||
|
||||
enum CardItemType {
|
||||
|
|
@ -66,7 +59,7 @@ public:
|
|||
void setDoesntUntap(bool _doesntUntap);
|
||||
void resetState();
|
||||
|
||||
CardDragItem *createDragItem(CardZone *startZone, int _id, const QPointF &_pos, const QPointF &_scenePos, bool faceDown);
|
||||
CardDragItem *createDragItem(int _id, const QPointF &_pos, const QPointF &_scenePos, bool faceDown);
|
||||
void deleteDragItem();
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue