Skip to content

Commit

Permalink
updated for API9 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenhuth committed Oct 2, 2023
1 parent 06d3078 commit 4f5970f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions nael/nael/NaelPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Dalamud.Game.Text.SeStringHandling.Payloads;
using Dalamud.IoC;
using Dalamud.Plugin;
using Dalamud.Plugin.Services;
using ImGuiNET;

public class NaelPlugin : IDalamudPlugin
Expand All @@ -22,10 +23,10 @@ public class NaelPlugin : IDalamudPlugin
private static bool drawConfiguration;

private Configuration configuration;
private ChatGui chatGui;
private IChatGui chatGui;
[PluginService] private static DalamudPluginInterface PluginInterface { get; set; } = null!;
[PluginService] private static CommandManager CommandManager { get; set; } = null!;
[PluginService] private static ClientState ClientState { get; set; } = null!;
[PluginService] private static ICommandManager CommandManager { get; set; } = null!;
[PluginService] private static IClientState ClientState { get; set; } = null!;

private string configDynamo;
private string configChariot;
Expand All @@ -37,7 +38,7 @@ public class NaelPlugin : IDalamudPlugin
private readonly NaelQuotes naelQuotes;
private Dictionary<string, string> naelQuotesDictionary;

public NaelPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPluginInterface, [RequiredVersion("1.0")] ChatGui chatGui, [RequiredVersion("1.0")] CommandManager commandManager)
public NaelPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPluginInterface, [RequiredVersion("1.0")] IChatGui chatGui, [RequiredVersion("1.0")] ICommandManager commandManager)
{
this.chatGui = chatGui;

Expand Down Expand Up @@ -90,7 +91,7 @@ private void NaelCommand(string command, string args)
private void TestPlugin()
{
foreach (var quote in naelQuotes.Quotes)
chatGui.PrintChat(NaelMessage($"{GetQuote(quote.ID)}"));
chatGui.Print(NaelMessage($"{GetQuote(quote.ID)}"));
}

private static XivChatEntry NaelMessage(string message)
Expand Down
2 changes: 1 addition & 1 deletion nael/nael/NaelPlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Name": "Nael'd it for UCOB",
"Description": "Translates Nael's quotes into mechanics.",
"Punchline": "because reading chat is not a mechanic",
"Changelog": "- added support for chinese (if client language isn't EN/DE/FR/JP)\n- this completes all languages that I currently have access to through APIs",
"Changelog": "-updated for Dalamud API9",
"InternalName": "NaelPlugin",
"Tags": ["ui"],
"RepoUrl": "https://github.com/Eisenhuth/dalamud-nael",
Expand Down
4 changes: 2 additions & 2 deletions nael/nael/nael.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>$(AppData)\Eisenhuth\DalamudDevPlugins\NaelPlugin\</OutputPath>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<PackageProjectUrl>https://github.com/Eisenhuth/dalamud-nael</PackageProjectUrl>
Expand All @@ -36,7 +36,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.11" />
<PackageReference Include="DalamudPackager" Version="2.1.12" />
</ItemGroup>

<PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions nael/nael/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net7.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[2.1.11, )",
"resolved": "2.1.11",
"contentHash": "9qlAWoRRTiL/geAvuwR/g6Bcbrd/bJJgVnB/RurBiyKs6srsP0bvpoo8IK+Eg8EA6jWeM6/YJWs66w4FIAzqPw=="
"requested": "[2.1.12, )",
"resolved": "2.1.12",
"contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg=="
}
}
}
Expand Down

0 comments on commit 4f5970f

Please sign in to comment.