/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> public override void Draw(SpriteBatch spriteBatch) { //todo alphablend //graphics // drawping the pictures #region ChaningBackgroundsObjectEngine backgroudn draw switch engine algorthim // spriteBatch.Draw(); if (backgroundchanger == 1) { spriteBatch.Draw(changingbackgrounds[0], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 2) { spriteBatch.Draw(changingbackgrounds[1], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 3) { spriteBatch.Draw(changingbackgrounds[2], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 4) { spriteBatch.Draw(changingbackgrounds[3], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 5) { spriteBatch.Draw(changingbackgrounds[4], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 6) { spriteBatch.Draw(changingbackgrounds[5], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 7) { spriteBatch.Draw(changingbackgrounds[6], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 8) { spriteBatch.Draw(changingbackgrounds[7], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 9) { spriteBatch.Draw(changingbackgrounds[8], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 10) { spriteBatch.Draw(changingbackgrounds[9], changingbackgroundsrect, Color.White); } if (ChosenBackground.background1 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[0], changingbackgroundsrect, Color.White); } if (ChosenBackground.background2 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[1], changingbackgroundsrect, Color.White); } if (ChosenBackground.background3 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[2], changingbackgroundsrect, Color.White); } if (ChosenBackground.background4 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[3], changingbackgroundsrect, Color.White); } if (ChosenBackground.background5 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[4], changingbackgroundsrect, Color.White); } if (ChosenBackground.background6 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[5], changingbackgroundsrect, Color.White); } if (ChosenBackground.background7 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[6], changingbackgroundsrect, Color.White); } if (ChosenBackground.background8 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[7], changingbackgroundsrect, Color.White); } if (ChosenBackground.background9 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[8], changingbackgroundsrect, Color.White); } if (ChosenBackground.background10 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[9], changingbackgroundsrect, Color.White); } #endregion buttonobject.Draw(spriteBatch); spriteBatch.Draw(whitebox, new Rectangle(0, 0, 800, 150), Color.Black); spriteBatch.DrawString(spritefont, "1.)" + place[0], new Vector2(0, 0), Color.White); spriteBatch.DrawString(spritefont, "2.)" + title[0], new Vector2(0, 20), Color.White); spriteBatch.DrawString(spritefont, "3.)" + "(312)567-5216", new Vector2(0, 40), Color.White); spriteBatch.DrawString(spritefont, "4.)" + website[0], new Vector2(0, 60), Color.White); spriteBatch.DrawString(spritefont, "5.)" + "The Academic Resource Center (ARC) is a comprehensive", new Vector2(0, 80), Color.White); spriteBatch.DrawString(spritefont, "center with a variety of free services for students and faculty.", new Vector2(0, 100), Color.White); // TODO: Add your drawing code here }
/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> public override void Draw(SpriteBatch spriteBatch) { //todo alphablend //graphics // drawping the pictures #region ChaningBackgroundsObjectEngine backgroudn draw switch engine algorthim // spriteBatch.Draw(); if (backgroundchanger == 1) { spriteBatch.Draw(changingbackgrounds[0], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 2) { spriteBatch.Draw(changingbackgrounds[1], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 3) { spriteBatch.Draw(changingbackgrounds[2], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 4) { spriteBatch.Draw(changingbackgrounds[3], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 5) { spriteBatch.Draw(changingbackgrounds[4], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 6) { spriteBatch.Draw(changingbackgrounds[5], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 7) { spriteBatch.Draw(changingbackgrounds[6], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 8) { spriteBatch.Draw(changingbackgrounds[7], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 9) { spriteBatch.Draw(changingbackgrounds[8], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 10) { spriteBatch.Draw(changingbackgrounds[9], changingbackgroundsrect, Color.White); } if (ChosenBackground.background1 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[0], changingbackgroundsrect, Color.White); } if (ChosenBackground.background2 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[1], changingbackgroundsrect, Color.White); } if (ChosenBackground.background3 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[2], changingbackgroundsrect, Color.White); } if (ChosenBackground.background4 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[3], changingbackgroundsrect, Color.White); } if (ChosenBackground.background5 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[4], changingbackgroundsrect, Color.White); } if (ChosenBackground.background6 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[5], changingbackgroundsrect, Color.White); } if (ChosenBackground.background7 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[6], changingbackgroundsrect, Color.White); } if (ChosenBackground.background8 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[7], changingbackgroundsrect, Color.White); } if (ChosenBackground.background9 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[8], changingbackgroundsrect, Color.White); } if (ChosenBackground.background10 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[9], changingbackgroundsrect, Color.White); } #endregion buttonobject.Draw(spriteBatch); spriteBatch.Draw(whitebox, new Rectangle(0, 0, 800, 150), Color.Black); spriteBatch.DrawString(spritefont, "1.)" + place[0], new Vector2(0, 0), Color.White); spriteBatch.DrawString(spritefont, "2.)" + title[0], new Vector2(0, 20), Color.White); spriteBatch.DrawString(spritefont, "3.)" + "(312)567-3120", new Vector2(0, 40), Color.White); spriteBatch.DrawString(spritefont, "4.)" + website[0], new Vector2(0, 60), Color.White); spriteBatch.DrawString(spritefont, "5.)" + "A complete line of books, supplies, architecture/engineering equipment, ", new Vector2(0, 80), Color.White); spriteBatch.DrawString(spritefont, "and IIT gifts and clothing are available in the IIT Main Campus, Barnes and Noble Bookstore.", new Vector2(0, 100), Color.White); // TODO: Add your drawing code here }
/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> public override void Draw(SpriteBatch spriteBatch) { //todo alphablend //graphics // drawping the pictures #region ChaningBackgroundsObjectEngine backgroudn draw switch engine algorthim // spriteBatch.Draw(); if (backgroundchanger == 1) { spriteBatch.Draw(changingbackgrounds[0], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 2) { spriteBatch.Draw(changingbackgrounds[1], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 3) { spriteBatch.Draw(changingbackgrounds[2], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 4) { spriteBatch.Draw(changingbackgrounds[3], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 5) { spriteBatch.Draw(changingbackgrounds[4], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 6) { spriteBatch.Draw(changingbackgrounds[5], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 7) { spriteBatch.Draw(changingbackgrounds[6], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 8) { spriteBatch.Draw(changingbackgrounds[7], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 9) { spriteBatch.Draw(changingbackgrounds[8], changingbackgroundsrect, Color.White); } else if (backgroundchanger == 10) { spriteBatch.Draw(changingbackgrounds[9], changingbackgroundsrect, Color.White); } if (ChosenBackground.background1 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[0], changingbackgroundsrect, Color.White); } if (ChosenBackground.background2 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[1], changingbackgroundsrect, Color.White); } if (ChosenBackground.background3 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[2], changingbackgroundsrect, Color.White); } if (ChosenBackground.background4 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[3], changingbackgroundsrect, Color.White); } if (ChosenBackground.background5 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[4], changingbackgroundsrect, Color.White); } if (ChosenBackground.background6 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[5], changingbackgroundsrect, Color.White); } if (ChosenBackground.background7 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[6], changingbackgroundsrect, Color.White); } if (ChosenBackground.background8 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[7], changingbackgroundsrect, Color.White); } if (ChosenBackground.background9 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[8], changingbackgroundsrect, Color.White); } if (ChosenBackground.background10 == chosenbackground) { spriteBatch.Draw(changingbackgrounds[9], changingbackgroundsrect, Color.White); } #endregion buttonobject.Draw(spriteBatch); spriteBatch.Draw(whitebox, new Rectangle(0, 0, 800, 150), Color.Black); spriteBatch.DrawString(spritefont, "1.)" + place[0], new Vector2(0, 0), Color.White); spriteBatch.DrawString(spritefont, "2.)" + title[0], new Vector2(0, 20), Color.White); spriteBatch.DrawString(spritefont, "3.)" + "(312)567-3700", new Vector2(0, 40), Color.White); spriteBatch.DrawString(spritefont, "4.)" + website[0], new Vector2(0, 60), Color.White); spriteBatch.DrawString(spritefont, "5.)" + "The Campus Information Center is your", new Vector2(0, 80), Color.White); spriteBatch.DrawString(spritefont, " one-stop shop for any questions you have regarding the university. The CIC is located right outside of the MTCC Commons.", new Vector2(0, 100), Color.White); spriteBatch.DrawString(spritefont, "have regarding the university. The CIC is located right outside of the MTCC Commons.", new Vector2(0, 120), Color.White); // TODO: Add your drawing code here }