Snap angle and grid size saved as settings

This commit is contained in:
dexy
2020-01-28 00:20:04 +11:00
Unverified
parent 583cbc28d5
commit 210ae56069
4 changed files with 60 additions and 0 deletions
+36
View File
@@ -746,5 +746,41 @@ namespace CodeWalker.Properties {
this["Deferred"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("5")]
public float SnapRotationDegrees {
get {
return ((float)(this["SnapRotationDegrees"]));
}
set {
this["SnapRotationDegrees"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("10")]
public float SnapGridSize {
get {
return ((float)(this["SnapGridSize"]));
}
set {
this["SnapGridSize"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool JumpListInitialised {
get {
return ((bool)(this["JumpListInitialised"]));
}
set {
this["JumpListInitialised"] = value;
}
}
}
}
+9
View File
@@ -195,5 +195,14 @@
<Setting Name="Deferred" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="SnapRotationDegrees" Type="System.Single" Scope="User">
<Value Profile="(Default)">5</Value>
</Setting>
<Setting Name="SnapGridSize" Type="System.Single" Scope="User">
<Value Profile="(Default)">10</Value>
</Setting>
<Setting Name="JumpListInitialised" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>