* make cards on the stack slightly overlap to stress order dragging cards to the stack now places the card at the location it is dropped * make default play action append to stack * add vertical overlap to settings and vertical hand * Update cockatrice/src/dlg_settings.cpp Co-authored-by: tooomm <tooomm@users.noreply.github.com> * Fix format --------- Co-authored-by: tooomm <tooomm@users.noreply.github.com> Co-authored-by: ZeldaZach <zahalpern+github@gmail.com>
29 lines
740 B
C++
29 lines
740 B
C++
#ifndef SELECTZONE_H
|
|
#define SELECTZONE_H
|
|
|
|
#include "cardzone.h"
|
|
|
|
class SelectZone : public CardZone
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QPointF selectionOrigin;
|
|
|
|
protected:
|
|
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
|
|
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
|
|
|
|
public:
|
|
SelectZone(Player *_player,
|
|
const QString &_name,
|
|
bool _hasCardAttr,
|
|
bool _isShufflable,
|
|
bool _contentsKnown,
|
|
QGraphicsItem *parent = nullptr,
|
|
bool isView = false);
|
|
};
|
|
|
|
qreal divideCardSpaceInZone(qreal index, int cardCount, qreal totalHeight, qreal cardHeight, bool reverse = false);
|
|
|
|
#endif
|