Added the possibility to create asymetrical populations and a crappy loading logo

This commit is contained in:
2022-05-05 14:23:57 +02:00
parent 674eb9dc22
commit 8276edd032
7 changed files with 109 additions and 64 deletions
@@ -69,6 +69,10 @@ namespace PropagationRemasteredBeta
}
else
{
//I dont know why but this does not display immediatly after pressing the button
pbxTerrain.Image = Properties.Resources.loading;
//this.Invalidate();
started = true;
btnStartNormal.Text = "Stop";
btnStartOneForAll.Text = "Stop";
@@ -76,6 +80,8 @@ namespace PropagationRemasteredBeta
t = new Terrain(terrainSize, infectedProportion, resistantProportion, deathRate, infectionRate, cureTime);
frameCount = 0;
pbxTerrain.Image = Properties.Resources.loading;
switch (mode)
{
case 1:
@@ -124,8 +130,6 @@ namespace PropagationRemasteredBeta
BufferImage = t.Display();
if (needToSave)
{
Save(BufferImage, frameCount);
@@ -137,7 +141,6 @@ namespace PropagationRemasteredBeta
lblFrameCount.Text = frameCount.ToString();
lblTotalTime.Text = totalTime.ToString();
//refresh all the stats
lblMemory.Text = GetMemoryUsage().ToString() + " Mb";
lblelementsCounter.Text = t.DRAWED_ELEMENTS.ToString();
@@ -196,6 +199,7 @@ namespace PropagationRemasteredBeta
private void SimulationVue_Load(object sender, EventArgs e)
{
lblSimulationName.Text = simulationName;
//pbxTerrain.Image = Properties.Resources.loading;
}
}
}