Add lightbulbs, some more changes to look 0.9.7-release
authorunc0rr
Fri, 31 Oct 2008 20:50:40 +0000
changeset 1457 44cc464de8f3
parent 1456 2539dd079be1
child 1458 56d0f37c3491
Add lightbulbs, some more changes to look
QTfrontend/chatwidget.cpp
QTfrontend/hedgewars.qrc
QTfrontend/pages.cpp
QTfrontend/res/lightbulb_off.png
QTfrontend/res/lightbulb_on.png
--- a/QTfrontend/chatwidget.cpp	Fri Oct 31 20:48:09 2008 +0000
+++ b/QTfrontend/chatwidget.cpp	Fri Oct 31 20:50:40 2008 +0000
@@ -107,7 +107,7 @@
 	}
 
 	if(isReady)
-		items[0]->setIcon(QIcon(":/res/checked.png"));
+		items[0]->setIcon(QIcon(":/res/lightbulb_on.png"));
 	else
-		items[0]->setIcon(QIcon(":/res/unchecked.png"));
+		items[0]->setIcon(QIcon(":/res/lightbulb_off.png"));
 }
--- a/QTfrontend/hedgewars.qrc	Fri Oct 31 20:48:09 2008 +0000
+++ b/QTfrontend/hedgewars.qrc	Fri Oct 31 20:50:40 2008 +0000
@@ -38,6 +38,8 @@
     <file>res/weaponsicon.png</file>
     <file>res/teamicon.png</file>
     <file>res/panelbg.png</file>
+    <file>res/lightbulb_on.png</file>
+    <file>res/lightbulb_off.png</file>
     <file>res/spin_up.png</file>
     <file>res/spin_down.png</file>
 </qresource>
--- a/QTfrontend/pages.cpp	Fri Oct 31 20:48:09 2008 +0000
+++ b/QTfrontend/pages.cpp	Fri Oct 31 20:50:40 2008 +0000
@@ -599,16 +599,20 @@
 	QHBoxLayout * bottomLine = new QHBoxLayout();
 	vLayout->addStretch();
 	vLayout->addLayout(topLine);
+	vLayout->addSpacing(30);
 	vLayout->addLayout(middleLine);
 	vLayout->addStretch();
 	vLayout->addLayout(bottomLine);
 
+	topLine->addStretch();
 	BtnSimpleGamePage = addButton(":/res/SimpleGame.png", topLine, 0, true);
 	BtnSimpleGamePage->setToolTip(tr("Simple Game (a quick game against the computer, settings are chosen for you)"));
-	
+	topLine->addSpacing(60);
 	BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true);
 	BtnMultiplayer->setToolTip(tr("Multiplayer (play a hotseat game against your friends, or AI teams)"));
-//	pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter);
+	topLine->addStretch();
+	
+
 	BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 0, true);
 	BtnTrainPage->setToolTip(tr("Training Mode (Practice your skills in a range of training missions). IN DEVELOPMENT"));
 	
Binary file QTfrontend/res/lightbulb_off.png has changed
Binary file QTfrontend/res/lightbulb_on.png has changed