mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-28 11:29:18 +01:00
101 lines
3.2 KiB
C#
101 lines
3.2 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Numerics;
|
|
using Dalamud.Plugin;
|
|
using ImGuiNET;
|
|
using Lumina.Data.Parsing.Layer;
|
|
|
|
namespace Dalamud.Interface {
|
|
class DalamudChangelogWindow : IDisposable {
|
|
private readonly Dalamud dalamud;
|
|
private string assemblyVersion = Util.AssemblyVersion;
|
|
|
|
private const bool WarrantsChangelog = true;
|
|
private const string ChangeLog =
|
|
@"* The /xlbonus command was removed - it has been remade as the ""Adventurer in Need"" plugin by Caraxi and is way better now. Please check it out!
|
|
* Plugin UI is now also hidden when in GPose or in a cutscene. You can disable this in the /xlsettings window.
|
|
* Updated the localization files
|
|
* Added Norwegian, Korean and Russian localization - thanks a lot to all of our translators! If you wish to join the effort, please check our #translations channel.";
|
|
|
|
public DalamudChangelogWindow(Dalamud dalamud) {
|
|
this.dalamud = dalamud;
|
|
}
|
|
|
|
public bool Draw() {
|
|
var doDraw = true;
|
|
|
|
if (!WarrantsChangelog)
|
|
return false;
|
|
|
|
ImGui.PushID("DalamudChangelogWindow");
|
|
ImGui.Begin("What's new in XIVLauncher?", ref doDraw, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoResize);
|
|
|
|
ImGui.Text($"The in-game addon has been updated to version D{this.assemblyVersion}.");
|
|
|
|
ImGui.Dummy(new Vector2(10, 10));
|
|
|
|
ImGui.Text("The following changes were introduced:");
|
|
ImGui.Text(ChangeLog);
|
|
|
|
ImGui.Dummy(new Vector2(10, 10));
|
|
|
|
ImGui.Text("Thank you for using our tools!");
|
|
|
|
ImGui.Dummy(new Vector2(10, 10));
|
|
|
|
ImGui.PushFont(InterfaceManager.IconFont);
|
|
|
|
if (ImGui.Button(FontAwesomeIcon.Download.ToIconString()))
|
|
this.dalamud.OpenPluginInstaller();
|
|
|
|
if (ImGui.IsItemHovered()) {
|
|
ImGui.PopFont();
|
|
ImGui.SetTooltip("Open Plugin Installer");
|
|
ImGui.PushFont(InterfaceManager.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(InterfaceManager.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(InterfaceManager.IconFont);
|
|
}
|
|
|
|
|
|
ImGui.PopFont();
|
|
|
|
ImGui.SameLine();
|
|
ImGui.Dummy(new Vector2(20, 0));
|
|
ImGui.SameLine();
|
|
|
|
if (ImGui.Button("Close")) {
|
|
doDraw = false;
|
|
}
|
|
|
|
ImGui.End();
|
|
ImGui.PopID();
|
|
|
|
return doDraw;
|
|
}
|
|
|
|
public void Dispose() {
|
|
|
|
}
|
|
}
|
|
}
|