summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-04-04 06:25:09 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-04-04 06:25:09 -0400
commitd5322bc1bb789b974d00f8fcbe61e201c9b030b8 (patch)
treee4986676e597aab41116faedc44cbe9b66a87103 /StardewModdingAPI/Events
parentaf37ad15f4580de3f74fe1d3265abebefa323572 (diff)
downloadSMAPI-d5322bc1bb789b974d00f8fcbe61e201c9b030b8.tar.gz
SMAPI-d5322bc1bb789b974d00f8fcbe61e201c9b030b8.tar.bz2
SMAPI-d5322bc1bb789b974d00f8fcbe61e201c9b030b8.zip
graphics events for rendering
Diffstat (limited to 'StardewModdingAPI/Events')
-rw-r--r--StardewModdingAPI/Events/Graphics.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events/Graphics.cs b/StardewModdingAPI/Events/Graphics.cs
index 4e533f92..ed129137 100644
--- a/StardewModdingAPI/Events/Graphics.cs
+++ b/StardewModdingAPI/Events/Graphics.cs
@@ -43,6 +43,27 @@ namespace StardewModdingAPI.Events
public static event EventHandler OnPostRenderEvent = delegate { };
/// <summary>
+ /// Occurs before the GUI is drawn. Does not check for conditional statements.
+ /// </summary>
+
+ public static event EventHandler OnPreRenderGuiEventNoCheck = delegate { };
+ /// <summary>
+ /// Occurs after the GUI is drawn. Does not check for conditional statements.
+ /// </summary>
+
+ public static event EventHandler OnPostRenderGuiEventNoCheck = delegate { };
+ /// <summary>
+ /// Occurs before the HUD is drawn. Does not check for conditional statements.
+ /// </summary>
+
+ public static event EventHandler OnPreRenderHudEventNoCheck = delegate { };
+ /// <summary>
+ /// Occurs after the HUD is drawn. Does not check for conditional statements.
+ /// </summary>
+
+ public static event EventHandler OnPostRenderHudEventNoCheck = delegate { };
+
+ /// <summary>
/// Draws when SGame.Debug is true. F3 toggles this.
/// Game1.spriteBatch.Begin() is pre-called.
/// Do not make end or begin calls to the spritebatch.
@@ -85,6 +106,26 @@ namespace StardewModdingAPI.Events
OnPostRenderEvent.Invoke(sender, e);
}
+ internal static void InvokeOnPreRenderGuiEventNoCheck(object sender, EventArgs e)
+ {
+ OnPreRenderGuiEventNoCheck.Invoke(sender, e);
+ }
+
+ internal static void InvokeOnPostRenderGuiEventNoCheck(object sender, EventArgs e)
+ {
+ OnPostRenderGuiEventNoCheck.Invoke(sender, e);
+ }
+
+ internal static void InvokeOnPreRenderHudEventNoCheck(object sender, EventArgs e)
+ {
+ OnPreRenderHudEventNoCheck.Invoke(sender, e);
+ }
+
+ internal static void InvokeOnPostRenderHudEventNoCheck(object sender, EventArgs e)
+ {
+ OnPostRenderHudEventNoCheck.Invoke(sender, e);
+ }
+
internal static void InvokeResize(object sender, EventArgs e)
{
Resize.Invoke(sender, e);