Merge pull request #3693 from ScottNZ/crashform

Add crash dialog
This commit is contained in:
Matthias Mailänder
2013-08-18 00:11:02 -07:00
8 changed files with 137 additions and 4 deletions

View File

@@ -239,6 +239,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
developerMenuCheckbox.IsChecked = () => Game.Settings.Debug.DeveloperMenu;
developerMenuCheckbox.OnClick = () => Game.Settings.Debug.DeveloperMenu ^= true;
var showFatalErrorDialog = debug.Get<CheckboxWidget>("SHOW_FATAL_ERROR_DIALOG_CHECKBOX");
showFatalErrorDialog.IsChecked = () => Game.Settings.Debug.ShowFatalErrorDialog;
showFatalErrorDialog.OnClick = () => Game.Settings.Debug.ShowFatalErrorDialog ^= true;
bg.Get<ButtonWidget>("BUTTON_CLOSE").OnClick = () =>
{
int x, y;