Add Fatal Error dialog

This commit is contained in:
ScottNZ
2013-08-18 02:12:39 +12:00
parent e77286c0a7
commit 7f67b567f9
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;