summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/Graphics.cs
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-27 01:32:15 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-27 01:32:15 -0400
commitd127436533fba5168a89501f5b442b6575ed3723 (patch)
tree72284949854789a0d2b6a7461d8e76434c930004 /StardewModdingAPI/Events/Graphics.cs
parent12bf4fd843be26f89b5fe3415aeec3055c54d786 (diff)
downloadSMAPI-d127436533fba5168a89501f5b442b6575ed3723.tar.gz
SMAPI-d127436533fba5168a89501f5b442b6575ed3723.tar.bz2
SMAPI-d127436533fba5168a89501f5b442b6575ed3723.zip
fixes bugs
Diffstat (limited to 'StardewModdingAPI/Events/Graphics.cs')
-rw-r--r--StardewModdingAPI/Events/Graphics.cs13
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