Skip to content

Commit

Permalink
Merge pull request #94 from AnnulusGames/fix-treemap-color
Browse files Browse the repository at this point in the history
Fix: GUI.color not reverting correctly
  • Loading branch information
AnnulusGames authored Jun 21, 2024
2 parents c8348c6 + 48f602a commit 84fb715
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public override void OnGUI(int instanceID, Rect selectionRect)
if (gameObject == null) return;

var settings = AlchemySettings.GetOrCreateSettings();

var tempColor = GUI.color;

if (settings.ShowTreeMap)
{
selectionRect.width = 14;
Expand Down Expand Up @@ -130,7 +133,7 @@ public override void OnGUI(int instanceID, Rect selectionRect)
else break;
}

GUI.color = Color.white;
GUI.color = tempColor;
}
}
}
Expand Down

0 comments on commit 84fb715

Please sign in to comment.