API 9 #1
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,6 +28,14 @@
|
|||||||
<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">
|
||||||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
|
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user