Skip to content

Commit

Permalink
Hide manual override god apple checkbox when actually picked up
Browse files Browse the repository at this point in the history
  • Loading branch information
DarwinBaker committed May 4, 2022
1 parent a76a48f commit 5de13d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions AATool/UI/Screens/UIMainScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,16 @@ private void UpdateEGapCheckbox()

//update the manual override god apple checkbox
var eGap = pickup as EGap;
if (Tracker.IsWorking && !eGap.Eaten)
if (!Tracker.IsWorking || eGap.PickedUp > 0 || eGap.Eaten)
{
this.toggleEGap.Expand();
string variant = Config.Main.FrameStyle == "Modern" ? "modern" : "basic";
variant = eGap.IsComplete() ? $"checked_{variant}" : $"unchecked_{variant}";
this.toggleEGap.First<UIPicture>()?.SetTexture(variant);
this.toggleEGap.Collapse();
}
else
{
this.toggleEGap.Collapse();
this.toggleEGap.Expand();
string variant = Config.Main.FrameStyle == "Modern" ? "modern" : "basic";
variant = eGap.IsComplete() ? $"checked_{variant}" : $"unchecked_{variant}";
this.toggleEGap.First<UIPicture>()?.SetTexture(variant);
}
}

Expand Down

0 comments on commit 5de13d7

Please sign in to comment.