Descriptions for the tooltip buttons. Rename btnInvurnable to btnInvulnerable
authornemo
Sun, 03 May 2009 21:38:56 +0000
changeset 2026 21c986c528ba
parent 2025 692308790912
child 2027 7c051453a487
Descriptions for the tooltip buttons. Rename btnInvurnable to btnInvulnerable
QTfrontend/SDLs.cpp
QTfrontend/hedgewars.qrc
QTfrontend/hwform.cpp
QTfrontend/pages.cpp
QTfrontend/res/btnInvulnerable.png
QTfrontend/res/btnInvurnable.png
--- a/QTfrontend/SDLs.cpp	Sun May 03 21:28:15 2009 +0000
+++ b/QTfrontend/SDLs.cpp	Sun May 03 21:38:56 2009 +0000
@@ -26,10 +26,10 @@
 	music = NULL;
 
 	SDL_Init(SDL_INIT_VIDEO);
-	SDL_Init(SDL_INIT_AUDIO);
-	Mix_OpenAudio(22050, 0x8010, 2, 512);
+//	SDL_Init(SDL_INIT_AUDIO);
+//	Mix_OpenAudio(22050, 0x8010, 2, 512);
 	
-	Mix_VolumeMusic(33);
+//	Mix_VolumeMusic(33);
 }
 
 SDLInteraction::~SDLInteraction()
@@ -59,13 +59,15 @@
 }
 void SDLInteraction::StartMusic()
 {
+/*
 	if (!music)
 		music = Mix_LoadMUS(QString(datadir->absolutePath() + "/Music/main theme.ogg").toLocal8Bit().constData());
 
 	Mix_FadeInMusic(music, -1, 3000);
+*/
 }
 
 void SDLInteraction::StopMusic()
 {
-	Mix_FadeOutMusic(2000);
+//	Mix_FadeOutMusic(2000);
 }
--- a/QTfrontend/hedgewars.qrc	Sun May 03 21:28:15 2009 +0000
+++ b/QTfrontend/hedgewars.qrc	Sun May 03 21:38:56 2009 +0000
@@ -47,7 +47,7 @@
     <file>res/btnDisabled.png</file>
     <file>res/btnForts.png</file>
     <file>res/btnBorder.png</file>
-    <file>res/btnInvurnable.png</file>
+    <file>res/btnInvulnerable.png</file>
     <file>res/btnLaserSight.png</file>
     <file>res/btnLowGravity.png</file>
     <file>res/btnMines.png</file>
--- a/QTfrontend/hwform.cpp	Sun May 03 21:28:15 2009 +0000
+++ b/QTfrontend/hwform.cpp	Sun May 03 21:38:56 2009 +0000
@@ -171,7 +171,7 @@
 	wBackground->setFixedSize(this->width(), this->height());
 	wBackground->lower();
 	wBackground->init();
-	wBackground->startAnimation();
+	//wBackground->startAnimation();
 
 	PagesStack.push(ID_PAGE_MAIN);
 	GoBack();
@@ -751,7 +751,7 @@
 		case gsFinished: {
 			GoBack();
 			Music(ui.pageOptions->CBEnableMusic->isChecked());
-			if (wBackground) wBackground->startAnimation();	
+			//if (wBackground) wBackground->startAnimation();	
 			GoToPage(ID_PAGE_GAMESTATS);
 			if (hwnet) hwnet->gameFinished();
 			break;
@@ -761,7 +761,7 @@
 			if (id == ID_PAGE_INGAME) {
 				GoBack();
 				Music(ui.pageOptions->CBEnableMusic->isChecked());
-				if (wBackground) wBackground->startAnimation();	
+				//if (wBackground) wBackground->startAnimation();	
 				if (hwnet) hwnet->gameFinished();
 			}
 		};
--- a/QTfrontend/pages.cpp	Sun May 03 21:28:15 2009 +0000
+++ b/QTfrontend/pages.cpp	Sun May 03 21:38:56 2009 +0000
@@ -886,46 +886,57 @@
 	
 	TBW_mode_Forts = new ToggleButtonWidget(gbGameModes, ":/res/btnForts.png");
 	TBW_mode_Forts->setText(ToggleButtonWidget::tr("Fort Mode"));
