-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from InitialDet/newVersion
3.0 Update
- Loading branch information
Showing
68 changed files
with
5,728 additions
and
4,719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.32112.339 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoHook", "AutoHook\AutoHook.csproj", "{B00DE705-685B-4CAD-AEC1-37BA94BD537D}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Release|x64 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Debug|x64.ActiveCfg = Debug|x64 | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Debug|x64.Build.0 = Debug|x64 | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Release|x64.ActiveCfg = Release|x64 | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {8BCE7152-3829-4975-A314-A29987BE3DE9} | ||
EndGlobalSection | ||
EndGlobal | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.32112.339 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoHook", "AutoHook\AutoHook.csproj", "{B00DE705-685B-4CAD-AEC1-37BA94BD537D}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Release|x64 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Debug|x64.ActiveCfg = Debug|x64 | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Debug|x64.Build.0 = Debug|x64 | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Release|x64.ActiveCfg = Release|x64 | ||
{B00DE705-685B-4CAD-AEC1-37BA94BD537D}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {8BCE7152-3829-4975-A314-A29987BE3DE9} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,96 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Authors>Det</Authors> | ||
<Version>2.5.0.0</Version> | ||
<Description>Auto hooks for you</Description> | ||
<PackageProjectUrl>https://github.com/InitialDet/AutoHook</PackageProjectUrl> | ||
<Configurations>Release;Debug</Configurations> | ||
<TargetFramework>net7.0-windows</TargetFramework> | ||
<Platforms>x64</Platforms> | ||
<Nullable>enable</Nullable> | ||
<LangVersion>latest</LangVersion> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<Authors>Det</Authors> | ||
<Version>2.5.0.1</Version> | ||
<Description>Auto hooks for you</Description> | ||
<PackageProjectUrl>https://github.com/InitialDet/AutoHook</PackageProjectUrl> | ||
<Configurations>Release;Debug</Configurations> | ||
<TargetFramework>net7.0-windows</TargetFramework> | ||
<Platforms>x64</Platforms> | ||
<Nullable>enable</Nullable> | ||
<LangVersion>latest</LangVersion> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="AutoHook.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<DebugType>none</DebugType> | ||
<DebugSymbols>false</DebugSymbols> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="AutoHook.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<DebugType>none</DebugType> | ||
<DebugSymbols>false</DebugSymbols> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<DebugType>none</DebugType> | ||
<DebugSymbols>false</DebugSymbols> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="images\" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<DebugType>none</DebugType> | ||
<DebugSymbols>false</DebugSymbols> | ||
</PropertyGroup> | ||
|
||
<!-- Localization --> | ||
<ItemGroup> | ||
<Folder Include="images\"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="DalamudPackager" Version="2.1.12" /> | ||
<Reference Include="FFXIVClientStructs"> | ||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>$(DalamudLibPath)Newtonsoft.Json.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Dalamud"> | ||
<HintPath>$(DalamudLibPath)Dalamud.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="ImGui.NET"> | ||
<HintPath>$(DalamudLibPath)ImGui.NET.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="ImGuiScene"> | ||
<HintPath>$(DalamudLibPath)ImGuiScene.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Lumina"> | ||
<HintPath>$(DalamudLibPath)Lumina.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Lumina.Excel"> | ||
<HintPath>$(DalamudLibPath)Lumina.Excel.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
</ItemGroup> | ||
<!-- Localization --> | ||
|
||
<ItemGroup> | ||
<Compile Update="Resources\Localization\UIStrings.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>UIStrings.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="DalamudPackager" Version="2.1.12"/> | ||
<Reference Include="FFXIVClientStructs"> | ||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>$(DalamudLibPath)Newtonsoft.Json.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Dalamud"> | ||
<HintPath>$(DalamudLibPath)Dalamud.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="ImGui.NET"> | ||
<HintPath>$(DalamudLibPath)ImGui.NET.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="ImGuiScene"> | ||
<HintPath>$(DalamudLibPath)ImGuiScene.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Lumina"> | ||
<HintPath>$(DalamudLibPath)Lumina.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
<Reference Include="Lumina.Excel"> | ||
<HintPath>$(DalamudLibPath)Lumina.Excel.dll</HintPath> | ||
<Private>false</Private> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="Resources\Localization\UIStrings.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>UIStrings.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Update="Resources\Localization\UIStrings.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>UIStrings.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="Resources\Localization\UIStrings.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>UIStrings.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using AutoHook.Resources.Localization; | ||
|
||
namespace AutoHook.Classes.AutoCasts; | ||
|
||
public class AutoCastLine : BaseActionCast | ||
{ | ||
|
||
public AutoCastLine() : base(UIStrings.AutoCastLine_Auto_Cast_Line, Data.IDs.Actions.Cast) | ||
{ | ||
GpThreshold = 1; | ||
} | ||
|
||
public override bool CastCondition() | ||
{ | ||
return true; | ||
} | ||
|
||
/*protected override DrawOptionsDelegate DrawOptions => () => | ||
{ | ||
};*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using AutoHook.Data; | ||
using AutoHook.Resources.Localization; | ||
using AutoHook.Utils; | ||
|
||
namespace AutoHook.Classes.AutoCasts; | ||
|
||
public class AutoChum : BaseActionCast | ||
{ | ||
private bool _onlyUseWithIntuition; | ||
|
||
public AutoChum() : base(UIStrings.Chum, IDs.Actions.Chum) | ||
{ | ||
DoesCancelMooch = true; | ||
HelpText = UIStrings.CancelsCurrentMooch; | ||
} | ||
|
||
public override bool CastCondition() | ||
{ | ||
if (!PlayerResources.HasStatus(IDs.Status.FishersIntuition) && _onlyUseWithIntuition) | ||
return false; | ||
|
||
return true; | ||
} | ||
|
||
protected override DrawOptionsDelegate DrawOptions => () => | ||
{ | ||
if (DrawUtil.Checkbox(UIStrings.OnlyUseWhenFisherSIntutionIsActive, | ||
ref _onlyUseWithIntuition)) | ||
{ | ||
Service.Save(); | ||
} | ||
}; | ||
} |
Oops, something went wrong.