make the whole version mismatch mechanic user-configurable

This commit is contained in:
Matthias Mailänder
2013-03-27 12:19:22 +01:00
parent 8a13bc68ef
commit 81dac5521f
6 changed files with 31 additions and 16 deletions

View File

@@ -230,6 +230,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
longTickThreshold.Value = Game.Settings.Debug.LongTickThreshold;
longTickThreshold.OnChange += x => Game.Settings.Debug.LongTickThreshold = x;
var ignoreVersionMismatchCheckbox = debug.Get<CheckboxWidget>("IGNOREVERSIONMISMATCH_CHECKBOX");
ignoreVersionMismatchCheckbox.IsChecked = () => Game.Settings.Debug.IgnoreVersionMismatch;
ignoreVersionMismatchCheckbox.OnClick = () => Game.Settings.Debug.IgnoreVersionMismatch ^= true;
bg.Get<ButtonWidget>("BUTTON_CLOSE").OnClick = () =>
{
int x, y;