mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 00:53:57 -07:00
Mana counter shortcut (#2821)
This commit is contained in:
parent
dd05b86bc9
commit
3963570838
7 changed files with 342 additions and 21 deletions
|
|
@ -15,7 +15,7 @@ protected:
|
|||
int id;
|
||||
QString name;
|
||||
int value;
|
||||
bool hovered;
|
||||
bool useNameForShortcut, hovered;
|
||||
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
|
||||
|
|
@ -30,7 +30,7 @@ private slots:
|
|||
void incrementCounter();
|
||||
void setCounter();
|
||||
public:
|
||||
AbstractCounter(Player *_player, int _id, const QString &_name, bool _shownInCounterArea, int _value, QGraphicsItem *parent = 0);
|
||||
AbstractCounter(Player *_player, int _id, const QString &_name, bool _shownInCounterArea, int _value, bool _useNameForShortcut = false, QGraphicsItem *parent = 0);
|
||||
~AbstractCounter();
|
||||
|
||||
QMenu *getMenu() const { return menu; }
|
||||
|
|
@ -42,7 +42,7 @@ public:
|
|||
int getValue() const { return value; }
|
||||
void setValue(int _value);
|
||||
void delCounter();
|
||||
|
||||
|
||||
void setShortcutsActive();
|
||||
void setShortcutsInactive();
|
||||
bool shortcutActive;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue