summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Inheritance
diff options
context:
space:
mode:
authorMaurĂ­cio Gomes <mauricio.gomes@coderofworlds.com>2016-03-29 09:29:08 -0300
committerMaurĂ­cio Gomes <mauricio.gomes@coderofworlds.com>2016-03-29 09:29:08 -0300
commit9e1c1253d4c01c36b1af23381b23bc7a36a70363 (patch)
tree04d0e245a390bb3324bfab6843f943b692fc9269 /StardewModdingAPI/Inheritance
parent2b247c05ae770f18f0923cf2ef1799847568c577 (diff)
downloadSMAPI-9e1c1253d4c01c36b1af23381b23bc7a36a70363.tar.gz
SMAPI-9e1c1253d4c01c36b1af23381b23bc7a36a70363.tar.bz2
SMAPI-9e1c1253d4c01c36b1af23381b23bc7a36a70363.zip
made gui render events work when background is on
Diffstat (limited to 'StardewModdingAPI/Inheritance')
-rw-r--r--StardewModdingAPI/Inheritance/SGame.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs
index 1389ef22..4dc5f85f 100644
--- a/StardewModdingAPI/Inheritance/SGame.cs
+++ b/StardewModdingAPI/Inheritance/SGame.cs
@@ -867,7 +867,9 @@ namespace StardewModdingAPI.Inheritance
{
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null);
activeClickableMenu.drawBackground(spriteBatch);
+ GraphicsEvents.InvokeOnPreRenderGuiEvent(null, EventArgs.Empty);
activeClickableMenu.draw(spriteBatch);
+ GraphicsEvents.InvokeOnPostRenderGuiEvent(null, EventArgs.Empty);
spriteBatch.End();
if (!ZoomLevelIsOne)
{