protected void DrawTime(SpriteBatch spriteBatch, Core.Calendar calendar) { spriteBatch.Begin(samplerState: SamplerState.PointClamp, blendState: BlendState.AlphaBlend); spriteBatch.DrawString(uiFont, "Year: " + calendar.CurrentYear, new Vector2(5, 1), Color.White); spriteBatch.DrawString(uiFont, "Day: " + calendar.CurrentDay, new Vector2(5, 1 + uiFont.LineSpacing), Color.White); spriteBatch.DrawString(uiFont, "Season: " + calendar.CurrentDisplaySeason, new Vector2(5, 1 + uiFont.LineSpacing * 2), Color.White); spriteBatch.DrawString(uiFont, calendar.DisplayTime, new Vector2(5, 1 + uiFont.LineSpacing * 3), Color.White); spriteBatch.End(); }
public void Update(SpriteBatch spriteBatch, Core.Calendar calendar, GameTime gameTime) { // Draw the UI DrawTime(spriteBatch, calendar); DrawPlayerInfo(spriteBatch, null); }