mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Revert "refactor(Dalamud): switch to file-scoped namespaces"
This reverts commit b5f34c3199.
This commit is contained in:
parent
d473826247
commit
1561fbac00
325 changed files with 45549 additions and 45209 deletions
|
|
@ -6,20 +6,20 @@ 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
|
||||
namespace Dalamud.Interface.Internal.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the latest update warrants a changelog window.
|
||||
/// For major updates, an in-game Changelog window.
|
||||
/// </summary>
|
||||
public const string WarrantsChangelogForMajorMinor = "6.0.";
|
||||
internal sealed class ChangelogWindow : Window
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the latest update warrants a changelog window.
|
||||
/// </summary>
|
||||
public const string WarrantsChangelogForMajorMinor = "6.0.";
|
||||
|
||||
private const string ChangeLog =
|
||||
@"This is the biggest update of the in-game addon to date.
|
||||
private const string ChangeLog =
|
||||
@"This is the biggest update of the in-game addon to date.
|
||||
We have redone most of the underlying systems, providing you with a better experience playing and browsing for plugins, including better performance, and developers with a better API and more comfortable development environment.
|
||||
|
||||
We have also added some new features:
|
||||
|
|
@ -29,99 +29,100 @@ We have also added some new features:
|
|||
|
||||
If you note any issues or need help, please make sure to ask on our discord server.";
|
||||
|
||||
private const string UpdatePluginsInfo =
|
||||
@"• All of your plugins were disabled automatically, due to this update. This is normal.
|
||||
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;
|
||||
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($"The in-game addon 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()))
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ChangelogWindow"/> class.
|
||||
/// </summary>
|
||||
public ChangelogWindow()
|
||||
: base("What's new in XIVLauncher?")
|
||||
{
|
||||
Service<DalamudInterface>.Get().OpenPluginInstaller();
|
||||
this.Namespace = "DalamudChangelogWindow";
|
||||
|
||||
this.Size = new Vector2(885, 463);
|
||||
this.SizeCondition = ImGuiCond.Appearing;
|
||||
}
|
||||
|
||||
if (ImGui.IsItemHovered())
|
||||
/// <inheritdoc/>
|
||||
public override void Draw()
|
||||
{
|
||||
ImGui.PopFont();
|
||||
ImGui.SetTooltip("Open Plugin Installer");
|
||||
ImGui.Text($"The in-game addon 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);
|
||||
}
|
||||
|
||||
ImGui.SameLine();
|
||||
if (ImGui.Button(FontAwesomeIcon.Download.ToIconString()))
|
||||
{
|
||||
Service<DalamudInterface>.Get().OpenPluginInstaller();
|
||||
}
|
||||
|
||||
if (ImGui.Button(FontAwesomeIcon.LaughBeam.ToIconString()))
|
||||
{
|
||||
Process.Start("https://discord.gg/3NMcUV5");
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
if (ImGui.IsItemHovered())
|
||||
{
|
||||
ImGui.PopFont();
|
||||
ImGui.SetTooltip("Join our Discord server");
|
||||
ImGui.PushFont(UiBuilder.IconFont);
|
||||
}
|
||||
|
||||
ImGui.SameLine();
|
||||
ImGui.SameLine();
|
||||
ImGuiHelpers.ScaledDummy(20, 0);
|
||||
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;
|
||||
if (ImGui.Button("Close"))
|
||||
{
|
||||
this.IsOpen = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue