From ca2e9ae50658b1745e76864ec97ad831de69058a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Tue, 26 Jul 2011 18:32:51 +0300 Subject: [PATCH] Centered the texts in victory screen (Still in fremantle positions) Conflicts: seascene.cpp --- seascene.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/seascene.cpp b/seascene.cpp index 94c38e7..b5d8631 100644 --- a/seascene.cpp +++ b/seascene.cpp @@ -652,17 +652,23 @@ void SeaScene::createVictoryItems() pVictoryCongratulationsItem_->setZValue(1000); addItem(pVictoryCongratulationsItem_); -// QGraphicsPixmapItem * pImageItem = new QGraphicsPixmapItem(QPixmap(":/pix/aavesaari.png"),pVictoryCongratulationsItem_); -// pImageItem->setPos(-100,150); -// pImageItem->setZValue(1000); -// pImageItem->setScale(2.0); + //coordinates are relative to the parent QGraphicsTextItem * pTextItem = new QGraphicsTextItem(pVictoryCongratulationsItem_); - pTextItem->setHtml("
Congratulations!
You have saved all the ghosts." - "

Tap to play again "); + pTextItem->setHtml(" Congratulations!"); pTextItem->setPos(-50,100); pTextItem->setZValue(1000); + + QGraphicsTextItem * pMiddleTextItem = new QGraphicsTextItem(pVictoryCongratulationsItem_); + pMiddleTextItem->setHtml(" You have saved all the ghosts."); + pMiddleTextItem->setPos(-145,140); + pMiddleTextItem->setZValue(1000); + + QGraphicsTextItem * pLowestTextItem = new QGraphicsTextItem(pVictoryCongratulationsItem_); + pLowestTextItem->setHtml(" Tap to play again"); + pLowestTextItem->setPos(-50,220); + pLowestTextItem->setZValue(1000); } -- 1.7.9.5