public override void draw() { //dibujado del alert Globals.spriteBatch.Draw(Textures.white, new Rectangle((int)alertPos.X, (int)alertPos.Y, rectangle.Width, rectangle.Height), Color.White); //dibujado del boton acceptButton.draw(); cancelButton.draw(); //dibujado del nombre Globals.spriteBatch.DrawString(font, language.getMessage("gameMenuMarket_model") + equip.getName(), new Vector2(columns[0], rows[0]), Color.Black); //dibujado del precio Globals.spriteBatch.DrawString(font, equip.getDescription(), new Vector2(columns[0], rows[1]), Color.Black); //dibujado de la descripción Globals.spriteBatch.DrawString(font, language.getMessage("gameMenuMarket_price") + equip.getPrice(), new Vector2(columns[1], rows[0]), Color.Black); }
public override void Draw() { Globals.spriteBatch.Begin(); //dibujado de la interfaz foreach (Component c in components) { c.draw(); } Globals.spriteBatch.Draw(baseEquip.getTexture(), new Rectangle((int)columns[1], (int)rows[0], 200, 200), new Rectangle(0, 0, 32, 32), Color.White); Globals.spriteBatch.DrawString(Fonts.arial_14, language.getMessage("market_price") + baseEquip.getPrice() + " pln", new Vector2(columns[3], rows[1]), Color.White); Globals.spriteBatch.DrawString(Fonts.arial_12, spliceText(baseEquip.getDescription()), new Vector2(columns[2], rows[4]), Color.White); foreach (Component c in components) { if (c is Alert <MarketScreen> ) { c.draw(); } } Globals.spriteBatch.End(); }