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 hide in cutscene.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 4, 2023
1 parent 4dcb193 commit 4eec607
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions ActionTimelineEx/Configurations/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class Settings : IPluginConfiguration
{
public bool ShowTimelineOnlyInDuty = false;
public bool ShowTimelineOnlyInCombat = false;
public bool HideTimelineInCutscene = true;
public bool Record = true;
public bool RecordTargetStatus = true;
public List<DrawingSettings> TimelineSettings = new();
Expand Down
6 changes: 6 additions & 0 deletions ActionTimelineEx/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ private bool ShowTimeline()
return false;
}

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

return true;
}

Expand Down
1 change: 1 addition & 0 deletions ActionTimelineEx/Windows/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ private void DrawGeneralSetting()
ImGui.Checkbox("Record Data", ref Settings.Record);
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("Print Clipping Time On Chat", ref Settings.PrintClipping);
if (Settings.PrintClipping)
{
Expand Down

0 comments on commit 4eec607

Please sign in to comment.