net game image
authordisplacer
Mon, 15 Jan 2007 19:11:31 +0000
changeset 340 f5d4db927eba
parent 339 7535ab6c3820
child 341 184230eb4151
net game image
QTfrontend/hedgewars.qrc
QTfrontend/res/net.png
QTfrontend/teamselhelper.cpp
--- a/QTfrontend/hedgewars.qrc	Mon Jan 15 18:45:07 2007 +0000
+++ b/QTfrontend/hedgewars.qrc	Mon Jan 15 19:11:31 2007 +0000
@@ -9,5 +9,6 @@
     <file>res/botlevels/4.png</file>
     <file>res/botlevels/5.png</file>
     <file>res/Hedgehog.svg</file>
+    <file>res/net.png</file>
 </qresource>
 </RCC>
Binary file QTfrontend/res/net.png has changed
--- a/QTfrontend/teamselhelper.cpp	Mon Jan 15 18:45:07 2007 +0000
+++ b/QTfrontend/teamselhelper.cpp	Mon Jan 15 19:11:31 2007 +0000
@@ -36,7 +36,8 @@
   mainLayout.setSpacing(1);
   mainLayout.setMargin(2);
   this->setMaximumHeight(35);
-  QIcon difficultyIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
+  QIcon difficultyIcon=team.netTeam ? QIcon(QString(":/res/net.png"))
+    : QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
 
   QPalette newPalette = palette();
   newPalette.setColor(QPalette::Button, palette().color(backgroundRole()));