mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
trying to get rid of ZoneViewLayout
This commit is contained in:
parent
e9a0203880
commit
8295b49634
10 changed files with 62 additions and 148 deletions
|
|
@ -379,7 +379,7 @@ void Player::initSayMenu()
|
|||
|
||||
void Player::actViewLibrary()
|
||||
{
|
||||
emit toggleZoneView(this, "deck", -1);
|
||||
static_cast<GameScene *>(scene())->toggleZoneView(this, "deck", -1);
|
||||
}
|
||||
|
||||
void Player::actViewTopCards()
|
||||
|
|
@ -388,23 +388,23 @@ void Player::actViewTopCards()
|
|||
int number = QInputDialog::getInteger(0, tr("View top cards of library"), tr("Number of cards:"), defaultNumberTopCards, 1, 2000000000, 1, &ok);
|
||||
if (ok) {
|
||||
defaultNumberTopCards = number;
|
||||
emit toggleZoneView(this, "deck", number);
|
||||
static_cast<GameScene *>(scene())->toggleZoneView(this, "deck", number);
|
||||
}
|
||||
}
|
||||
|
||||
void Player::actViewGraveyard()
|
||||
{
|
||||
emit toggleZoneView(this, "grave", -1);
|
||||
static_cast<GameScene *>(scene())->toggleZoneView(this, "grave", -1);
|
||||
}
|
||||
|
||||
void Player::actViewRfg()
|
||||
{
|
||||
emit toggleZoneView(this, "rfg", -1);
|
||||
static_cast<GameScene *>(scene())->toggleZoneView(this, "rfg", -1);
|
||||
}
|
||||
|
||||
void Player::actViewSideboard()
|
||||
{
|
||||
emit toggleZoneView(this, "sb", -1);
|
||||
static_cast<GameScene *>(scene())->toggleZoneView(this, "sb", -1);
|
||||
}
|
||||
|
||||
void Player::actShuffle()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue