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

Commit

Permalink
fix: changed cooldown window seperater.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 22, 2023
1 parent 45047a0 commit f72d291
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@
"ConfigWindow_Control_ShowControlWindow": "Show Control Window",
"ConfigWindow_Control_UseKeyboardCommand": "Use Keyboard Command",
"ConfigWindow_Control_UseGamepadCommand": "Use GamePad Command",
"ConfigWindow_Control_ControlShowCooldown": "Show action's cooldown",
"ConfigWindow_Control_ShowCooldownWindow": "Show Cooldown Window",
"ConfigWindow_Control_IsWindowLock": "Lock",
"ConfigWindow_Control_ShowItemsCooldown": "Show Items' Cooldown",
"ConfigWindow_Control_CooldownActionOneLine": "The count of cooldown actions in one line.",
"ConfigWindow_Control_BackgroundColor": "Control Window's Background",
"ConfigWindow_Control_NextActionWindowBg": "Next Action Window's Background",
"ConfigWindow_Control_InfoWindowBg": "Next Action Window's Background",
"ConfigWindow_Control_ControlWindowGCDSize": "GCD icon size",
"ConfigWindow_Control_ControlWindow0GCDSize": "0GCD icon size",
"ConfigWindow_Control_ControlWindowNextSizeRatio": "Next Action Size Ratio",
Expand Down
1 change: 0 additions & 1 deletion RotationSolver/UI/CooldownWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public override void Draw()
{
if (RotationUpdater.RightNowRotation != null)
{
ImGui.Separator();
foreach (var pair in RotationUpdater.AllGroupedActions)
{
var showItems = pair.Where(i => !(i is IBaseAction a && a.IsGeneralGCD)).OrderBy(a => a.ID);
Expand Down
4 changes: 3 additions & 1 deletion RotationSolver/Updaters/RotationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ public static void UpdateRotation()

RightNowRotation = GetChooseRotation(group, newName);
RightRotationBaseActions = RightNowRotation.AllBaseActions;
break;
return;
}
RightNowRotation = null;
RightRotationBaseActions = new IBaseAction[0];
}

internal static ICustomRotation GetChooseRotation(CustomRotationGroup group, string name)
Expand Down

0 comments on commit f72d291

Please sign in to comment.