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

Commit

Permalink
fix: add enable rotations checkbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Aug 15, 2023
1 parent 33313d0 commit 7836621
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RotationSolver/UI/RotationConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,13 @@ private static void DrawRotationConfiguration()
var rotation = RotationUpdater.RightNowRotation;
if (rotation == null) return;

var enable = rotation.IsEnabled;
if(ImGui.Checkbox(rotation.Name, ref enable))
{
rotation.IsEnabled = enable;
}
if (!enable) return;

var set = rotation.Configs;
foreach (var config in set.Configs)
{
Expand Down

0 comments on commit 7836621

Please sign in to comment.