From b079f7e24a528b2e33c8c43ebce45a45b0e28f5e Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 1 Jul 2024 14:41:17 -0400 Subject: [PATCH] refactor: update for api 10 --- Tourist/Plugin.cs | 4 ++-- Tourist/PluginUi.cs | 4 ++-- Tourist/Tourist.csproj | 4 ++-- Tourist/packages.lock.json | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) mode change 100644 => 100755 Tourist/packages.lock.json diff --git a/Tourist/Plugin.cs b/Tourist/Plugin.cs index 1e257ae..0a6670c 100644 --- a/Tourist/Plugin.cs +++ b/Tourist/Plugin.cs @@ -13,7 +13,7 @@ namespace Tourist { internal static IPluginLog Log { get; private set; } = null!; [PluginService] - internal DalamudPluginInterface Interface { get; init; } + internal IDalamudPluginInterface Interface { get; init; } [PluginService] internal IClientState ClientState { get; init; } = null!; @@ -43,7 +43,7 @@ namespace Tourist { private Commands Commands { get; } internal Markers Markers { get; } - public Plugin(DalamudPluginInterface pluginInterface) { + public Plugin(IDalamudPluginInterface pluginInterface) { this.Interface = pluginInterface; this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration(); diff --git a/Tourist/PluginUi.cs b/Tourist/PluginUi.cs index 61b2334..2bdf4ed 100644 --- a/Tourist/PluginUi.cs +++ b/Tourist/PluginUi.cs @@ -1,7 +1,7 @@ using System; using System.Linq; using System.Numerics; -using Dalamud.Game.Text.SeStringHandling; +using Dalamud.Utility; using ImGuiNET; using Lumina.Excel.GeneratedSheets; @@ -195,7 +195,7 @@ namespace Tourist { ? string.Empty : $" ({(countdown.Value - DateTimeOffset.UtcNow).ToHumanReadable()})"; - var name = (SeString) adventure.Name; + var name = adventure.Name.ToDalamudString(); var header = ImGui.CollapsingHeader($"#{idx + 1} - {name.TextValue}{next}###adventure-{adventure.RowId}"); if (has || available) { diff --git a/Tourist/Tourist.csproj b/Tourist/Tourist.csproj index cf021c7..51a7975 100755 --- a/Tourist/Tourist.csproj +++ b/Tourist/Tourist.csproj @@ -2,7 +2,7 @@ 1.2.14 - net7-windows + net8-windows latest enable true @@ -47,7 +47,7 @@ - + diff --git a/Tourist/packages.lock.json b/Tourist/packages.lock.json old mode 100644 new mode 100755 index f4d7174..8678c43 --- a/Tourist/packages.lock.json +++ b/Tourist/packages.lock.json @@ -1,12 +1,12 @@ { "version": 1, "dependencies": { - "net7.0-windows7.0": { + "net8.0-windows7.0": { "DalamudPackager": { "type": "Direct", - "requested": "[2.1.12, )", - "resolved": "2.1.12", - "contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg==" + "requested": "[2.1.13, )", + "resolved": "2.1.13", + "contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ==" }, "FFXIVWeather.Lumina": { "type": "Direct",