The seven settings tabs and the overview helper are removed. The new settings UI lands in a later cycle and will be rebuilt from scratch on the v2.x component layer; keeping the v1.5.6 tab classes around in the meantime would only carry dead dependencies through the rest of this cycle. The window stays registered so /hellion settings, the slash command path, and the UiBuilder open handlers all still resolve.
47 lines
1.6 KiB
C#
Executable File
47 lines
1.6 KiB
C#
Executable File
using System.Numerics;
|
|
using Dalamud.Bindings.ImGui;
|
|
using Dalamud.Interface;
|
|
using Dalamud.Interface.Windowing;
|
|
using Dalamud.Utility;
|
|
using HellionChat.Resources;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace HellionChat.Ui;
|
|
|
|
// Placeholder window kept alive so the slash-command paths, UiBuilder
|
|
// open-handlers and the WindowSystem registration stay functional until
|
|
// the new settings UI lands in a later cycle. The body just points users
|
|
// at the JSON config and at /hellion reset for theme recovery.
|
|
public sealed class SettingsWindow : Window
|
|
{
|
|
private readonly Plugin _plugin;
|
|
|
|
internal SettingsWindow(Plugin plugin, ILoggerFactory loggerFactory)
|
|
: base($"{Language.Settings_Title.Format(Plugin.PluginName)}###chat2-settings")
|
|
{
|
|
_plugin = plugin;
|
|
_ = loggerFactory;
|
|
SizeCondition = ImGuiCond.FirstUseEver;
|
|
SizeConstraints = new WindowSizeConstraints
|
|
{
|
|
MinimumSize = new Vector2(400, 200),
|
|
MaximumSize = new Vector2(float.MaxValue, float.MaxValue),
|
|
};
|
|
RespectCloseHotkey = false;
|
|
DisableWindowSounds = true;
|
|
}
|
|
|
|
public override void Draw()
|
|
{
|
|
using (_plugin.FontManager.FontAwesome.Push())
|
|
ImGui.TextUnformatted(FontAwesomeIcon.InfoCircle.ToIconString());
|
|
ImGui.SameLine();
|
|
ImGui.TextUnformatted("Settings UI lands in a later cycle.");
|
|
ImGui.Spacing();
|
|
ImGui.TextWrapped(
|
|
"For now, edit the plugin config JSON directly. Use /hellion reset to "
|
|
+ "drop a broken custom theme out of the loader cache without touching the file on disk."
|
|
);
|
|
}
|
|
}
|