public static void Draw(SpriteBatch spriteBatch, SpriteFont font) { dummy.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.Augusta)); foreach (GUI_Element e in elements) { if (e.ElementTyp == Vars_Func.GUI_ElementTyp.BackgroundHUD) { //draw the button if (startButton.SpriteColor.A > 0) { startButton.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaBold2)); } if (burnedLogo.SpriteColor.A > 0) { burnedLogo.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.Augusta)); } // draw the fire logo if (fireLogo.SpriteColor.A > 0) { fireLogo.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.Augusta)); } } e.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.Augusta)); } }
public static void Draw(SpriteBatch spriteBatch, SpriteFont font) { if (!dontDraw && updateReady) { background.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaBold2)); headLine.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaText)); foreach (GUI_Element b in buttons) { b.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaText)); } } }
public static void Draw(SpriteBatch spriteBatch, SpriteFont font) { if (!dontDraw && updateReady) { background.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaBold2)); underLine.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaSmall)); foreach (GUI_Element b in buttons) { b.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaText)); } input.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaBold2), new Vector2(1366 / 2 - 100, 450 - 96 / 2 - 20)); } }
public void Draw(SpriteBatch spriteBatch, SpriteFont font) { if (visable) { if (topPole != null) { topPole.Draw(spriteBatch, font); } if (bottomPole != null) { bottomPole.Draw(spriteBatch, font); } if (leftChain != null) { leftChain.Draw(spriteBatch, font); } if (rightChain != null) { rightChain.Draw(spriteBatch, font); } foreach (GUI_Element c in childElements) { c.Draw(spriteBatch, font); } if (elementTyp == Vars_Func.GUI_ElementTyp.BottomHUD) { spriteBatch.Draw(Vars_Func.getGUI_ElementTextures(elementTyp), new Vector2(currentRectangle.X, currentRectangle.Y), Color.Red); //else spriteBatch.Draw(Vars_Func.getGUI_ElementTextures(elementTyp), new Vector2(rectangle.X, rectangle.Y), spriteColor); } else { spriteBatch.Draw(Vars_Func.getGUI_ElementTextures(elementTyp), currentRectangle, spriteColor); } spriteBatch.DrawString(font, text, new Vector2(currentRectangle.X + textXBonus, currentRectangle.Y + 2 + textYBonus), Color.Black); if (frameElement != null) { frameElement.Draw(spriteBatch, font); } } }
public static void Draw(SpriteBatch spriteBatch, SpriteFont font) { if (!dontDraw && updateReady) { dummy.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaBold2)); foreach (GUI_Element e in elements) { e.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaTextField)); } foreach (GUI_Element f in frames) { f.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaTextField)); } returnButton.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaText)); book.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaText)); headLine.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaHeadline)); backgroundFrame.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaBold2)); } }
public static void Draw(SpriteBatch spriteBatch, SpriteFont font) { if (!dontDraw && updateReady) { foreach (GUI_Element e in elements) { e.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaTextField)); } background.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaBold2)); foreach (GUI_Element f in frames) { f.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaTextField)); } foreach (GUI_Element b in buttons) { b.Draw(spriteBatch, Vars_Func.getGUI_Font(Vars_Func.GUI_Font.AugustaTextField)); } } }