X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=seascene.cpp;h=c4ad9cdee30bf5c97f223c2fddeefbd94461ac78;hb=30b8fd45a3a675fb5f34914283f90570fa6a9883;hp=857ef7fc061de0cf0b5a4442c63bfb95a43dece3;hpb=7d48c628262e236d249b0f0a1a777b2a75478f47;p=ghostsoverboard 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));