mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-12 15:49:28 -08:00
Create "Hand" shortcut group (#6296)
* Add new Hand ShortcutGroup * Move hand shortcuts
This commit is contained in:
@@ -33,6 +33,7 @@ public:
|
|||||||
Move_bottom,
|
Move_bottom,
|
||||||
Gameplay,
|
Gameplay,
|
||||||
Drawing,
|
Drawing,
|
||||||
|
Hand,
|
||||||
Chat_room,
|
Chat_room,
|
||||||
Game_window,
|
Game_window,
|
||||||
Load_deck,
|
Load_deck,
|
||||||
@@ -71,6 +72,8 @@ public:
|
|||||||
return QApplication::translate("shortcutsTab", "Gameplay");
|
return QApplication::translate("shortcutsTab", "Gameplay");
|
||||||
case Drawing:
|
case Drawing:
|
||||||
return QApplication::translate("shortcutsTab", "Drawing");
|
return QApplication::translate("shortcutsTab", "Drawing");
|
||||||
|
case Hand:
|
||||||
|
return QApplication::translate("shortcutsTab", "Hand");
|
||||||
case Chat_room:
|
case Chat_room:
|
||||||
return QApplication::translate("shortcutsTab", "Chat Room");
|
return QApplication::translate("shortcutsTab", "Chat Room");
|
||||||
case Game_window:
|
case Game_window:
|
||||||
@@ -562,15 +565,6 @@ private:
|
|||||||
ShortcutGroup::Move_selected)},
|
ShortcutGroup::Move_selected)},
|
||||||
{"Player/aViewHand",
|
{"Player/aViewHand",
|
||||||
ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Hand"), parseSequenceString(""), ShortcutGroup::View)},
|
ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Hand"), parseSequenceString(""), ShortcutGroup::View)},
|
||||||
{"Player/aSortHandByName", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Name"),
|
|
||||||
parseSequenceString(""),
|
|
||||||
ShortcutGroup::View)},
|
|
||||||
{"Player/aSortHandByType", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Type"),
|
|
||||||
parseSequenceString("Ctrl+Shift+H"),
|
|
||||||
ShortcutGroup::View)},
|
|
||||||
{"Player/aSortHandByManaValue", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Mana Value"),
|
|
||||||
parseSequenceString(""),
|
|
||||||
ShortcutGroup::View)},
|
|
||||||
{"Player/aViewGraveyard",
|
{"Player/aViewGraveyard",
|
||||||
ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Graveyard"), parseSequenceString("F4"), ShortcutGroup::View)},
|
ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Graveyard"), parseSequenceString("F4"), ShortcutGroup::View)},
|
||||||
{"Player/aViewLibrary",
|
{"Player/aViewLibrary",
|
||||||
@@ -678,6 +672,15 @@ private:
|
|||||||
{"Player/aAlwaysLookAtTopCard", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Always Look At Top Card"),
|
{"Player/aAlwaysLookAtTopCard", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Always Look At Top Card"),
|
||||||
parseSequenceString("Ctrl+Shift+N"),
|
parseSequenceString("Ctrl+Shift+N"),
|
||||||
ShortcutGroup::Drawing)},
|
ShortcutGroup::Drawing)},
|
||||||
|
{"Player/aSortHandByName", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Name"),
|
||||||
|
parseSequenceString(""),
|
||||||
|
ShortcutGroup::Hand)},
|
||||||
|
{"Player/aSortHandByType", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Type"),
|
||||||
|
parseSequenceString("Ctrl+Shift+H"),
|
||||||
|
ShortcutGroup::Hand)},
|
||||||
|
{"Player/aSortHandByManaValue", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Mana Value"),
|
||||||
|
parseSequenceString(""),
|
||||||
|
ShortcutGroup::Hand)},
|
||||||
{"Player/aRotateViewCW", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Rotate View Clockwise"),
|
{"Player/aRotateViewCW", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Rotate View Clockwise"),
|
||||||
parseSequenceString(""),
|
parseSequenceString(""),
|
||||||
ShortcutGroup::Gameplay)},
|
ShortcutGroup::Gameplay)},
|
||||||
|
|||||||
Reference in New Issue
Block a user