mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
implement /card command (#5413)
This commit is contained in:
parent
68226786a2
commit
38e99f2e87
1 changed files with 6 additions and 0 deletions
|
|
@ -765,6 +765,12 @@ void TabGame::actSay()
|
|||
if (completer->popup()->isVisible())
|
||||
return;
|
||||
|
||||
if (sayEdit->text().startsWith("/card ")) {
|
||||
cardInfoFrameWidget->setCard(sayEdit->text().mid(6));
|
||||
sayEdit->clear();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!sayEdit->text().isEmpty()) {
|
||||
Command_GameSay cmd;
|
||||
cmd.set_message(sayEdit->text().toStdString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue