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

Commit

Permalink
fix: new feature for record status target.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 19, 2023
1 parent 46bdef2 commit e71ac94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
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 Record = true;
public bool RecordTargetStatus = true;
public List<DrawingSettings> TimelineSettings = new();
public HashSet<ushort> HideStatusIds = new HashSet<ushort>();
public bool PrintClipping = false;
Expand Down
3 changes: 0 additions & 3 deletions ActionTimelineEx/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
using ActionTimeline.Windows;
using Dalamud.Game.ClientState.Conditions;
using Dalamud.Interface.Windowing;
using Dalamud.Logging;
using Dalamud.Plugin;
using ECommons;
using ECommons.Commands;
using ECommons.DalamudServices;
using ECommons.GameHelpers;
using ImGuiNET;
using System.Numerics;

namespace ActionTimeline;

Expand Down
7 changes: 3 additions & 4 deletions ActionTimelineEx/Timeline/TimelineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,13 @@ private void ActionFromSelf(ActionEffectSet set)
{
switch (x.type)
{
case ActionEffectType.ApplyStatusEffectTarget:
case ActionEffectType.ApplyStatusEffectSource:
case ActionEffectType.GpGain:
case (ActionEffectType)14 when Plugin.Settings.RecordTargetStatus: // ApplyStatusEffectTarget
case (ActionEffectType)15: // ApplyStatusEffectSource
var icon = GetStatusIcon(x.value, true);
if (icon != 0) statusGain.Add(icon);
break;

case ActionEffectType.LoseStatusEffectTarget:
case ActionEffectType.LoseStatusEffectTarget when Plugin.Settings.RecordTargetStatus:
case ActionEffectType.LoseStatusEffectSource:
icon = GetStatusIcon(x.value, false);
if (icon != 0) statusLose.Add(icon);
Expand Down
1 change: 1 addition & 0 deletions ActionTimelineEx/Windows/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ private void DrawGeneralSetting()
}

ImGui.NewLine();
ImGui.Checkbox("Record Target Status", ref Settings.RecordTargetStatus);

var index = 0;

Expand Down

0 comments on commit e71ac94

Please sign in to comment.