mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
implement fix
This commit is contained in:
parent
ac16206ddb
commit
b81cba1784
1 changed files with 9 additions and 0 deletions
|
|
@ -995,6 +995,15 @@ void Player::setShortcutsActive()
|
||||||
aMoveBottomCardToTop->setShortcut(shortcuts.getSingleShortcut("Player/aMoveBottomCardToTop"));
|
aMoveBottomCardToTop->setShortcut(shortcuts.getSingleShortcut("Player/aMoveBottomCardToTop"));
|
||||||
aPlayFacedown->setShortcut(shortcuts.getSingleShortcut("Player/aPlayFacedown"));
|
aPlayFacedown->setShortcut(shortcuts.getSingleShortcut("Player/aPlayFacedown"));
|
||||||
aPlay->setShortcut(shortcuts.getSingleShortcut("Player/aPlay"));
|
aPlay->setShortcut(shortcuts.getSingleShortcut("Player/aPlay"));
|
||||||
|
|
||||||
|
if (!game->getIsLocalGame()) {
|
||||||
|
/* Attach all card menu actions that also work on the opponent's cards to the TabGame object so that those
|
||||||
|
* shortcuts will be active regardless of whether your card menu currently exists.
|
||||||
|
* Added as a workaround to get the clone keyboard shortcut to work on opponent's cards.
|
||||||
|
*/
|
||||||
|
game->addAction(aClone);
|
||||||
|
game->addAction(aDrawArrow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::setShortcutsInactive()
|
void Player::setShortcutsInactive()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue