mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-22 09:35:08 -07:00
* [Game] Playmats Took 19 seconds Took 1 minute * [Playmats] Add fixed override and configurable fallbacks to settings. Took 29 minutes Took 43 seconds * Add main to test. Took 1 minute Took 29 seconds * Move settings to own group Took 11 minutes * Some attempts to refresh macOS compositor Took 2 minutes * Try something else Took 17 minutes * Don't manipulate live list Took 11 minutes * Change things about resolution, address comments. Took 45 minutes Took 12 minutes * Comments. Took 14 minutes Took 8 seconds * Re-order settings menu location Took 2 minutes * Rename PlaymatResolution to Info and add enums Took 8 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
36 lines
1,008 B
C++
36 lines
1,008 B
C++
/**
|
|
* @file stack_zone.h
|
|
* @ingroup GameGraphicsZones
|
|
* @brief Graphical zone for the stack, displaying cards in a vertical pile.
|
|
*/
|
|
|
|
#ifndef STACKZONE_H
|
|
#define STACKZONE_H
|
|
|
|
#include "../../game/zones/stack_zone_logic.h"
|
|
#include "select_zone.h"
|
|
|
|
class StackZone : public SelectZone
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
qreal zoneHeight;
|
|
bool playmatActive = false;
|
|
private slots:
|
|
void updateBg();
|
|
|
|
public slots:
|
|
void onPlaymatChanged(bool active);
|
|
|
|
public:
|
|
StackZone(StackZoneLogic *_logic, int _zoneHeight, QGraphicsItem *parent);
|
|
/** @brief Resizes the stack zone height, e.g. when sharing vertical space with the command zone. */
|
|
void setHeight(qreal newHeight);
|
|
void
|
|
handleDropEvent(const QList<CardDragItem *> &dragItems, CardZoneLogic *startZone, const QPoint &dropPoint) override;
|
|
QRectF boundingRect() const override;
|
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
|
void reorganizeCards() override;
|
|
};
|
|
|
|
#endif
|