Merge pull request #2861 from Mailaender/version-mismatch-config

fully configurable version mismatch detection
This commit is contained in:
Matthias Mailänder
2013-03-30 00:25:30 -07:00
8 changed files with 47 additions and 17 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;