Skip to content

Commit

Permalink
Fix toasts appearing behind mod menu
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Feb 3, 2023
1 parent 5025bf1 commit 726346a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Assets.Scripts.UI/MainUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,15 +559,19 @@ public void OnGUI()
return;
}

toaster.OnGUIFragment();

if (this.modMenu == null)
{
// If mod menu not available, just draw any toast notifications and exit
toaster.OnGUIFragment();
return;
}

modMenu.OnGUIFragment();

// If the mod menu is available, draw the toast notifications last,
// so they appear ontop of the mod menu
toaster.OnGUIFragment();

// Helper Functions for processing flags
string boolDesc(string flag, string name)
{
Expand Down

0 comments on commit 726346a

Please sign in to comment.