From 30b8fd45a3a675fb5f34914283f90570fa6a9883 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Mon, 26 Sep 2011 16:03:42 +0300 Subject: [PATCH] Menu items in correct places again Also, font size and positioning of choosing a levelset are now fit for fremantle. --- seascene.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/seascene.cpp b/seascene.cpp index 857ef7f..c4ad9cd 100644 --- a/seascene.cpp +++ b/seascene.cpp @@ -646,7 +646,7 @@ void SeaScene::prepareForMenu(QGraphicsItem * pItem) //They are also shown and hidden with it, resulting in the menu being visble when the game is paused //Their coordinates are given relative to the parent. - int itemsPerRow = 3; + int itemsPerRow = 4; pItem->setParentItem(pPausetextItem_); @@ -655,12 +655,10 @@ void SeaScene::prepareForMenu(QGraphicsItem * pItem) int row = menuItemCount_/(itemsPerRow); pItem->setY(150+row*120); - pItem->setX(((menuItemCount_%(itemsPerRow))*180+5)); + pItem->setX(((menuItemCount_%(itemsPerRow))*180-125)); menuItemCount_++; - - pItem->setX((menuItemCount_++%itemsPerRow)*180-10); } @@ -902,11 +900,11 @@ void SeaScene::createSelectLevelsetFromListItems() pSelectLevelsetFromListItem_ = new QGraphicsTextItem; addItem(pSelectLevelsetFromListItem_); - pSelectLevelsetFromListItem_->setPos(295,60); + pSelectLevelsetFromListItem_->setPos(260,60); pSelectLevelsetFromListItem_->setZValue(1000); pSelectLevelsetFromListItem_->hide(); - QString fontstring (""); + QString fontstring (""); pSelectLevelsetFromListItem_->setHtml(tr("Choose a levelset").prepend(fontstring)); -- 1.7.9.5