2024-02-15 01:41:20 +01:00
|
|
|
|
using CustomResolution.Hooks;
|
2024-02-18 22:48:02 +01:00
|
|
|
|
using Dalamud.Game.Text;
|
2024-02-15 01:41:20 +01:00
|
|
|
|
using Dalamud.IoC;
|
2024-02-14 00:05:07 +01:00
|
|
|
|
using Dalamud.Plugin;
|
|
|
|
|
using Dalamud.Plugin.Services;
|
|
|
|
|
|
|
|
|
|
namespace CustomResolution;
|
|
|
|
|
|
|
|
|
|
public sealed class Service
|
|
|
|
|
{
|
|
|
|
|
public static Plugin Plugin { get; internal set; } = null!;
|
|
|
|
|
|
|
|
|
|
public static Configuration Config { get; internal set; } = null!;
|
|
|
|
|
|
|
|
|
|
public static PluginUI PluginUI { get; internal set; } = null!;
|
|
|
|
|
|
2024-02-15 01:41:20 +01:00
|
|
|
|
public static WndProcHook WndProcHook { get; internal set; } = null!;
|
|
|
|
|
public static CursorPosHooks CursorPosHooks { get; internal set; } = null!;
|
|
|
|
|
|
2024-02-14 00:05:07 +01:00
|
|
|
|
[PluginService]
|
|
|
|
|
public static DalamudPluginInterface PluginInterface { get; private set; } = null!;
|
|
|
|
|
|
|
|
|
|
[PluginService]
|
|
|
|
|
public static ICommandManager CommandManager { get; private set; } = null!;
|
|
|
|
|
|
|
|
|
|
[PluginService]
|
|
|
|
|
public static IFramework Framework { get; private set; } = null!;
|
|
|
|
|
|
|
|
|
|
[PluginService]
|
|
|
|
|
public static IClientState ClientState { get; private set; } = null!;
|
|
|
|
|
|
|
|
|
|
[PluginService]
|
2024-02-15 01:41:20 +01:00
|
|
|
|
public static IGameInteropProvider GameInteropProvider { get; private set; } = null!;
|
2024-02-14 00:05:07 +01:00
|
|
|
|
|
2024-02-15 01:41:20 +01:00
|
|
|
|
[PluginService]
|
|
|
|
|
public static IPluginLog PluginLog { get; private set; } = null!;
|
2024-02-18 22:48:02 +01:00
|
|
|
|
|
|
|
|
|
[PluginService]
|
|
|
|
|
public static IChatGui ChatGui { get; private set; } = null!;
|
|
|
|
|
|
|
|
|
|
public static void PrintChat(string msg)
|
|
|
|
|
{
|
|
|
|
|
ChatGui.Print(new XivChatEntry
|
|
|
|
|
{
|
|
|
|
|
Message = msg,
|
|
|
|
|
Type = PluginInterface.GeneralChatType
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void PrintChatErr(string msg)
|
|
|
|
|
{
|
|
|
|
|
ChatGui.PrintError(msg);
|
|
|
|
|
}
|
2024-02-14 00:05:07 +01:00
|
|
|
|
}
|