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)
{
map[map.team(i)].type = SPAWN;
map[map.team(i)].data.nbRes = 0;
map[map.team(i)].data.teamId = i;
}
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_focus.png</file>
<file>rc/radio_unchecked.png</file>
<file>rc/PixelWars.png</file>
</qresource>
<qresource prefix="qdarkstyle">
<file>style.qss</file>

View File

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

View File

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