Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
Inital release
  • Loading branch information
SirDiazo committed Dec 5, 2014
1 parent 5afcee5 commit bbbe9e3
Show file tree
Hide file tree
Showing 9 changed files with 1,699 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ Icon
Network Trash Folder
Temporary Items
.apdisk

AutoAction/obj/Debug/AutoAction.csproj.FileListAbsolute.txt
AutoAction/obj/Debug/AutoAction.csprojResolveAssemblyReference.cache
AutoAction/obj/Debug/AutoAction.dll
AutoAction/obj/Debug/AutoAction.pdb
AutoAction/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
AutoAction/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
AutoAction/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
AutoAction/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
AutoAction/Properties/AssemblyInfo.cs
Expand Down
22 changes: 22 additions & 0 deletions AutoAction.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoAction", "AutoAction\AutoAction.csproj", "{BE801571-AE47-4576-BF4B-9490718DA11E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BE801571-AE47-4576-BF4B-9490718DA11E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BE801571-AE47-4576-BF4B-9490718DA11E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BE801571-AE47-4576-BF4B-9490718DA11E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BE801571-AE47-4576-BF4B-9490718DA11E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added AutoAction.v12.suo
Binary file not shown.
31 changes: 31 additions & 0 deletions AutoAction/AGXInterface.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using KSP.IO;
using System.Reflection;

namespace AutoAction
{
class AGXInterface
{
public static bool AGExtInstalled()
{
try
{
Type calledType = Type.GetType("ActionGroupsExtended.AGExtExternal, AGExt");
return (bool)calledType.InvokeMember("AGXInstalled", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Static, null, null, null);
}
catch //if AGX not installed, above throws a null ref error, catch it
{
return false;
}
}
public static void AGExtToggleGroup(int group)
{
Type calledType = Type.GetType("ActionGroupsExtended.AGExtExternal, AGExt");
calledType.InvokeMember("AGXToggleGroup", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Static, null, null, new System.Object[] { group });
}
}
}
66 changes: 66 additions & 0 deletions AutoAction/AutoAction.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{BE801571-AE47-4576-BF4B-9490718DA11E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AutoAction</RootNamespace>
<AssemblyName>AutoAction</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\0.25dev\GameData\Diazo\AutoAction\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\0.25dev\KSP_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\..\..\0.25dev\KSP_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>..\..\..\0.25dev\KSP_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AGXInterface.cs" />
<Compile Include="AutoActionEditor.cs" />
<Compile Include="AutoActionFlight.cs" />
<Compile Include="Button.cs" />
<Compile Include="ModuleAutoAction.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Loading

0 comments on commit bbbe9e3

Please sign in to comment.