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!;
|
internal static IPluginLog Log { get; private set; } = null!;
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
internal DalamudPluginInterface Interface { get; init; }
|
internal IDalamudPluginInterface Interface { get; init; }
|
||||||
|
|
||||||
[PluginService]
|
[PluginService]
|
||||||
internal IClientState ClientState { get; init; } = null!;
|
internal IClientState ClientState { get; init; } = null!;
|
||||||
@ -43,7 +43,7 @@ namespace Tourist {
|
|||||||
private Commands Commands { get; }
|
private Commands Commands { get; }
|
||||||
internal Markers Markers { get; }
|
internal Markers Markers { get; }
|
||||||
|
|
||||||
public Plugin(DalamudPluginInterface pluginInterface) {
|
public Plugin(IDalamudPluginInterface pluginInterface) {
|
||||||
this.Interface = pluginInterface;
|
this.Interface = pluginInterface;
|
||||||
|
|
||||||
this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration();
|
this.Config = this.Interface.GetPluginConfig() as Configuration ?? new Configuration();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Utility;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using Lumina.Excel.GeneratedSheets;
|
using Lumina.Excel.GeneratedSheets;
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ namespace Tourist {
|
|||||||
? string.Empty
|
? string.Empty
|
||||||
: $" ({(countdown.Value - DateTimeOffset.UtcNow).ToHumanReadable()})";
|
: $" ({(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}");
|
var header = ImGui.CollapsingHeader($"#{idx + 1} - {name.TextValue}{next}###adventure-{adventure.RowId}");
|
||||||
|
|
||||||
if (has || available) {
|
if (has || available) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.2.14</Version>
|
<Version>1.2.14</Version>
|
||||||
<TargetFramework>net7-windows</TargetFramework>
|
<TargetFramework>net8-windows</TargetFramework>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
@ -47,7 +47,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="DalamudPackager" Version="2.1.12" />
|
<PackageReference Include="DalamudPackager" Version="2.1.13" />
|
||||||
<PackageReference Include="FFXIVWeather.Lumina" Version="2.2.0" />
|
<PackageReference Include="FFXIVWeather.Lumina" Version="2.2.0" />
|
||||||
</ItemGroup>
|
</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,
|
"version": 1,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"net7.0-windows7.0": {
|
"net8.0-windows7.0": {
|
||||||
"DalamudPackager": {
|
"DalamudPackager": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[2.1.12, )",
|
"requested": "[2.1.13, )",
|
||||||
"resolved": "2.1.12",
|
"resolved": "2.1.13",
|
||||||
"contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg=="
|
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
|
||||||
},
|
},
|
||||||
"FFXIVWeather.Lumina": {
|
"FFXIVWeather.Lumina": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
|
Loading…
Reference in New Issue
Block a user