refactor: update for api 10
This commit is contained in:
parent
6e4b2aa4fc
commit
b079f7e24a
@ -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();
|
||||
|
@ -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) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>1.2.14</Version>
|
||||
<TargetFramework>net7-windows</TargetFramework>
|
||||
<TargetFramework>net8-windows</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
@ -47,7 +47,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DalamudPackager" Version="2.1.12" />
|
||||
<PackageReference Include="DalamudPackager" Version="2.1.13" />
|
||||
<PackageReference Include="FFXIVWeather.Lumina" Version="2.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
8
Tourist/packages.lock.json
Normal file → Executable file
8
Tourist/packages.lock.json
Normal file → Executable file
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user