initial refactoring and ID changes

This commit is contained in:
alterNERDtive 2020-09-22 20:35:52 +02:00
parent 085fa47a43
commit bf00784a87
4 changed files with 38 additions and 42 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
.vs/**
obj/**
bin/**
bindEDplugin.csproj.user

View file

@ -5,12 +5,12 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Plugin")]
[assembly: AssemblyDescription("Plugin")]
[assembly: AssemblyTitle("bindED plugin for VoiceAttack")]
[assembly: AssemblyDescription("This VoiceAttack plugin reads keybindings in Elite:Dangerous and stores them as VoiceAttack variables. ")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Plugin")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("2016 VoiceAttack.com, 2020 alterNERDtive")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -20,7 +20,7 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6966F95F-A192-4272-8D55-B1014E213B35")]
[assembly: Guid("524B4B9A-3965-4045-A39A-A239BF6E2838")]
// Version information for an assembly consists of the following four values:
//
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 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.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1")]
[assembly: AssemblyFileVersion("1.0.1")]

View file

@ -9,30 +9,24 @@ namespace bindEDplugin
public class bindEDPlugin
{
private static Dictionary<String, int> _map = new Dictionary<string, int>(256);
public static string VA_DisplayName()
{
return "bindED Plugin v1.0";
}
public static string VA_DisplayInfo()
{
return "bindED Plugin\r\n\r\n2016 VoiceAttack.com";
}
public static string VERSION = "1.0.1";
public static Guid VA_Id()
{
return new Guid("{53D74F33-3F5C-487B-B6D2-A17593DEBE05}");
}
public static string VA_DisplayName() => $"bindED Plugin v{VERSION}-alterNERDtive";
public static void VA_Init1(dynamic vaProxy)
{
LoadBinds(vaProxy, false);
}
public static string VA_DisplayInfo() => "bindED Plugin\r\n\r\n2016 VoiceAttack.com\r\n2020 alterNERDtive";
private static String GetPluginPath(dynamic vaProxy)
{
return Path.GetDirectoryName(vaProxy.PluginPath());
}
public static Guid VA_Id() => new Guid("{524B4B9A-3965-4045-A39A-A239BF6E2838}");
public static void VA_Init1(dynamic vaProxy) => LoadBinds(vaProxy, false);
public static void VA_Invoke1(dynamic vaProxy) => LoadBinds(vaProxy, true);
public static void VA_StopCommand() { }
public static void VA_Exit1(dynamic vaProxy) { }
private static String GetPluginPath(dynamic vaProxy) => Path.GetDirectoryName(vaProxy.PluginPath());
public static void LoadBinds(dynamic vaProxy, Boolean fromInvoke)
{
@ -195,18 +189,5 @@ namespace bindEDplugin
return;
}
}
public static void VA_Exit1(dynamic vaProxy)
{
}
public static void VA_StopCommand()
{
}
public static void VA_Invoke1(dynamic vaProxy)
{
LoadBinds(vaProxy, true);
}
}
}

View file

@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<OutputPath>bin\bindED\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<OutputPath>bin\bindED\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@ -51,6 +51,19 @@
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<ItemGroup>
<Content Include="EDMap.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ReadMe.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="LICENSE">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>