From 2cce7c2d27d0d678563d35c69f6879168bff53e4 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 27 Mar 2016 05:05:36 -0400 Subject: invocations are now internal --- StardewModdingAPI/Inheritance/SGame.cs | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'StardewModdingAPI/Inheritance') diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index 6f13812b..f5e11114 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -994,27 +994,27 @@ namespace StardewModdingAPI.Inheritance } } - if (Debug) - { - spriteBatch.Begin(); - spriteBatch.DrawString(smoothFont, "FPS: " + FramesPerSecond, Vector2.Zero, BgColour); + #endregion + } - int i = 1; - while (DebugMessageQueue.Any()) - { - string s = DebugMessageQueue.Dequeue(); - spriteBatch.DrawString(smoothFont, s, new Vector2(0, i * 12), BgColour); - i++; - } - GraphicsEvents.InvokeDrawDebug(null, null); - spriteBatch.End(); - } - else + if (Debug) + { + spriteBatch.Begin(); + spriteBatch.DrawString(smoothFont, "FPS: " + FramesPerSecond, Vector2.Zero, Color.CornflowerBlue); + + int i = 1; + while (DebugMessageQueue.Any()) { - DebugMessageQueue.Clear(); + string s = DebugMessageQueue.Dequeue(); + spriteBatch.DrawString(smoothFont, s, new Vector2(0, i * 12), Color.CornflowerBlue); + i++; } - - #endregion + GraphicsEvents.InvokeDrawDebug(null, EventArgs.Empty); + spriteBatch.End(); + } + else + { + DebugMessageQueue.Clear(); } } @@ -1231,7 +1231,7 @@ namespace StardewModdingAPI.Inheritance if (PreviousIsNewDay != newDay) { - TimeEvents.InvokeOnNewDay(PreviousDayOfMonth, dayOfMonth); + TimeEvents.InvokeOnNewDay(PreviousDayOfMonth, dayOfMonth, newDay); PreviousIsNewDay = newDay; } } -- cgit