v1.0.3.0: Alliance frames fixes, PvP support, shared hotbar persistence, config save on teleport

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-01-31 20:35:25 -05:00
parent bda3762ac8
commit 11b4c268f0
17 changed files with 1145 additions and 77 deletions
+19
View File
@@ -154,6 +154,7 @@ namespace HSUI.Config
CheckVersion();
Plugin.ClientState.Logout += OnLogout;
Plugin.ClientState.TerritoryChanged += OnTerritoryChanged;
Plugin.JobChangedEvent += OnJobChanged;
_configBaseNode.CreateNodesIfNeeded();
@@ -179,6 +180,7 @@ namespace HSUI.Config
ConfigBaseNode.ConfigObjectResetEvent -= OnConfigObjectReset;
Plugin.ClientState.Logout -= OnLogout;
Plugin.ClientState.TerritoryChanged -= OnTerritoryChanged;
Plugin.JobChangedEvent -= OnJobChanged;
Instance = null!;
@@ -197,6 +199,13 @@ namespace HSUI.Config
ProfilesManager.Instance?.SaveCurrentProfile();
}
private void OnTerritoryChanged(ushort territoryId)
{
// Persist config on teleport/zone change so changes aren't lost during loading screens
if (ConfigBaseNode.NeedsSave)
SaveConfigurations();
}
private void OnJobChanged(uint jobId)
{
UpdateCurrentProfile();
@@ -602,6 +611,16 @@ namespace HSUI.Config
// Party Frames
typeof(PartyFramesConfig),
typeof(AllianceFramesHealthBarsConfig),
typeof(AllianceFramesManaBarConfig),
typeof(AllianceFramesCastbarConfig),
typeof(AllianceFramesIconsConfig),
typeof(AllianceFramesBuffsConfig),
typeof(AllianceFramesDebuffsConfig),
typeof(AllianceFramesTrackersConfig),
typeof(AllianceFramesCooldownListConfig),
typeof(AllianceFrames1Config),
typeof(AllianceFrames2Config),
typeof(PartyFramesHealthBarsConfig),
typeof(PartyFramesManaBarConfig),
typeof(PartyFramesCastbarConfig),