using latest style-cop

master
Zaafar Ahmed 6 years ago
parent bc2053bd84
commit 9e1d7f5ca2
  1. 5
      ClickableTransparentOverlay/ClickableTransparentOverlay.csproj
  2. 6
      ClickableTransparentOverlay/HookController.cs
  3. 2
      ClickableTransparentOverlay/NativeMethods.cs
  4. 34
      ClickableTransparentOverlay/Overlay.cs
  5. 31
      ClickableTransparentOverlay/app.config
  6. 2
      ClickableTransparentOverlay/packages.config

@ -111,6 +111,7 @@
<Compile Include="NativeMethods.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<EmbeddedResource Include="Shaders\HLSL\imgui-vertex.hlsl.bytes" LogicalName="imgui-vertex.hlsl.bytes" />
<EmbeddedResource Include="Shaders\HLSL\imgui-frag.hlsl.bytes" LogicalName="imgui-frag.hlsl.bytes" />
@ -122,8 +123,8 @@
</Content>
</ItemGroup>
<ItemGroup>
<Analyzer Include="..\packages\StyleCop.Analyzers.1.0.2\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll" />
<Analyzer Include="..\packages\StyleCop.Analyzers.1.0.2\analyzers\dotnet\cs\StyleCop.Analyzers.dll" />
<Analyzer Include="..\packages\StyleCop.Analyzers.1.1.118\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll" />
<Analyzer Include="..\packages\StyleCop.Analyzers.1.1.118\analyzers\dotnet\cs\StyleCop.Analyzers.dll" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Veldrid.SDL2.4.5.0\build\net40\Veldrid.SDL2.targets" Condition="Exists('..\packages\Veldrid.SDL2.4.5.0\build\net40\Veldrid.SDL2.targets')" />

@ -57,10 +57,10 @@ namespace ClickableTransparentOverlay
/// Update transparent SDL2Window top left position.
/// </summary>
/// <param name="x">
/// X axis of the SDL2Window top left corner
/// X axis of the SDL2Window top left corner.
/// </param>
/// <param name="y">
/// Y axis of the SDL2Window top left corner
/// Y axis of the SDL2Window top left corner.
/// </param>
public void UpdateWindowPosition(int x, int y)
{
@ -85,7 +85,7 @@ namespace ClickableTransparentOverlay
}
/// <summary>
/// Dispose the resources acquired by this class
/// Dispose the resources acquired by this class.
/// </summary>
public void Dispose()
{

@ -86,7 +86,7 @@ namespace ClickableTransparentOverlay
left = rectangle.Left,
right = rectangle.Right,
top = rectangle.Top,
bottom = rectangle.Bottom
bottom = rectangle.Bottom,
};
return margins;
}

@ -13,7 +13,7 @@ namespace ClickableTransparentOverlay
using Veldrid.StartupUtilities;
/// <summary>
/// A class to create clickable transparent overlay
/// A class to create clickable transparent overlay.
/// </summary>
public class Overlay
{
@ -39,22 +39,22 @@ namespace ClickableTransparentOverlay
/// Initializes a new instance of the <see cref="Overlay"/> class.
/// </summary>
/// <param name="x">
/// x position of the overlay
/// x position of the overlay.
/// </param>
/// <param name="y">
/// y position of the overlay
/// y position of the overlay.
/// </param>
/// <param name="width">
/// width of the overlay
/// width of the overlay.
/// </param>
/// <param name="height">
/// height of the Overlay
/// height of the Overlay.
/// </param>
/// <param name="fps">
/// fps of the overlay
/// fps of the overlay.
/// </param>
/// <param name="debug">
/// In this mode, overlay will not hide the Console
/// In this mode, overlay will not hide the Console.
/// </param>
public Overlay(int x, int y, int width, int height, int fps, bool debug)
{
@ -98,7 +98,7 @@ namespace ClickableTransparentOverlay
public event EventHandler SubmitUI;
/// <summary>
/// Starts the overlay
/// Starts the overlay.
/// </summary>
public void Run()
{
@ -116,7 +116,7 @@ namespace ClickableTransparentOverlay
/// Set the overlay FPS.
/// </summary>
/// <param name="fps">
/// FPS to set
/// FPS to set.
/// </param>
public void SetFps(int fps)
{
@ -124,19 +124,19 @@ namespace ClickableTransparentOverlay
}
/// <summary>
/// Resizes the overlay
/// Resizes the overlay.
/// </summary>
/// <param name="x">
/// x axis of the overlay
/// x axis of the overlay.
/// </param>
/// <param name="y">
/// y axis of the overlay
/// y axis of the overlay.
/// </param>
/// <param name="width">
/// width of the overlay
/// width of the overlay.
/// </param>
/// <param name="height">
/// height of the overlay
/// height of the overlay.
/// </param>
public void Resize(int x, int y, int width, int height)
{
@ -152,7 +152,7 @@ namespace ClickableTransparentOverlay
}
/// <summary>
/// Shows the overlay
/// Shows the overlay.
/// </summary>
public void Show()
{
@ -161,7 +161,7 @@ namespace ClickableTransparentOverlay
}
/// <summary>
/// hides the overlay
/// hides the overlay.
/// </summary>
public void Hide()
{
@ -170,7 +170,7 @@ namespace ClickableTransparentOverlay
}
/// <summary>
/// Free all resources acquired by the overlay
/// Free all resources acquired by the overlay.
/// </summary>
public void Dispose()
{

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SharpDX.Direct3D11" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SharpDX" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SharpDX.DXGI" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

@ -6,7 +6,7 @@
<package id="SharpDX" version="4.2.0" targetFramework="net472" />
<package id="SharpDX.Direct3D11" version="4.2.0" targetFramework="net472" />
<package id="SharpDX.DXGI" version="4.2.0" targetFramework="net472" />
<package id="StyleCop.Analyzers" version="1.0.2" targetFramework="net472" developmentDependency="true" />
<package id="StyleCop.Analyzers" version="1.1.118" targetFramework="net472" developmentDependency="true" />
<package id="System.Buffers" version="4.5.0" targetFramework="net472" />
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />

Loading…
Cancel
Save