API 9
This commit is contained in:
parent
c789a807e5
commit
0f46d143aa
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
.vs/
|
/dist
|
||||||
obj/
|
/obj
|
||||||
dist/
|
/bin
|
||||||
|
/.idea
|
||||||
*.user
|
*.user
|
@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>6.1</Version>
|
<Version>7.0</Version>
|
||||||
<Description>Slice is Right.</Description>
|
<Description>Slice is Right.</Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/carvelli/Slice-Is-Right</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/carvelli/Slice-Is-Right</PackageProjectUrl>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="DalamudPackager" Version="2.1.10" />
|
<PackageReference Include="DalamudPackager" Version="2.1.12" />
|
||||||
<Reference Include="FFXIVClientStructs">
|
<Reference Include="FFXIVClientStructs">
|
||||||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
|
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
|
||||||
<Private>false</Private>
|
<Private>false</Private>
|
||||||
@ -49,10 +49,6 @@
|
|||||||
<HintPath>$(DalamudLibPath)ImGui.NET.dll</HintPath>
|
<HintPath>$(DalamudLibPath)ImGui.NET.dll</HintPath>
|
||||||
<Private>false</Private>
|
<Private>false</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="ImGuiScene">
|
|
||||||
<HintPath>$(DalamudLibPath)ImGuiScene.dll</HintPath>
|
|
||||||
<Private>false</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Lumina">
|
<Reference Include="Lumina">
|
||||||
<HintPath>$(DalamudLibPath)Lumina.dll</HintPath>
|
<HintPath>$(DalamudLibPath)Lumina.dll</HintPath>
|
||||||
<Private>false</Private>
|
<Private>false</Private>
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
using Dalamud.Game.ClientState;
|
using Dalamud.Game.ClientState.Objects.Enums;
|
||||||
using Dalamud.Game.ClientState.Objects;
|
|
||||||
using Dalamud.Game.ClientState.Objects.Enums;
|
|
||||||
using Dalamud.Game.ClientState.Objects.Types;
|
using Dalamud.Game.ClientState.Objects.Types;
|
||||||
using Dalamud.Game.Gui;
|
|
||||||
using Dalamud.Interface;
|
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
using Dalamud.Plugin;
|
using Dalamud.Plugin;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
@ -11,6 +7,8 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
using Dalamud.Interface.Utility;
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
|
|
||||||
namespace SliceIsRight;
|
namespace SliceIsRight;
|
||||||
|
|
||||||
@ -22,20 +20,18 @@ public sealed class SliceIsRightPlugin : IDalamudPlugin
|
|||||||
private static readonly uint ColourGreen = ImGui.GetColorU32(ImGui.ColorConvertFloat4ToU32(new Vector4(0.0f, 1f, 0.0f, 0.15f)));
|
private static readonly uint ColourGreen = ImGui.GetColorU32(ImGui.ColorConvertFloat4ToU32(new Vector4(0.0f, 1f, 0.0f, 0.15f)));
|
||||||
private static readonly uint ColourRed = ImGui.GetColorU32(ImGui.ColorConvertFloat4ToU32(new Vector4(1, 0, 0, 0.4f)));
|
private static readonly uint ColourRed = ImGui.GetColorU32(ImGui.ColorConvertFloat4ToU32(new Vector4(1, 0, 0, 0.4f)));
|
||||||
|
|
||||||
public string Name => "Slice is Right";
|
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
[RequiredVersion("1.0")]
|
[RequiredVersion("1.0")]
|
||||||
private DalamudPluginInterface PluginInterface { get; set; } = null!;
|
private DalamudPluginInterface PluginInterface { get; set; } = null!;
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
private ObjectTable ObjectTable { get; set; } = null!;
|
private IObjectTable ObjectTable { get; set; } = null!;
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
private GameGui GameGui { get; set; } = null!;
|
private IGameGui GameGui { get; set; } = null!;
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
private ClientState ClientState { get; set; } = null!;
|
private IClientState ClientState { get; set; } = null!;
|
||||||
|
|
||||||
private const ushort GoldSaucerTerritoryId = 144;
|
private const ushort GoldSaucerTerritoryId = 144;
|
||||||
private bool IsInGoldSaucer { get; set; }
|
private bool IsInGoldSaucer { get; set; }
|
||||||
@ -54,7 +50,7 @@ public sealed class SliceIsRightPlugin : IDalamudPlugin
|
|||||||
}
|
}
|
||||||
#pragma warning restore CS8618
|
#pragma warning restore CS8618
|
||||||
|
|
||||||
private void TerritoryChanged(object? sender, ushort e)
|
private void TerritoryChanged(ushort e)
|
||||||
{
|
{
|
||||||
IsInGoldSaucer = e == GoldSaucerTerritoryId;
|
IsInGoldSaucer = e == GoldSaucerTerritoryId;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user