public void Draw(SpriteBatch spriteBatch) { switch (vragen) { case Acties.vraag: quest.Draw(spriteBatch); break; case Acties.main: foreach (GUIElement element in waste) { element.Draw(spriteBatch); } spriteBatch.DrawString(font, (((80 * (wastelevel + 1)) * 2)).ToString(), new Vector2(360, 950), Color.Black, 0, new Vector2(0, 0), 2f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, wastelevel.ToString(), new Vector2(1000, 84), Color.White, 0, new Vector2(0, 0), 2f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "Biochemical W.: " + Biowaste.ToString(), new Vector2(128, 595), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "Chemical W.: " + Chemwaste.ToString(), new Vector2(1231, 595), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "Speed: " + ((wastelevel + 1) * 100).ToString() + "L/H", new Vector2(575, 740), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "Capacity: " + (Biowaste + Chemwaste).ToString() + "/" + (maxBio + maxChem).ToString(), new Vector2(575, 826), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "BW/CW: " + (Biowaste).ToString() + "/" + (Chemwaste).ToString(), new Vector2(575, 907), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "Speed: " + ((wastelevel + 2) * 100).ToString() + "L/H", new Vector2(1275, 740), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "Capacity: " + (Biowaste + Chemwaste).ToString() + "/" + (maxBio + maxChem + 320).ToString(), new Vector2(1275, 826), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); spriteBatch.DrawString(font, "CW/BW:" + Chemwaste.ToString() + "/" + Biowaste.ToString(), new Vector2(1275, 907), Color.Black, 0, new Vector2(0, 0), 1.7f, SpriteEffects.None, 0f); if (acties == Acties.error) { error.Draw(spriteBatch, Drawerror.Acties.waste); } break; default: break; } }