mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
phase toolbar fixed
This commit is contained in:
parent
0b98d90337
commit
4d0c9962f4
3 changed files with 11 additions and 6 deletions
|
|
@ -152,20 +152,20 @@ void PhasesToolbar::phaseButtonClicked()
|
|||
PhaseButton *button = qobject_cast<PhaseButton *>(sender());
|
||||
if (button->getActive())
|
||||
button->triggerDoubleClickAction();
|
||||
emit sendGameCommand(new Command_SetActivePhase(-1, buttonList.indexOf(button)));
|
||||
emit sendGameCommand(new Command_SetActivePhase(-1, buttonList.indexOf(button)), -1);
|
||||
}
|
||||
|
||||
void PhasesToolbar::actNextTurn()
|
||||
{
|
||||
emit sendGameCommand(new Command_NextTurn);
|
||||
emit sendGameCommand(new Command_NextTurn, -1);
|
||||
}
|
||||
|
||||
void PhasesToolbar::actUntapAll()
|
||||
{
|
||||
emit sendGameCommand(new Command_SetCardAttr(-1, "table", -1, "tapped", "0"));
|
||||
emit sendGameCommand(new Command_SetCardAttr(-1, "table", -1, "tapped", "0"), -1);
|
||||
}
|
||||
|
||||
void PhasesToolbar::actDrawCard()
|
||||
{
|
||||
emit sendGameCommand(new Command_DrawCards(-1, 1));
|
||||
emit sendGameCommand(new Command_DrawCards(-1, 1), -1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue