mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 00:53:57 -07:00
Add menu option and shortcut to auto increment counters (#6055)
* Add method to increment all counters on cards on table * add keyboard shortcut * register action for menu * register action for menu * Change menu text * Move to Counters submenu * Change function name * Change menu, update function to handle selected vs non selected cards * Use getShortcut instead of getSingleShortcut Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com> --------- Co-authored-by: Paul Carroll <paul.x.carroll@questdiagnostics.com> Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com> Co-authored-by: Zach H <zahalpern+github@gmail.com>
This commit is contained in:
parent
04be0fe634
commit
d6243a2dd2
3 changed files with 58 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ private:
|
|||
QAction *aPlay, *aPlayFacedown, *aHide, *aTap, *aDoesntUntap, *aAttach, *aUnattach, *aDrawArrow, *aSetPT, *aResetPT,
|
||||
*aIncP, *aDecP, *aIncT, *aDecT, *aIncPT, *aDecPT, *aFlowP, *aFlowT, *aSetAnnotation, *aFlip, *aPeek, *aClone,
|
||||
*aMoveToTopLibrary, *aMoveToBottomLibrary, *aMoveToHand, *aMoveToGraveyard, *aMoveToExile,
|
||||
*aMoveToXfromTopOfLibrary, *aSelectAll, *aSelectRow, *aSelectColumn;
|
||||
*aMoveToXfromTopOfLibrary, *aSelectAll, *aSelectRow, *aSelectColumn, *aIncrementAllCardCounters;
|
||||
|
||||
bool movingCardsUntil;
|
||||
QTimer *moveTopCardTimer;
|
||||
|
|
@ -420,6 +420,7 @@ public:
|
|||
AbstractCounter *addCounter(int counterId, const QString &name, QColor color, int radius, int value);
|
||||
void delCounter(int counterId);
|
||||
void clearCounters();
|
||||
void incrementAllCardCounters();
|
||||
|
||||
ArrowItem *addArrow(const ServerInfo_Arrow &arrow);
|
||||
ArrowItem *addArrow(int arrowId, CardItem *startCard, ArrowTarget *targetItem, const QColor &color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue