diff --git a/Configurator/IniViewModel.cs b/Configurator/IniViewModel.cs index 59ac040be..a411d3413 100644 --- a/Configurator/IniViewModel.cs +++ b/Configurator/IniViewModel.cs @@ -30,6 +30,9 @@ public class IniViewModel : DependencyObject public static readonly DependencyProperty SoftShadowsProperty = DependencyProperty.Register( "SoftShadows", typeof (bool), typeof (IniViewModel), new PropertyMetadata(default(bool))); + public static readonly DependencyProperty WindowedLockCursorProperty = DependencyProperty.Register( + "WindowedLockCursor", typeof(bool), typeof(IniViewModel), new PropertyMetadata(default(bool))); + public static readonly DependencyProperty HpOnLevelUpProperty = DependencyProperty.Register( "HpOnLevelUp", typeof (HpOnLevelUpType), typeof (IniViewModel), new PropertyMetadata(default(HpOnLevelUpType))); @@ -131,6 +134,12 @@ public bool SoftShadows set { SetValue(SoftShadowsProperty, value); } } + public bool WindowedLockCursor + { + get { return (bool)GetValue(WindowedLockCursorProperty); } + set { SetValue(WindowedLockCursorProperty, value); } + } + public HpOnLevelUpType HpOnLevelUp { get { return (HpOnLevelUpType) GetValue(HpOnLevelUpProperty); } @@ -275,6 +284,7 @@ public void LoadFromIni(IniData iniData) SoftShadows = tpData["softShadows"] == "true"; AntiAliasing = tpData["antialiasing"] == "true"; WindowedMode = tpData["windowed"] == "true"; + WindowedLockCursor = tpData["windowedLockCursor"] == "true"; int maxLevel; if (int.TryParse(tpData["maxLevel"], out maxLevel)) @@ -373,6 +383,7 @@ public void SaveToIni(IniData iniData) tpData["windowHeight"] = RenderHeight.ToString(); tpData["antialiasing"] = AntiAliasing? "true" : "false"; tpData["softShadows"] = SoftShadows ? "true" : "false"; + tpData["windowedLockCursor"] = WindowedLockCursor ? "true" : "false"; tpData["maxLevel"] = MaxLevel.ToString(); tpData["allowXpOverflow"] = AllowXpOverflow ? "true" : "false"; tpData["slowerLevelling"] = SlowerLevelling ? "true" : "false"; diff --git a/Configurator/MainWindow.xaml b/Configurator/MainWindow.xaml index 6b4eda2f0..724d3362d 100644 --- a/Configurator/MainWindow.xaml +++ b/Configurator/MainWindow.xaml @@ -33,6 +33,7 @@ +