diff options
author | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-27 01:32:42 -0400 |
---|---|---|
committer | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-27 01:32:42 -0400 |
commit | 11ed5a612b3e8265cc9cba400094417bf4c26208 (patch) | |
tree | 72284949854789a0d2b6a7461d8e76434c930004 /StardewModdingAPI/Events | |
parent | 976bc6e2a96aba761c0feff414dd5f95dd4cd991 (diff) | |
parent | d127436533fba5168a89501f5b442b6575ed3723 (diff) | |
download | SMAPI-11ed5a612b3e8265cc9cba400094417bf4c26208.tar.gz SMAPI-11ed5a612b3e8265cc9cba400094417bf4c26208.tar.bz2 SMAPI-11ed5a612b3e8265cc9cba400094417bf4c26208.zip |
Merge pull request #68 from Zoryn4163/master
fixes bugs
Diffstat (limited to 'StardewModdingAPI/Events')
-rw-r--r-- | StardewModdingAPI/Events/Graphics.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events/Graphics.cs b/StardewModdingAPI/Events/Graphics.cs index a2e7fc40..2b91144a 100644 --- a/StardewModdingAPI/Events/Graphics.cs +++ b/StardewModdingAPI/Events/Graphics.cs @@ -8,6 +8,14 @@ namespace StardewModdingAPI.Events public static event EventHandler DrawTick = delegate { };
public static event EventHandler DrawInRenderTargetTick = 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.
+ /// If you are only trying to add debug information, use SGame.DebugMessageQueue in your Update loop.
+ /// </summary>
+ public static event EventHandler DrawDebug = delegate { };
+
public static void InvokeDrawTick()
{
try
@@ -29,5 +37,10 @@ namespace StardewModdingAPI.Events {
Resize.Invoke(sender, e);
}
+
+ public static void InvokeDrawDebug(object sender, EventArgs e)
+ {
+ DrawDebug.Invoke(sender, e);
+ }
}
}
\ No newline at end of file |