From 2dc46453569c9f4d01118cc1fcc117999ff624af Mon Sep 17 00:00:00 2001 From: Jean-David Moisan Date: Tue, 6 Feb 2024 14:12:16 -0500 Subject: [PATCH] Pop shouldn't be inherited for base class --- Source/FloatingWindow.cs | 3 +++ Source/MenuPanel.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Source/FloatingWindow.cs b/Source/FloatingWindow.cs index efe53e0..1501397 100644 --- a/Source/FloatingWindow.cs +++ b/Source/FloatingWindow.cs @@ -61,5 +61,8 @@ public override void Draw(GameTime gameTime) { return a; } + public static new void Pop() { + GuiHelper.CurrentIMGUI.Pop(); + } } } diff --git a/Source/MenuPanel.cs b/Source/MenuPanel.cs index 57e1b33..6840f25 100644 --- a/Source/MenuPanel.cs +++ b/Source/MenuPanel.cs @@ -81,5 +81,8 @@ protected override float ClampOffsetY(float y) { return a; } + public static new void Pop() { + GuiHelper.CurrentIMGUI.Pop(); + } } }