# HG changeset patch
# User nemo
# Date 1241386736 0
# Node ID 21c986c528baa179d0dd09b54b422f8c24c44653
# Parent 692308790912f61020f5d2ac09101debf7496da4
Descriptions for the tooltip buttons. Rename btnInvurnable to btnInvulnerable
diff -r 692308790912 -r 21c986c528ba QTfrontend/SDLs.cpp
--- 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);
}
diff -r 692308790912 -r 21c986c528ba QTfrontend/hedgewars.qrc
--- 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 @@
res/btnDisabled.png
res/btnForts.png
res/btnBorder.png
- res/btnInvurnable.png
+ res/btnInvulnerable.png
res/btnLaserSight.png
res/btnLowGravity.png
res/btnMines.png
diff -r 692308790912 -r 21c986c528ba QTfrontend/hwform.cpp
--- 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();
}
};
diff -r 692308790912 -r 21c986c528ba QTfrontend/pages.cpp
--- 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
diff -r 692308790912 -r 21c986c528ba QTfrontend/res/btnInvulnerable.png
Binary file QTfrontend/res/btnInvulnerable.png has changed
diff -r 692308790912 -r 21c986c528ba QTfrontend/res/btnInvurnable.png
Binary file QTfrontend/res/btnInvurnable.png has changed