mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
123 lines
3.8 KiB
C#
123 lines
3.8 KiB
C#
using System.Diagnostics;
|
|
using System.Numerics;
|
|
|
|
using Dalamud.Interface.Colors;
|
|
using Dalamud.Interface.Windowing;
|
|
using Dalamud.Utility;
|
|
using ImGuiNET;
|
|
|
|
namespace Dalamud.Interface.Internal.Windows
|
|
{
|
|
/// <summary>
|
|
/// For major updates, an in-game Changelog window.
|
|
/// </summary>
|
|
internal sealed class ChangelogWindow : Window
|
|
{
|
|
/// <summary>
|
|
/// Whether the latest update warrants a changelog window.
|
|
/// </summary>
|
|
public const string WarrantsChangelogForMajorMinor = "6.1.";
|
|
|
|
private const string ChangeLog =
|
|
@"• Internal adjustments to allow plugins to work on the new version of the game
|
|
|
|
If you note any issues or need help, please make sure to ask on our discord server.
|
|
Thanks and have fun with the new expansion!";
|
|
|
|
private const string UpdatePluginsInfo =
|
|
@"• All of your plugins were disabled automatically, due to this update. This is normal.
|
|
• Open the plugin installer, then click 'update plugins'. Updated plugins should update and then re-enable themselves.
|
|
=> Please keep in mind that not all of your plugins may already be updated for the new version.
|
|
=> If some plugins are displayed with a red cross in the 'Installed Plugins' tab, they may not yet be available.";
|
|
|
|
private readonly string assemblyVersion = Util.AssemblyVersion;
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ChangelogWindow"/> class.
|
|
/// </summary>
|
|
public ChangelogWindow()
|
|
: base("What's new in XIVLauncher?")
|
|
{
|
|
this.Namespace = "DalamudChangelogWindow";
|
|
|
|
this.Size = new Vector2(885, 463);
|
|
this.SizeCondition = ImGuiCond.Appearing;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public override void Draw()
|
|
{
|
|
ImGui.Text($"Dalamud has been updated to version D{this.assemblyVersion}.");
|
|
|
|
ImGuiHelpers.ScaledDummy(10);
|
|
|
|
ImGui.Text("The following changes were introduced:");
|
|
ImGui.TextWrapped(ChangeLog);
|
|
|
|
ImGuiHelpers.ScaledDummy(5);
|
|
|
|
ImGui.TextColored(ImGuiColors.DalamudRed, " !!! ATTENTION !!!");
|
|
|
|
ImGui.TextWrapped(UpdatePluginsInfo);
|
|
|
|
ImGuiHelpers.ScaledDummy(10);
|
|
|
|
ImGui.Text("Thank you for using our tools!");
|
|
|
|
ImGuiHelpers.ScaledDummy(10);
|
|
|
|
ImGui.PushFont(UiBuilder.IconFont);
|
|
|
|
if (ImGui.Button(FontAwesomeIcon.Download.ToIconString()))
|
|
{
|
|
Service<DalamudInterface>.Get().OpenPluginInstaller();
|
|
}
|
|
|
|
if (ImGui.IsItemHovered())
|
|
{
|
|
ImGui.PopFont();
|
|
ImGui.SetTooltip("Open Plugin Installer");
|
|
ImGui.PushFont(UiBuilder.IconFont);
|
|
}
|
|
|
|
ImGui.SameLine();
|
|
|
|
if (ImGui.Button(FontAwesomeIcon.LaughBeam.ToIconString()))
|
|
{
|
|
Process.Start("https://discord.gg/3NMcUV5");
|
|
}
|
|
|
|
if (ImGui.IsItemHovered())
|
|
{
|
|
ImGui.PopFont();
|
|
ImGui.SetTooltip("Join our Discord server");
|
|
ImGui.PushFont(UiBuilder.IconFont);
|
|
}
|
|
|
|
ImGui.SameLine();
|
|
|
|
if (ImGui.Button(FontAwesomeIcon.Globe.ToIconString()))
|
|
{
|
|
Process.Start("https://github.com/goatcorp/FFXIVQuickLauncher");
|
|
}
|
|
|
|
if (ImGui.IsItemHovered())
|
|
{
|
|
ImGui.PopFont();
|
|
ImGui.SetTooltip("See our GitHub repository");
|
|
ImGui.PushFont(UiBuilder.IconFont);
|
|
}
|
|
|
|
ImGui.PopFont();
|
|
|
|
ImGui.SameLine();
|
|
ImGuiHelpers.ScaledDummy(20, 0);
|
|
ImGui.SameLine();
|
|
|
|
if (ImGui.Button("Close"))
|
|
{
|
|
this.IsOpen = false;
|
|
}
|
|
}
|
|
}
|
|
}
|