+    TBW_mode_Forts->setToolTip(tr("Defend your fort and destroy the opponents, two team colours max!"));
 	glGMLayout->addWidget(TBW_mode_Forts,0,0,1,1);
 
 	TBW_teamsDivide = new ToggleButtonWidget(gbGameModes, ":/res/btnTeamsDivide.png");
 	TBW_teamsDivide->setText(ToggleButtonWidget::tr("Divide Teams"));
+    TBW_teamsDivide->setToolTip(tr("Teams will start on opposite sides of the terrain, two team colours max!"));
 	glGMLayout->addWidget(TBW_teamsDivide,0,1,1,1);
 
 	TBW_solid = new ToggleButtonWidget(gbGameModes, ":/res/btnSolid.png");
 	TBW_solid->setText(ToggleButtonWidget::tr("Solid Land"));
+    TBW_solid->setToolTip(tr("Land can not be destroyed!"));
 	glGMLayout->addWidget(TBW_solid,0,2,1,1);
 
 	TBW_border = new ToggleButtonWidget(gbGameModes, ":/res/btnBorder.png");
 	TBW_border->setText(ToggleButtonWidget::tr("Add Border"));
+    TBW_border->setToolTip(tr("Add an indestructable border around the terrain"));
 	glGMLayout->addWidget(TBW_border,0,3,1,1);
 
 	TBW_lowGravity = new ToggleButtonWidget(gbGameModes, ":/res/btnLowGravity.png");
 	TBW_lowGravity->setText(ToggleButtonWidget::tr("Low Gravity"));
+    TBW_lowGravity->setToolTip(tr("Lower gravity"));
 	glGMLayout->addWidget(TBW_lowGravity,1,0,1,1);
 
 	TBW_laserSight = new ToggleButtonWidget(gbGameModes, ":/res/btnLaserSight.png");
 	TBW_laserSight->setText(ToggleButtonWidget::tr("Laser Sight"));
+    TBW_laserSight->setToolTip(tr("Assisted aiming with laser sight"));
 	glGMLayout->addWidget(TBW_laserSight,1,1,1,1);
 
-	TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvurnable.png");
+	TBW_invulnerable = new ToggleButtonWidget(gbGameModes, ":/res/btnInvulnerable.png");
 	TBW_invulnerable->setText(ToggleButtonWidget::tr("Invulnerable"));
+    TBW_invulnerable->setToolTip(tr("All hogs have a personal forcefield"));
 	glGMLayout->addWidget(TBW_invulnerable,1,2,1,1);
 
 	TBW_mines = new ToggleButtonWidget(gbGameModes, ":/res/btnMines.png");
 	TBW_mines->setText(ToggleButtonWidget::tr("Add Mines"));
+    TBW_mines->setToolTip(tr("Enable random mines"));
 	glGMLayout->addWidget(TBW_mines,1,3,1,1);
 
 	TBW_vampiric = new ToggleButtonWidget(gbGameModes, ":/res/btnVampiric.png");
 	TBW_vampiric->setText(ToggleButtonWidget::tr("Vampirism"));
+    TBW_vampiric->setToolTip(tr("Gain 80% of the damage you do back in health"));
 	glGMLayout->addWidget(TBW_vampiric,2,0,1,1);
 
 	TBW_karma = new ToggleButtonWidget(gbGameModes, ":/res/btnKarma.png");
 	TBW_karma->setText(ToggleButtonWidget::tr("Karma"));
+    TBW_karma->setToolTip(tr("Share your opponents pain, share their damage"));
 	glGMLayout->addWidget(TBW_karma,2,1,1,1);
 
 	TBW_artillery = new ToggleButtonWidget(gbGameModes, ":/res/btnArtillery.png");
 	TBW_artillery->setText(ToggleButtonWidget::tr("Artillery"));
+    TBW_artillery->setToolTip(tr("Your hogs are unable to move, put your artillery skills to the test"));
 	glGMLayout->addWidget(TBW_artillery,2,2,1,1);
 
 	// Right
Binary file QTfrontend/res/btnInvulnerable.png has changed
Binary file QTfrontend/res/btnInvurnable.png has changed