Implement service locator

This commit is contained in:
Raymond 2021-08-20 11:59:35 -04:00
parent 06b1163a52
commit ff1d7f2829
101 changed files with 1614 additions and 1436 deletions

View file

@ -22,18 +22,14 @@ namespace Dalamud.Interface.Internal.Windows
If you note any issues or need help, please make sure to ask on our discord server.";
private readonly Dalamud dalamud;
private readonly string assemblyVersion = Util.AssemblyVersion;
/// <summary>
/// Initializes a new instance of the <see cref="ChangelogWindow"/> class.
/// </summary>
/// <param name="dalamud">The Dalamud instance.</param>
public ChangelogWindow(Dalamud dalamud)
public ChangelogWindow()
: base("What's new in XIVLauncher?", ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoResize)
{
this.dalamud = dalamud;
this.Namespace = "DalamudChangelogWindow";
this.IsOpen = WarrantsChangelog;
@ -59,7 +55,7 @@ If you note any issues or need help, please make sure to ask on our discord serv
if (ImGui.Button(FontAwesomeIcon.Download.ToIconString()))
{
this.dalamud.DalamudUi.OpenPluginInstaller();
Service<DalamudInterface>.Get().OpenPluginInstaller();
}
if (ImGui.IsItemHovered())