Skip to content

Commit

Permalink
Use SolidBackgroundGuiSkin in ImguiWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Jan 4, 2024
1 parent fc658f5 commit 97a4d01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Shared.Core/Utilities/IMGUI/ImguiWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ protected ImguiWindow()
/// </summary>
protected virtual void OnGUI()
{
var skin = GUI.skin;
GUI.skin = IMGUIUtils.SolidBackgroundGuiSkin;

WindowRect = GUILayout.Window(WindowId, WindowRect, DrawContentsInt, Title);
if (WindowRect.width < MinimumSize.x)
{
Expand All @@ -44,6 +47,8 @@ protected virtual void OnGUI()
rect.height = MinimumSize.y;
WindowRect = rect;
}

GUI.skin = skin;
}

private void DrawContentsInt(int id)
Expand Down

0 comments on commit 97a4d01

Please sign in to comment.