Initial release: HSUI v1.0.0.0 - HUD replacement with configurable hotbars

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-01-30 23:52:46 -05:00
commit f37369cdda
202 changed files with 40137 additions and 0 deletions
@@ -0,0 +1,54 @@
using HSUI.Config;
using HSUI.Config.Attributes;
using HSUI.Helpers;
using Dalamud.Bindings.ImGui;
using Newtonsoft.Json;
using System.Numerics;
namespace HSUI.Interface.GeneralElements
{
[Disableable(false)]
[Exportable(false)]
[Section("Visibility")]
[SubSection("Global", 0)]
public class GlobalVisibilityConfig : PluginConfigObject
{
public new static GlobalVisibilityConfig DefaultConfig() { return new GlobalVisibilityConfig(); }
[NestedConfig("Visibility", 50, collapsingHeader = false)]
public VisibilityConfig VisibilityConfig = new VisibilityConfig();
[JsonIgnore]
private bool _applying = false;
[ManualDraw]
public bool Draw(ref bool changed)
{
ImGui.NewLine();
if (ImGui.Button("Apply to all elements", new Vector2(200, 30)))
{
_applying = true;
}
if (_applying)
{
string[] lines = new string[] { "This will replace the visibility settings", "for ALL HSUI elements!", "Are you sure?" };
var (didConfirm, didClose) = ImGuiHelper.DrawConfirmationModal("Apply?", lines);
if (didConfirm)
{
ConfigurationManager.Instance.OnGlobalVisibilityChanged(VisibilityConfig);
changed = true;
}
if (didConfirm || didClose)
{
_applying = false;
}
}
return false;
}
}
}