v1.0.2.8: Hide default cast bar when HSUI cast bar is enabled
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-3
@@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>HSUI</AssemblyName>
|
<AssemblyName>HSUI</AssemblyName>
|
||||||
<AssemblyVersion>1.0.2.7</AssemblyVersion>
|
<AssemblyVersion>1.0.2.8</AssemblyVersion>
|
||||||
<FileVersion>1.0.2.7</FileVersion>
|
<FileVersion>1.0.2.8</FileVersion>
|
||||||
<InformationalVersion>1.0.2.7</InformationalVersion>
|
<InformationalVersion>1.0.2.8</InformationalVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"Author": "Knack117",
|
"Author": "Knack117",
|
||||||
"Name": "HSUI",
|
"Name": "HSUI",
|
||||||
"InternalName": "HSUI",
|
"InternalName": "HSUI",
|
||||||
"AssemblyVersion": "1.0.2.7",
|
"AssemblyVersion": "1.0.2.8",
|
||||||
"Description": "HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.",
|
"Description": "HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.",
|
||||||
"ApplicableVersion": "any",
|
"ApplicableVersion": "any",
|
||||||
"RepoUrl": "https://github.com/Knack117/HSUI",
|
"RepoUrl": "https://github.com/Knack117/HSUI",
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ namespace HSUI.Interface
|
|||||||
|
|
||||||
UpdateJobGauges();
|
UpdateJobGauges();
|
||||||
UpdateDefaultHudElementsHidden();
|
UpdateDefaultHudElementsHidden();
|
||||||
|
UpdateDefaultCastBar();
|
||||||
UpdateDefaultNameplates();
|
UpdateDefaultNameplates();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -133,6 +134,7 @@ namespace HSUI.Interface
|
|||||||
{
|
{
|
||||||
case "HideDefaultHudWhenReplaced":
|
case "HideDefaultHudWhenReplaced":
|
||||||
UpdateDefaultHudElementsHidden();
|
UpdateDefaultHudElementsHidden();
|
||||||
|
UpdateDefaultCastBar();
|
||||||
break;
|
break;
|
||||||
case "HideDefaultCastbar":
|
case "HideDefaultCastbar":
|
||||||
UpdateDefaultCastBar();
|
UpdateDefaultCastBar();
|
||||||
@@ -334,7 +336,11 @@ namespace HSUI.Interface
|
|||||||
|
|
||||||
private unsafe void UpdateDefaultCastBar(bool forceVisible = false)
|
private unsafe void UpdateDefaultCastBar(bool forceVisible = false)
|
||||||
{
|
{
|
||||||
if (Config.HideDefaultCastbar && !_hidingCastBar)
|
// Hide when explicit config says so, or when HSUI is replacing it (HideDefaultHudWhenReplaced + player castbar enabled)
|
||||||
|
bool playerCastbarEnabled = ConfigurationManager.Instance?.GetConfigObject<PlayerCastbarConfig>()?.Enabled ?? false;
|
||||||
|
bool shouldHide = Config.HideDefaultCastbar || (Config.HideDefaultHudWhenReplaced && playerCastbarEnabled);
|
||||||
|
|
||||||
|
if (shouldHide && !_hidingCastBar)
|
||||||
{
|
{
|
||||||
Plugin.AddonLifecycle.RegisterListener(AddonEvent.PreDraw, "_CastBar", (addonEvent, args) =>
|
Plugin.AddonLifecycle.RegisterListener(AddonEvent.PreDraw, "_CastBar", (addonEvent, args) =>
|
||||||
{
|
{
|
||||||
@@ -350,7 +356,7 @@ namespace HSUI.Interface
|
|||||||
|
|
||||||
_hidingCastBar = true;
|
_hidingCastBar = true;
|
||||||
}
|
}
|
||||||
else if ((forceVisible || !Config.HideDefaultCastbar) && _hidingCastBar)
|
else if ((forceVisible || !shouldHide) && _hidingCastBar)
|
||||||
{
|
{
|
||||||
Plugin.AddonLifecycle.UnregisterListener(AddonEvent.PreDraw, "_CastBar");
|
Plugin.AddonLifecycle.UnregisterListener(AddonEvent.PreDraw, "_CastBar");
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# 1.0.2.8
|
||||||
|
- **Cast bar**: Default progress bar is now hidden when HSUI cast bar is enabled (with "Hide Default HUD When Replaced" on).
|
||||||
|
|
||||||
# 1.0.2.7
|
# 1.0.2.7
|
||||||
- **Hotbars**: Fixed Mount/Companion/Emote tooltips — now show actual mount name and description instead of generic "Mount".
|
- **Hotbars**: Fixed Mount/Companion/Emote tooltips — now show actual mount name and description instead of generic "Mount".
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -4,9 +4,9 @@
|
|||||||
"Name": "HSUI",
|
"Name": "HSUI",
|
||||||
"Punchline": "A modern HUD replacement built for customization.",
|
"Punchline": "A modern HUD replacement built for customization.",
|
||||||
"Description": "HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.",
|
"Description": "HSUI provides a highly configurable HUD replacement for FFXIV, recreated from DelvUI using KamiToolKit, FFXIVClientStructs, and Dalamud. Features unit frames, castbars, job gauges, nameplates, party frames, status effects, enemy list, configurable hotbars with drag-and-drop, and profiles.",
|
||||||
"Changelog": "Hotbars: Fixed Mount/Companion/Emote tooltips. Now show actual mount name and description.",
|
"Changelog": "Cast bar: Default progress bar hidden when HSUI cast bar is enabled.",
|
||||||
"InternalName": "HSUI",
|
"InternalName": "HSUI",
|
||||||
"AssemblyVersion": "1.0.2.7",
|
"AssemblyVersion": "1.0.2.8",
|
||||||
"RepoUrl": "https://github.com/Knack117/HSUI",
|
"RepoUrl": "https://github.com/Knack117/HSUI",
|
||||||
"ApplicableVersion": "any",
|
"ApplicableVersion": "any",
|
||||||
"Tags": ["UI", "HUD", "Unit Frames", "Nameplates", "Party Frames", "Hotbars"],
|
"Tags": ["UI", "HUD", "Unit Frames", "Nameplates", "Party Frames", "Hotbars"],
|
||||||
@@ -14,10 +14,10 @@
|
|||||||
"DalamudApiLevel": 14,
|
"DalamudApiLevel": 14,
|
||||||
"IconUrl": "https://raw.githubusercontent.com/Knack117/HSUI/main/Media/Images/icon.png",
|
"IconUrl": "https://raw.githubusercontent.com/Knack117/HSUI/main/Media/Images/icon.png",
|
||||||
"ImageUrls": [],
|
"ImageUrls": [],
|
||||||
"DownloadLinkInstall": "https://github.com/Knack117/HSUI/releases/download/v1.0.2.7/latest.zip",
|
"DownloadLinkInstall": "https://github.com/Knack117/HSUI/releases/download/v1.0.2.8/latest.zip",
|
||||||
"IsHide": false,
|
"IsHide": false,
|
||||||
"IsTestingExclusive": false,
|
"IsTestingExclusive": false,
|
||||||
"DownloadLinkTesting": "https://github.com/Knack117/HSUI/releases/download/v1.0.2.7/latest.zip",
|
"DownloadLinkTesting": "https://github.com/Knack117/HSUI/releases/download/v1.0.2.8/latest.zip",
|
||||||
"DownloadLinkUpdate": "https://github.com/Knack117/HSUI/releases/download/v1.0.2.7/latest.zip"
|
"DownloadLinkUpdate": "https://github.com/Knack117/HSUI/releases/download/v1.0.2.8/latest.zip"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user