Submenus for moving all cards in a zone to another
This commit is contained in:
parent
2850e9e9ad
commit
cc14e3cfc6
2 changed files with 37 additions and 28 deletions
|
@ -245,14 +245,15 @@ Player::Player(const ServerInfo_User &info, int _id, bool _local, TabGame *_pare
|
||||||
|
|
||||||
if (local) {
|
if (local) {
|
||||||
handMenu = playerMenu->addMenu(QString());
|
handMenu = playerMenu->addMenu(QString());
|
||||||
handMenu->addAction(aMulligan);
|
|
||||||
handMenu->addAction(aMoveHandToTopLibrary);
|
|
||||||
handMenu->addAction(aMoveHandToBottomLibrary);
|
|
||||||
handMenu->addAction(aMoveHandToGrave);
|
|
||||||
handMenu->addAction(aMoveHandToRfg);
|
|
||||||
handMenu->addSeparator();
|
|
||||||
playerLists.append(mRevealHand = handMenu->addMenu(QString()));
|
playerLists.append(mRevealHand = handMenu->addMenu(QString()));
|
||||||
playerLists.append(mRevealRandomHandCard = handMenu->addMenu(QString()));
|
playerLists.append(mRevealRandomHandCard = handMenu->addMenu(QString()));
|
||||||
|
handMenu->addSeparator();
|
||||||
|
handMenu->addAction(aMulligan);
|
||||||
|
moveHandMenu = handMenu->addMenu(QString());
|
||||||
|
moveHandMenu->addAction(aMoveHandToTopLibrary);
|
||||||
|
moveHandMenu->addAction(aMoveHandToBottomLibrary);
|
||||||
|
moveHandMenu->addAction(aMoveHandToGrave);
|
||||||
|
moveHandMenu->addAction(aMoveHandToRfg);
|
||||||
hand->setMenu(handMenu);
|
hand->setMenu(handMenu);
|
||||||
|
|
||||||
libraryMenu = playerMenu->addMenu(QString());
|
libraryMenu = playerMenu->addMenu(QString());
|
||||||
|
@ -290,16 +291,18 @@ Player::Player(const ServerInfo_User &info, int _id, bool _local, TabGame *_pare
|
||||||
|
|
||||||
if (local) {
|
if (local) {
|
||||||
graveMenu->addSeparator();
|
graveMenu->addSeparator();
|
||||||
graveMenu->addAction(aMoveGraveToTopLibrary);
|
moveGraveMenu = graveMenu->addMenu(QString());
|
||||||
graveMenu->addAction(aMoveGraveToBottomLibrary);
|
moveGraveMenu->addAction(aMoveGraveToTopLibrary);
|
||||||
graveMenu->addAction(aMoveGraveToHand);
|
moveGraveMenu->addAction(aMoveGraveToBottomLibrary);
|
||||||
graveMenu->addAction(aMoveGraveToRfg);
|
moveGraveMenu->addAction(aMoveGraveToHand);
|
||||||
|
moveGraveMenu->addAction(aMoveGraveToRfg);
|
||||||
|
|
||||||
rfgMenu->addSeparator();
|
rfgMenu->addSeparator();
|
||||||
rfgMenu->addAction(aMoveRfgToTopLibrary);
|
moveRfgMenu = rfgMenu->addMenu(QString());
|
||||||
rfgMenu->addAction(aMoveRfgToBottomLibrary);
|
moveRfgMenu->addAction(aMoveRfgToTopLibrary);
|
||||||
rfgMenu->addAction(aMoveRfgToHand);
|
moveRfgMenu->addAction(aMoveRfgToBottomLibrary);
|
||||||
rfgMenu->addAction(aMoveRfgToGrave);
|
moveRfgMenu->addAction(aMoveRfgToHand);
|
||||||
|
moveRfgMenu->addAction(aMoveRfgToGrave);
|
||||||
|
|
||||||
sbMenu = playerMenu->addMenu(QString());
|
sbMenu = playerMenu->addMenu(QString());
|
||||||
sbMenu->addAction(aViewSideboard);
|
sbMenu->addAction(aViewSideboard);
|
||||||
|
@ -585,18 +588,24 @@ void Player::retranslateUi()
|
||||||
rfgMenu->setTitle(tr("&Exile"));
|
rfgMenu->setTitle(tr("&Exile"));
|
||||||
|
|
||||||
if (local) {
|
if (local) {
|
||||||
aMoveHandToTopLibrary->setText(tr("Move to &top of library"));
|
moveHandMenu->setTitle(tr("&Move hand to"));
|
||||||
aMoveHandToBottomLibrary->setText(tr("Move to &bottom of library"));
|
aMoveHandToTopLibrary->setText(tr("&top of library"));
|
||||||
aMoveHandToGrave->setText(tr("Move to &graveyard"));
|
aMoveHandToBottomLibrary->setText(tr("&bottom of library"));
|
||||||
aMoveHandToRfg->setText(tr("Move to &exile"));
|
aMoveHandToGrave->setText(tr("&graveyard"));
|
||||||
aMoveGraveToTopLibrary->setText(tr("Move to &top of library"));
|
aMoveHandToRfg->setText(tr("&exile"));
|
||||||
aMoveGraveToBottomLibrary->setText(tr("Move to &bottom of library"));
|
|
||||||
aMoveGraveToHand->setText(tr("Move to &hand"));
|
moveGraveMenu->setTitle(tr("&Move graveyard to"));
|
||||||
aMoveGraveToRfg->setText(tr("Move to &exile"));
|
aMoveGraveToTopLibrary->setText(tr("&top of library"));
|
||||||
aMoveRfgToTopLibrary->setText(tr("Move to &top of library"));
|
aMoveGraveToBottomLibrary->setText(tr("&bottom of library"));
|
||||||
aMoveRfgToBottomLibrary->setText(tr("Move to &bottom of library"));
|
aMoveGraveToHand->setText(tr("&hand"));
|
||||||
aMoveRfgToHand->setText(tr("Move to &hand"));
|
aMoveGraveToRfg->setText(tr("&exile"));
|
||||||
aMoveRfgToGrave->setText(tr("Move to &graveyard"));
|
|
||||||
|
moveRfgMenu->setTitle(tr("&Move exile to"));
|
||||||
|
aMoveRfgToTopLibrary->setText(tr("&top of library"));
|
||||||
|
aMoveRfgToBottomLibrary->setText(tr("&bottom of library"));
|
||||||
|
aMoveRfgToHand->setText(tr("&hand"));
|
||||||
|
aMoveRfgToGrave->setText(tr("&graveyard"));
|
||||||
|
|
||||||
aViewLibrary->setText(tr("&View library"));
|
aViewLibrary->setText(tr("&View library"));
|
||||||
aViewTopCards->setText(tr("View &top cards of library..."));
|
aViewTopCards->setText(tr("View &top cards of library..."));
|
||||||
mRevealLibrary->setTitle(tr("Reveal &library to"));
|
mRevealLibrary->setTitle(tr("Reveal &library to"));
|
||||||
|
@ -615,7 +624,7 @@ void Player::retranslateUi()
|
||||||
aMoveBottomCardToGrave->setText(tr("Put bottom card &in graveyard"));
|
aMoveBottomCardToGrave->setText(tr("Put bottom card &in graveyard"));
|
||||||
|
|
||||||
handMenu->setTitle(tr("&Hand"));
|
handMenu->setTitle(tr("&Hand"));
|
||||||
mRevealHand->setTitle(tr("&Reveal to"));
|
mRevealHand->setTitle(tr("&Reveal hand to"));
|
||||||
mRevealRandomHandCard->setTitle(tr("Reveal r&andom card to"));
|
mRevealRandomHandCard->setTitle(tr("Reveal r&andom card to"));
|
||||||
sbMenu->setTitle(tr("&Sideboard"));
|
sbMenu->setTitle(tr("&Sideboard"));
|
||||||
libraryMenu->setTitle(tr("&Library"));
|
libraryMenu->setTitle(tr("&Library"));
|
||||||
|
|
|
@ -159,7 +159,7 @@ private slots:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TabGame *game;
|
TabGame *game;
|
||||||
QMenu *playerMenu, *handMenu, *graveMenu, *rfgMenu, *libraryMenu, *sbMenu, *countersMenu, *sayMenu, *createPredefinedTokenMenu,
|
QMenu *playerMenu, *handMenu, *moveHandMenu, *graveMenu, *moveGraveMenu, *rfgMenu, *moveRfgMenu, *libraryMenu, *sbMenu, *countersMenu, *sayMenu, *createPredefinedTokenMenu,
|
||||||
*mRevealLibrary, *mRevealTopCard, *mRevealHand, *mRevealRandomHandCard;
|
*mRevealLibrary, *mRevealTopCard, *mRevealHand, *mRevealRandomHandCard;
|
||||||
QList<QMenu *> playerLists;
|
QList<QMenu *> playerLists;
|
||||||
QList<QAction *> allPlayersActions;
|
QList<QAction *> allPlayersActions;
|
||||||
|
|
Loading…
Reference in a new issue