Particle.FindAdjacentHulls exception fix, OpenAL "invalid value" dix, radar sync, better ragdoll sync, autoupdate cancel/retry on error

This commit is contained in:
Regalis
2015-10-08 21:48:04 +03:00
parent db7128a475
commit 709d4efde9
30 changed files with 354 additions and 219 deletions
+20 -1
View File
@@ -98,7 +98,7 @@ namespace Launcher2
// Create a new SpriteBatch, which can be used to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
GUI.LoadContent(GraphicsDevice);
GUI.LoadContent(GraphicsDevice, false);
backgroundTexture = TextureLoader.FromFile("Content/UI/titleBackground.png");
titleTexture = TextureLoader.FromFile("Content/UI/titleText.png");
@@ -550,6 +550,17 @@ namespace Launcher2
textBlock.TextColor = Color.Red;
//textBlock.CanBeFocused = false;
GUIFrame dummyFrame = new GUIFrame(new Rectangle(0, 0, graphicsWidth, graphicsHeight));
GUIMessageBox errorBox = new GUIMessageBox("Error while updating", "Downloading the update failed.",
new string[] { "Retry", "Cancel" }, 400, 250, Alignment.TopLeft, dummyFrame);
errorBox.Buttons[0].OnClicked += DownloadButtonClicked;
errorBox.Buttons[0].OnClicked += errorBox.Close;
errorBox.Buttons[1].OnClicked = CancelUpdate;
errorBox.Buttons[1].OnClicked += errorBox.Close;
return;
}
filesDownloaded++;
@@ -557,6 +568,14 @@ namespace Launcher2
DownloadNextFile();
}
private bool CancelUpdate(GUIButton button, object obj)
{
downloadButton.Enabled = false;
launchButton.Enabled = true;
return true;
}
}
}