4 Commits
master ... api9

Author SHA1 Message Date
ca8d5425e6 v0.5.1 2023-10-06 21:06:26 +02:00
ef4e46c5e4 v0.5 final 2023-10-03 16:23:01 +02:00
3715dcb9ac migrate to GameConfig & cleanup warnings 2023-09-24 17:13:41 +02:00
f9ab3462eb some adjustments for API9 2023-09-24 16:41:15 +02:00
7 changed files with 22 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ namespace Pilz.Dalamud.ActivityContexts
PluginServices.ClientState.TerritoryChanged -= ClientState_TerritoryChanged; PluginServices.ClientState.TerritoryChanged -= ClientState_TerritoryChanged;
} }
private void ClientState_TerritoryChanged(object? sender, ushort e) private void ClientState_TerritoryChanged(ushort obj)
{ {
CheckCurrentTerritory(); CheckCurrentTerritory();
} }

View File

@@ -24,7 +24,7 @@ namespace Pilz.Dalamud
/// Removes a Payload from a given list. /// Removes a Payload from a given list.
/// Using <code>List.Remove()</code> does not use the reference to compare for some reason. Tis is a workaround. /// Using <code>List.Remove()</code> does not use the reference to compare for some reason. Tis is a workaround.
/// </summary> /// </summary>
/// <param name="seString"></param> /// <param name="payloads"></param>
/// <param name="payload"></param> /// <param name="payload"></param>
public static void Remove(this List<Payload> payloads, Payload payload) public static void Remove(this List<Payload> payloads, Payload payload)
{ {

View File

@@ -10,6 +10,7 @@ using System.Threading.Tasks;
using Pilz.Dalamud.Nameplates.Model; using Pilz.Dalamud.Nameplates.Model;
using Lumina.Excel.GeneratedSheets; using Lumina.Excel.GeneratedSheets;
using System.Xml.Linq; using System.Xml.Linq;
using Dalamud.Plugin.Services;
namespace Pilz.Dalamud.Nameplates namespace Pilz.Dalamud.Nameplates
{ {
@@ -52,7 +53,7 @@ namespace Pilz.Dalamud.Nameplates
/// </summary> /// </summary>
public NameplateHooks() public NameplateHooks()
{ {
SignatureHelper.Initialise(this); PluginServices.GameInteropProvider.InitializeFromAttributes(this);
} }
~NameplateHooks() ~NameplateHooks()

View File

@@ -50,6 +50,7 @@ namespace Pilz.Dalamud.Nameplates.Tools
/// Gets a change of the position of the element of your choice where you can add your payloads. /// Gets a change of the position of the element of your choice where you can add your payloads.
/// </summary> /// </summary>
/// <param name="element">The position of your choice.</param> /// <param name="element">The position of your choice.</param>
/// <param name="position">The position of your choice.</param>
/// <returns></returns> /// <returns></returns>
public StringChange GetChange(NameplateElements element, StringPosition position) public StringChange GetChange(NameplateElements element, StringPosition position)
{ {

View File

@@ -28,7 +28,7 @@ namespace Pilz.Dalamud.Nameplates.Tools
/// taking into account whether or not the player is in a duty. /// taking into account whether or not the player is in a duty.
/// </summary> /// </summary>
/// <param name="iconId">The incoming icon id that is being overwritten by the plugin.</param> /// <param name="iconId">The incoming icon id that is being overwritten by the plugin.</param>
/// <param name="priorityIconId">The icon id that should be used.</param> /// <param name="activityContext"></param>
/// <returns>Whether a priority icon was found.</returns> /// <returns>Whether a priority icon was found.</returns>
public bool IsPriorityIcon(int iconId, ActivityContext activityContext) public bool IsPriorityIcon(int iconId, ActivityContext activityContext)
{ {

View File

@@ -24,9 +24,17 @@
<PackageReadmeFile>README.md</PackageReadmeFile> <PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/Pilzinsel64/Pilz.Dalamud</RepositoryUrl> <RepositoryUrl>https://github.com/Pilzinsel64/Pilz.Dalamud</RepositoryUrl>
<RepositoryType>git</RepositoryType> <RepositoryType>git</RepositoryType>
<Version>0.4.0</Version> <Version>0.5.1</Version>
<GenerateDocumentationFile>True</GenerateDocumentationFile> <GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="FFXIVClientStructs"> <Reference Include="FFXIVClientStructs">
@@ -60,7 +68,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\"/> <None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -4,6 +4,7 @@ using Dalamud.Game.ClientState.Objects;
using Dalamud.Game.Gui; using Dalamud.Game.Gui;
using Dalamud.IoC; using Dalamud.IoC;
using Dalamud.Plugin; using Dalamud.Plugin;
using Dalamud.Plugin.Services;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@@ -14,11 +15,12 @@ namespace Pilz.Dalamud
{ {
public class PluginServices public class PluginServices
{ {
[PluginService] public static GameGui GameGui { get; set; } = null;
[PluginService] public static DalamudPluginInterface PluginInterface { get; set; } = null; [PluginService] public static DalamudPluginInterface PluginInterface { get; set; } = null;
[PluginService] public static ClientState ClientState { get; set; } = null; [PluginService] public static IGameGui GameGui { get; set; } = null;
[PluginService] public static DataManager DataManager { get; set; } = null; [PluginService] public static IClientState ClientState { get; set; } = null;
[PluginService] public static ObjectTable ObjectTable { get; set; } = null; [PluginService] public static IDataManager DataManager { get; set; } = null;
[PluginService] public static IObjectTable ObjectTable { get; set; } = null;
[PluginService] public static IGameInteropProvider GameInteropProvider { get; set; } = null;
public static void Initialize(DalamudPluginInterface dalamudPluginInterface) public static void Initialize(DalamudPluginInterface dalamudPluginInterface)
{ {