Added the possibility to create asymetrical populations and a crappy loading logo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user