added icon, windows title, and fixed bug in biome.cpp

This commit is contained in:
Anselme 2016-05-30 10:55:57 +02:00
parent d6918c0e29
commit e32e3681c7
6 changed files with 6 additions and 4 deletions

View File

@ -96,7 +96,7 @@ extern "C" void generate(Map *mapPtr)
for(i=0; i<n; ++i) for(i=0; i<n; ++i)
{ {
map[map.team(i)].type = SPAWN; map[map.team(i)].type = SPAWN;
map[map.team(i)].data.nbRes = 0; map[map.team(i)].data.teamId = i;
} }
free(l_biomes); free(l_biomes);

BIN
rc/PixelWars.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

View File

@ -39,6 +39,7 @@
<file>rc/radio_unchecked_disabled.png</file> <file>rc/radio_unchecked_disabled.png</file>
<file>rc/radio_unchecked_focus.png</file> <file>rc/radio_unchecked_focus.png</file>
<file>rc/radio_unchecked.png</file> <file>rc/radio_unchecked.png</file>
<file>rc/PixelWars.png</file>
</qresource> </qresource>
<qresource prefix="qdarkstyle"> <qresource prefix="qdarkstyle">
<file>style.qss</file> <file>style.qss</file>

View File

@ -15,6 +15,7 @@ MainWindow::MainWindow(QWidget *parent) :
m_simSpeedChanged(false), m_simSpeedChanged(false),
m_paused(false) m_paused(false)
{ {
setWindowIcon(QIcon(":qss_icons/rc/PixelWars.png"));
ui->setupUi(this); ui->setupUi(this);
m_simuTimer = new QTimer(this); m_simuTimer = new QTimer(this);
connect(m_simuTimer,SIGNAL(timeout()),this, SLOT(updateSimu())); connect(m_simuTimer,SIGNAL(timeout()),this, SLOT(updateSimu()));

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>MainWindow</string> <string>PixelWars</string>
</property> </property>
<widget class="QWidget" name="centralWidget"> <widget class="QWidget" name="centralWidget">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
@ -230,8 +230,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>260</width> <width>98</width>
<height>346</height> <height>56</height>
</rect> </rect>
</property> </property>
<attribute name="label"> <attribute name="label">