Show HUD during dialogue: add option to keep hotbars/UI visible when talking to NPCs or interacting
Made-with: Cursor
This commit is contained in:
@@ -557,6 +557,15 @@ namespace HSUI.Interface
|
||||
return false;
|
||||
}
|
||||
|
||||
// When "Show HUD during dialogue" is on, keep HSUI visible during NPC dialogue and object interaction
|
||||
// even if the game hides the parameter bar
|
||||
var hudOptions = ConfigurationManager.Instance?.GetConfigObject<HUDOptionsConfig>();
|
||||
if (hudOptions?.ShowHudDuringDialogue == true &&
|
||||
(Plugin.Condition[ConditionFlag.OccupiedInQuestEvent] || Plugin.Condition[ConditionFlag.OccupiedInEvent]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
AtkUnitBase* parameterWidget = (AtkUnitBase*)Plugin.GameGui.GetAddonByName("_ParameterWidget", 1).Address;
|
||||
AtkUnitBase* fadeMiddleWidget = (AtkUnitBase*)Plugin.GameGui.GetAddonByName("FadeMiddle", 1).Address;
|
||||
|
||||
@@ -568,6 +577,10 @@ namespace HSUI.Interface
|
||||
|
||||
protected bool ShouldOnlyShowCastbar()
|
||||
{
|
||||
var hudOptions = ConfigurationManager.Instance?.GetConfigObject<HUDOptionsConfig>();
|
||||
if (hudOptions?.ShowHudDuringDialogue == true)
|
||||
return false;
|
||||
|
||||
// when in quest dialogs and events, hide everything except castbars
|
||||
// this includes talking to npcs or interacting with quest related stuff
|
||||
if (Plugin.Condition[ConditionFlag.OccupiedInQuestEvent] ||
|
||||
|
||||
Reference in New Issue
Block a user