diff --git a/GameData/XyphosAerospace/Plugins/SASAG/SASAG.cfg b/GameData/XyphosAerospace/Plugins/SASAG/SASAG.cfg new file mode 100644 index 0000000..5834d26 --- /dev/null +++ b/GameData/XyphosAerospace/Plugins/SASAG/SASAG.cfg @@ -0,0 +1,7 @@ +@PART[*]:HAS[@MODULE[ModuleCommand]]:FINAL +{ + MODULE + { + name = SASAG + } +} \ No newline at end of file diff --git a/GameData/XyphosAerospace/Plugins/SASAG/SASAG.dll b/GameData/XyphosAerospace/Plugins/SASAG/SASAG.dll index 9a837b7..f3f7db8 100644 Binary files a/GameData/XyphosAerospace/Plugins/SASAG/SASAG.dll and b/GameData/XyphosAerospace/Plugins/SASAG/SASAG.dll differ diff --git a/GameData/XyphosAerospace/Plugins/SASAG/license.txt b/GameData/XyphosAerospace/Plugins/SASAG/license.txt new file mode 100644 index 0000000..125b987 --- /dev/null +++ b/GameData/XyphosAerospace/Plugins/SASAG/license.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-2019 William "Xyphos" Scott (TheGreatXyphos@gmail.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index efc0c9a..8b2d246 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.2.0")] -[assembly: AssemblyFileVersion("1.0.2.0")] +[assembly: AssemblyVersion("1.0.3.0")] +[assembly: AssemblyFileVersion("1.0.3.0")] diff --git a/SASAG.cfg b/SASAG.cfg new file mode 100644 index 0000000..5834d26 --- /dev/null +++ b/SASAG.cfg @@ -0,0 +1,7 @@ +@PART[*]:HAS[@MODULE[ModuleCommand]]:FINAL +{ + MODULE + { + name = SASAG + } +} \ No newline at end of file diff --git a/SASAG.cs b/SASAG.cs index 46ea623..72cded6 100644 --- a/SASAG.cs +++ b/SASAG.cs @@ -21,6 +21,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. +using KSP.Localization; + #pragma warning disable IDE0060 // Remove unused parameter namespace XyphosAerospace { @@ -82,7 +84,8 @@ private void SetSAS(VesselAutopilot.AutopilotMode mode) ScreenMessages.PostScreenMessage(message: $"Vessel cannot set SAS to {mode}"); return; } - + + vessel.ActionGroups.SetGroup(@group: KSPActionGroup.SAS, active: true); // turn on SAS vessel.Autopilot.Enable(mode: mode); // set SAS mode } diff --git a/SASAG.csproj b/SASAG.csproj index 0123f80..b7bd11b 100644 --- a/SASAG.csproj +++ b/SASAG.csproj @@ -70,6 +70,7 @@ + @@ -110,6 +111,7 @@ + diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..125b987 --- /dev/null +++ b/license.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-2019 William "Xyphos" Scott (TheGreatXyphos@gmail.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.