mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -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())
|
if (completer->popup()->isVisible())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (sayEdit->text().startsWith("/card ")) {
|
||||||
|
cardInfoFrameWidget->setCard(sayEdit->text().mid(6));
|
||||||
|
sayEdit->clear();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!sayEdit->text().isEmpty()) {
|
if (!sayEdit->text().isEmpty()) {
|
||||||
Command_GameSay cmd;
|
Command_GameSay cmd;
|
||||||
cmd.set_message(sayEdit->text().toStdString());
|
cmd.set_message(sayEdit->text().toStdString());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue