From 7ccc23f9020634306726b3348ed50db5c876b99a Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Sat, 2 May 2015 17:52:34 +0200 Subject: [PATCH] Moved zone loactions I have moved the default opening positions of some of the reveal zones. Example: The sideboard will be in the same position as the scry and the random card from hand will be the same as the hand view. --- cockatrice/src/gamescene.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/gamescene.cpp b/cockatrice/src/gamescene.cpp index 34f6c03e..7f2110cd 100644 --- a/cockatrice/src/gamescene.cpp +++ b/cockatrice/src/gamescene.cpp @@ -127,7 +127,12 @@ void GameScene::toggleZoneView(Player *player, const QString &zoneName, int numb zoneViews.append(item); connect(item, SIGNAL(closePressed(ZoneViewWidget *)), this, SLOT(removeZoneView(ZoneViewWidget *))); addItem(item); - item->setPos(50, 50); + if (zoneName=="grave") + item->setPos(360, 100); + else if (zoneName=="rfg") + item->setPos(380, 120); + else + item->setPos(340, 80); } void GameScene::addRevealedZoneView(Player *player, CardZone *zone, const QList &cardList, bool withWritePermission) @@ -136,7 +141,7 @@ void GameScene::addRevealedZoneView(Player *player, CardZone *zone, const QList< zoneViews.append(item); connect(item, SIGNAL(closePressed(ZoneViewWidget *)), this, SLOT(removeZoneView(ZoneViewWidget *))); addItem(item); - item->setPos(50, 50); + item->setPos(600, 80); } void GameScene::removeZoneView(ZoneViewWidget *item)