CurrencyAlertClassic/CurrencyAlert/Plugin.cs
MidoriKami e97fe36ba0
Complete Rework + Update (#15)
* Remove unused dalamud packager overrides

* Use category tags, add actual description

* Use .net7

* Update DalamudPackager, update for Api8

* Remove hardcoded images, we'll use lumina to get these dynamically

* Add KamiLib

* Refactor Currency Alert

* Add LocalizationManager.cs

* remove trailing comma

* Add No Decoration flag

* More touchups and features

* Increase Version Number 0.5.0.0

* Move Chat Notifications to its own category

* Hide overlay if not logged in or there are no warnings to show

* Increase update frequency to 4x per second
2023-01-10 21:07:57 +01:00

36 lines
1.1 KiB
C#

using CurrencyAlert.Localization;
using CurrencyAlert.System.cs;
using CurrencyAlert.Windows;
using Dalamud.Plugin;
using KamiLib;
namespace CurrencyAlert;
public sealed class Plugin : IDalamudPlugin
{
public string Name => "CurrencyAlert";
public Plugin(DalamudPluginInterface pluginInterface)
{
pluginInterface.Create<Service>();
KamiCommon.Initialize(pluginInterface, Name, () => Service.Configuration.Save());
LocalizationManager.Instance.Initialize();
Service.Configuration = Service.PluginInterface.GetPluginConfig() as Configuration ?? new Configuration();
Service.Configuration.Initialize(Service.PluginInterface);
KamiCommon.WindowManager.AddConfigurationWindow(new ConfigurationWindow());
KamiCommon.WindowManager.AddWindow(new OverlayWindow());
Service.CurrencyTracker = new CurrencyTracker();
}
public void Dispose()
{
KamiCommon.Dispose();
Service.CurrencyTracker.Dispose();
LocalizationManager.Cleanup();
}
}