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

Commit

Permalink
fix: add remove one rotation feature! omg.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 13, 2024
1 parent 76c1a21 commit ac4fd47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ActionTimelineEx/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"XIVConfigUI.LocalString.Remove": "Remove",
"XIVConfigUI.LocalString.MoveUp": "Move Up",
"XIVConfigUI.LocalString.MoveDown": "Move Down",
"ActionTimelineEx.Configurations.ActionSettingDescription": "Fell Cleave (GCD)",
"ActionTimelineEx.Configurations.ActionSettingDescription": "Infuriate (Ability)",
"ActionTimelineEx.Configurations.ActionSettingName.Id": "Id",
"ActionTimelineEx.Configurations.ActionSettingName.Type": "Type",
"ActionTimelineEx.Configurations.ActionSettingType.Action": "Action",
Expand Down
7 changes: 7 additions & 0 deletions ActionTimelineEx/Windows/RotationHelperItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ public override void Draw(ConfigWindow window)

ImGui.SameLine();

if (TimelineItem.RemoveValue(setting.RotationSetting.Name))
{
setting.RotationSettings.Remove(setting.RotationSetting);
}

ImGui.SameLine();

window.Collection.DrawItems(3);

_group ??= new CollapsingHeaderGroup(new()
Expand Down
6 changes: 3 additions & 3 deletions ActionTimelineEx/Windows/TimelineItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public override void Draw(ConfigWindow window)
_extraHeader?.Draw();
}

private string _undoName = string.Empty;
private DateTime _lastTime = DateTime.MinValue;
private bool RemoveValue(string name)
private static string _undoName = string.Empty;
private static DateTime _lastTime = DateTime.MinValue;
internal static bool RemoveValue(string name)
{
bool isLast = false, isTime = false;

Expand Down

0 comments on commit ac4fd47

Please sign in to comment.