diff options
author | Carl <slxxls92@gmail.com> | 2016-03-30 20:16:31 +0100 |
---|---|---|
committer | Carl <slxxls92@gmail.com> | 2016-03-30 20:16:31 +0100 |
commit | d38e8ac422907e8c43ee99c6036eb8dc356df98a (patch) | |
tree | 5ff2bbc12c2f9c8e886f549d694665550b8ebd8f /StardewModdingAPI/Inheritance | |
parent | 5975bbc3c2c68cdfeb36e7469ff4b3506c69cbaa (diff) | |
parent | 9e1c1253d4c01c36b1af23381b23bc7a36a70363 (diff) | |
download | SMAPI-d38e8ac422907e8c43ee99c6036eb8dc356df98a.tar.gz SMAPI-d38e8ac422907e8c43ee99c6036eb8dc356df98a.tar.bz2 SMAPI-d38e8ac422907e8c43ee99c6036eb8dc356df98a.zip |
Merge pull request #85 from speeder/bugfix_guievents_on_bg
made gui render events work when background is on
Diffstat (limited to 'StardewModdingAPI/Inheritance')
-rw-r--r-- | StardewModdingAPI/Inheritance/SGame.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index ede5b5c8..ccd3846c 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)
{
|