Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add an option for hiding in quest event.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 4, 2023
1 parent 4eec607 commit b4380a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions ActionTimelineEx/Configurations/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class Settings : IPluginConfiguration
public bool ShowTimelineOnlyInDuty = false;
public bool ShowTimelineOnlyInCombat = false;
public bool HideTimelineInCutscene = true;
public bool HideTimelineInQuestEvent = true;
public bool Record = true;
public bool RecordTargetStatus = true;
public List<DrawingSettings> TimelineSettings = new();
Expand Down
10 changes: 9 additions & 1 deletion ActionTimelineEx/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,15 @@ private bool ShowTimeline()
}

if (Settings.HideTimelineInCutscene
&& (Svc.Condition[ConditionFlag.WatchingCutscene] || Svc.Condition[ConditionFlag.WatchingCutscene78]))
&& (Svc.Condition[ConditionFlag.WatchingCutscene]
|| Svc.Condition[ConditionFlag.WatchingCutscene78]
|| Svc.Condition[ConditionFlag.OccupiedInCutSceneEvent]))
{
return false;
}

if (Settings.HideTimelineInQuestEvent
&& (Svc.Condition[ConditionFlag.OccupiedInQuestEvent]))
{
return false;
}
Expand Down
1 change: 1 addition & 0 deletions ActionTimelineEx/Windows/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ private void DrawGeneralSetting()
ImGui.Checkbox("Show Only In Duty", ref Settings.ShowTimelineOnlyInDuty);
ImGui.Checkbox("Show Only In Combat", ref Settings.ShowTimelineOnlyInCombat);
ImGui.Checkbox("Hide In Cutscene", ref Settings.HideTimelineInCutscene);
ImGui.Checkbox("Hide In Quest Event", ref Settings.HideTimelineInQuestEvent);
ImGui.Checkbox("Print Clipping Time On Chat", ref Settings.PrintClipping);
if (Settings.PrintClipping)
{
Expand Down

0 comments on commit b4380a9

Please sign in to comment.