mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
Progress.
This commit is contained in:
parent
da4ba222c0
commit
be2883ff01
5 changed files with 14 additions and 1 deletions
|
|
@ -504,6 +504,9 @@ private:
|
|||
{"Player/aDoesntUntap", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Toggle Skip Untapping"),
|
||||
parseSequenceString("Alt+U"),
|
||||
ShortcutGroup::Playing_Area)},
|
||||
{"Player/aDoesntUntapOnce", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Toggle Skip Untapping Once"),
|
||||
parseSequenceString(""),
|
||||
ShortcutGroup::Playing_Area)},
|
||||
{"Player/aFlip", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Turn Card Over"),
|
||||
parseSequenceString("Alt+F"),
|
||||
ShortcutGroup::Playing_Area)},
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ private:
|
|||
QString annotation;
|
||||
QString pt;
|
||||
bool doesntUntap = false;
|
||||
bool doesntUntapOnce = false;
|
||||
bool destroyOnZoneChange = false;
|
||||
|
||||
CardItem *attachedTo = nullptr;
|
||||
|
|
|
|||
|
|
@ -105,6 +105,11 @@ public:
|
|||
return state->getDoesntUntap();
|
||||
}
|
||||
void setDoesntUntap(bool _doesntUntap);
|
||||
[[nodiscard]] bool getDoesntUntapOnce() const
|
||||
{
|
||||
return state->getDoesntUntapOnce();
|
||||
}
|
||||
void setDoesntUntapOnce(bool _doesntUntapOnce);
|
||||
[[nodiscard]] QString getPT() const
|
||||
{
|
||||
return state->getPT();
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ CardMenu::CardMenu(PlayerGraphicsItem *_player, const CardItem *_card, bool _sho
|
|||
// Actions using invoke (type dispatch, need selection)
|
||||
aTap = makeAction(this, invoke(cmTap));
|
||||
aDoesntUntap = makeAction(this, invoke(cmDoesntUntap), /*checkable=*/true, card && card->getDoesntUntap());
|
||||
aDoesntUntapOnce = makeAction(this, invoke(cmDoesntUntapOnce), /*checkable=*/true, card && card->getDoesntUntapOnce());
|
||||
aFlip = makeAction(this, invoke(cmFlip));
|
||||
aPeek = makeAction(this, invoke(cmPeek));
|
||||
aClone = makeAction(this, invoke(cmClone));
|
||||
|
|
@ -196,6 +197,7 @@ void CardMenu::createTableMenu(bool canModifyCard)
|
|||
|
||||
addAction(aTap);
|
||||
addAction(aDoesntUntap);
|
||||
addAction(aDoesntUntapOnce);
|
||||
addAction(aFlip);
|
||||
if (card->getFaceDown()) {
|
||||
addAction(aPeek);
|
||||
|
|
@ -491,6 +493,7 @@ void CardMenu::retranslateUi()
|
|||
//: Turn sideways or back again
|
||||
aTap->setText(tr("&Tap / Untap"));
|
||||
aDoesntUntap->setText(tr("Skip &untapping"));
|
||||
aDoesntUntapOnce->setText(tr("Skip &untapping once"));
|
||||
//: Turn face up/face down
|
||||
aFlip->setText(tr("T&urn Over")); // Only the user facing names in client got renamed to "turn over"
|
||||
// All code and proto bits are still unchanged (flip) for compatibility reasons
|
||||
|
|
@ -529,6 +532,7 @@ void CardMenu::setShortcutsActive()
|
|||
|
||||
aTap->setShortcuts(shortcuts.getShortcut("Player/aTap"));
|
||||
aDoesntUntap->setShortcuts(shortcuts.getShortcut("Player/aDoesntUntap"));
|
||||
aDoesntUntapOnce->setShortcuts(shortcuts.getShortcut("Player/aDoesntUntapOnce"));
|
||||
aFlip->setShortcuts(shortcuts.getShortcut("Player/aFlip"));
|
||||
aPeek->setShortcuts(shortcuts.getShortcut("Player/aPeek"));
|
||||
aClone->setShortcuts(shortcuts.getShortcut("Player/aClone"));
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public:
|
|||
QAction *aClone;
|
||||
QAction *aSelectAll, *aSelectRow, *aSelectColumn;
|
||||
QAction *aDrawArrow;
|
||||
QAction *aTap, *aDoesntUntap;
|
||||
QAction *aTap, *aDoesntUntap, *aDoesntUntapOnce;
|
||||
QAction *aFlip, *aPeek;
|
||||
QAction *aAttach, *aUnattach;
|
||||
QAction *aSetAnnotation;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue