ability to directly attach from other zones (#5250)

* add attach and draw arrow actions to more card menus

* implement attaching from other zones

* disallow attaching from deck

* do nothing if target is already attached

* add null check
This commit is contained in:
RickyRister 2024-12-17 20:38:22 -08:00 committed by GitHub
parent c9d5d5609c
commit 03db4ccce6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 89 additions and 13 deletions

View file

@ -88,6 +88,8 @@ class ArrowAttachItem : public ArrowItem
private:
QList<ArrowAttachItem *> childArrows;
void attachCards(CardItem *startCard, const CardItem *targetCard);
public:
ArrowAttachItem(ArrowTarget *_startItem);
void addChildArrow(ArrowAttachItem *childArrow);