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

Commit

Permalink
fix: simplify data recording.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 22, 2024
1 parent 7710096 commit 9ffe44c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions ActionTimelineEx/Configurations/Actions/ActionSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public abstract class ActionSetting

private uint _actionId;

[JsonIgnore]
public bool IsEmpty => ActionId == 0;

public uint ActionId
Expand All @@ -41,6 +42,7 @@ public uint ActionId
}
}

[JsonIgnore]
[UI("Action ID")]
public int ActionID { get => (int) ActionId; set => ActionId = (uint)value; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using FFXIVClientStructs.FFXIV.Client.Game;
using ImGuiNET;
using Lumina.Excel.GeneratedSheets;
using System;
using System.Numerics;
using XIVConfigUI;
using XIVConfigUI.Attributes;
Expand Down
4 changes: 2 additions & 2 deletions ActionTimelineEx/Configurations/RotationSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public void Draw(float heightReduce)
{
var gcdHeight = Plugin.Settings.GCDIconSize;
var spacing = Plugin.Settings.IconSpacing;
var drawList = ImGui.GetBackgroundDrawList();
var drawList = ImGui.GetWindowDrawList();

var wholeHeight = ImGui.GetWindowPos().Y - heightReduce;
var wholeHeight = ImGui.GetWindowSize().Y - heightReduce;
var windowPos = ImGui.GetWindowPos() + Vector2.UnitY * heightReduce;

var pos = windowPos + new Vector2(gcdHeight * 0.2f,
Expand Down
6 changes: 3 additions & 3 deletions ActionTimelineEx/Localization/Localization.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ActionTimelineEx.DescriptionAboutCommand": "Opens the ActionTimelineEx configuration window.\n `/atle reset` to reset the rotation helper count.",
"ActionTimelineEx.DescriptionAboutCommand": "Opens the ActionTimelineEx configuration window.\n\"/atle reset\" to reset the rotation helper count.\n\"/atle toggle\" to toggle the rotation helper's visibility.",
"ActionTimelineEx.Punchline": "Show your actions in real-time.",
"XIVConfigUI.LocalString.Searching": "Search... ",
"ActionTimelineEx.Windows.RotationHelperItem": "Rotation Helper",
Expand Down Expand Up @@ -154,11 +154,11 @@
"ActionTimelineEx.Helpers.ActionType.SystemAction": "SystemAction",
"ActionTimelineEx.Helpers.ActionType.LimitBreak": "LimitBreak",
"ActionTimelineEx.Helpers.ActionType.DutyAction": "DutyAction",
"ActionTimelineEx.Configurations.Actions.GCDActionDescription": "Inner Chaos (GCD)",
"ActionTimelineEx.Configurations.Actions.GCDActionDescription": "Fell Cleave (GCD)",
"ActionTimelineEx.Configurations.Actions.oGCDActionName.ActionType": "Type",
"ActionTimelineEx.Configurations.Actions.ActionSettingType.Action": "Action",
"ActionTimelineEx.Configurations.Actions.ActionSettingType.Item": "Item",
"ActionTimelineEx.Configurations.Actions.oGCDActionDescription": "Infuriate (oGCD)",
"ActionTimelineEx.Configurations.Actions.oGCDActionDescription": "Inner Release (oGCD)",
"ActionTimelineEx.Configurations.Actions.ActionSetting": "ActionSetting",
"ActionTimelineEx.Configurations.Actions.ActionSettingDescription": "Heavy Swing (GCD)",
"ActionTimelineEx.Configurations.Actions.ActionSettingName.ActionID": "Action ID",
Expand Down
5 changes: 3 additions & 2 deletions ActionTimelineEx/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class Plugin : IDalamudPlugin
public Plugin(IDalamudPluginInterface pluginInterface)
{
ECommonsMain.Init(pluginInterface, this);
XIVConfigUIMain.Init(pluginInterface, "/atle", "Opens the ActionTimelineEx configuration window.\n `/atle reset` to reset the rotation helper count.", PluginCommand, typeof(Settings), typeof(DrawingSettings), typeof(GroupItem), typeof(UiString));
XIVConfigUIMain.Init(pluginInterface, "/atle", "Opens the ActionTimelineEx configuration window.\n\"/atle reset\" to reset the rotation helper count.\n\"/atle toggle\" to toggle the rotation helper's visibility.", PluginCommand, typeof(Settings), typeof(DrawingSettings), typeof(GroupItem), typeof(UiString));
XIVDrawerMain.Init(pluginInterface, "ActionTimelineExOverlay");

Svc.PluginInterface.UiBuilder.Draw += Draw;
Expand All @@ -80,8 +80,9 @@ public Plugin(IDalamudPluginInterface pluginInterface)
{
Settings = pluginInterface.GetPluginConfig() as Settings ?? new Settings();
}
catch
catch(Exception ex)
{
Svc.Log.Error(ex, "Failed to load the configs!");
Settings = new Settings();
}

Expand Down

0 comments on commit 9ffe44c

Please sign in to comment.