punish v6.8.18.0

This commit is contained in:
alydev 2025-10-09 07:47:19 +10:00
commit 060278c1b7
317 changed files with 554155 additions and 0 deletions

View file

@ -0,0 +1,34 @@
using Dalamud.Plugin;
using NotificationMasterAPI;
namespace Questionable.External;
internal sealed class NotificationMasterIpc
{
private readonly NotificationMasterApi _api;
public bool Enabled => _api.IsIPCReady();
public NotificationMasterIpc(IDalamudPluginInterface pluginInterface, Configuration configuration)
{
_003Cconfiguration_003EP = configuration;
_api = new NotificationMasterApi(pluginInterface);
base._002Ector();
}
public void Notify(string message)
{
Configuration.NotificationConfiguration notifications = _003Cconfiguration_003EP.Notifications;
if (notifications.Enabled)
{
if (notifications.ShowTrayMessage)
{
_api.DisplayTrayNotification("Questionable", message);
}
if (notifications.FlashTaskbar)
{
_api.FlashTaskbarIcon();
}
}
}
}