mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
Sending card name to chat on shift+click (#3106)
This commit is contained in:
parent
8084ab605f
commit
11ad677fe8
5 changed files with 16 additions and 3 deletions
|
|
@ -431,6 +431,12 @@ void TabGame::addMentionTag(QString value)
|
|||
sayEdit->setFocus();
|
||||
}
|
||||
|
||||
void TabGame::linkCardToChat(QString cardName)
|
||||
{
|
||||
sayEdit->insert("[[" + cardName + "]] ");
|
||||
sayEdit->setFocus();
|
||||
}
|
||||
|
||||
void TabGame::emitUserEvent()
|
||||
{
|
||||
bool globalEvent = !spectator || settingsCache->getSpectatorNotificationsEnabled();
|
||||
|
|
@ -1224,6 +1230,7 @@ void TabGame::newCardAdded(AbstractCardItem *card)
|
|||
connect(card, SIGNAL(showCardInfoPopup(QPoint, QString)), this, SLOT(showCardInfoPopup(QPoint, QString)));
|
||||
connect(card, SIGNAL(deleteCardInfoPopup(QString)), this, SLOT(deleteCardInfoPopup(QString)));
|
||||
connect(card, SIGNAL(updateCardMenu(AbstractCardItem *)), this, SLOT(updateCardMenu(AbstractCardItem *)));
|
||||
connect(card, SIGNAL(cardShiftClicked(QString)), this, SLOT(linkCardToChat(QString)));
|
||||
}
|
||||
|
||||
CardItem *TabGame::getCard(int playerId, const QString &zoneName, int cardId) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue