mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
Add visual indicator to toggle untap button
This commit is contained in:
parent
aa85a39d6a
commit
025d205cbb
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ CardMenu::CardMenu(Player *_player, const CardItem *_card, bool _shortcutsActive
|
||||||
connect(aTap, &QAction::triggered, playerActions, &PlayerActions::cardMenuAction);
|
connect(aTap, &QAction::triggered, playerActions, &PlayerActions::cardMenuAction);
|
||||||
aDoesntUntap = new QAction(this);
|
aDoesntUntap = new QAction(this);
|
||||||
aDoesntUntap->setData(cmDoesntUntap);
|
aDoesntUntap->setData(cmDoesntUntap);
|
||||||
|
aDoesntUntap->setCheckable(true);
|
||||||
|
aDoesntUntap->setChecked(card != nullptr && card->getDoesntUntap());
|
||||||
connect(aDoesntUntap, &QAction::triggered, playerActions, &PlayerActions::cardMenuAction);
|
connect(aDoesntUntap, &QAction::triggered, playerActions, &PlayerActions::cardMenuAction);
|
||||||
aAttach = new QAction(this);
|
aAttach = new QAction(this);
|
||||||
connect(aAttach, &QAction::triggered, playerActions, &PlayerActions::actAttach);
|
connect(aAttach, &QAction::triggered, playerActions, &PlayerActions::actAttach);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue