public static void Draw() { backgroundImage.Draw(); EngineFont.DrawText(null, Classe[SelectedClasse], new Size2(450, 0), new Point(Position.X, Position.Y + 80), Color.DarkViolet, EngineFontStyle.Regular, FontDrawFlags.Center, false); EngineFont.DrawText(null, Texto[SelectedClasse], new Rectangle(Position.X + 30, Position.Y + 90, 390, 250), Color.White, EngineFontStyle.Regular, FontDrawFlags.WordBreak); // Desenha os botões for (int n = 0; n < button.Length; n++) { button[n].Draw(); } textbox.Draw(); textbox.DrawTextMesured(); person[0].Draw(SpriteManage.FindByID(6)); person[1].Draw(SpriteManage.FindByID(7)); person[2].Draw(SpriteManage.FindByID(9)); person[3].Draw(SpriteManage.FindByID(15)); person[4].Draw(SpriteManage.FindByID(10)); person[5].Draw(SpriteManage.FindByID(11)); person[6].Draw(SpriteManage.FindByID(12)); }
private static void DrawPlayer(int index, int x) { if (string.IsNullOrEmpty(PlayerData[index].Name)) { return; } if (PlayerData[index].Sprite <= 0) { return; } EngineCore.SpriteDevice.Begin(SpriteFlags.AlphaBlend); EngineCore.SpriteDevice.Draw(SpriteManage.FindByID(PlayerData[index].Sprite), new ColorBGRA(255, 255, 255, PlayerData[index].Transparency), new Rectangle(128, 0, 32, 32), new Vector3(0, 0, 0), new Vector3(position.X + 94 + x, position.Y + 110, 0)); EngineCore.SpriteDevice.End(); EngineFont.DrawText(null, PlayerData[index].Name, new Size2(127, 134), new Point(position.X + 49 + x, position.Y + 30), Color.DarkViolet, EngineFontStyle.Regular, FontDrawFlags.Center); EngineFont.DrawText(null, PlayerData[index].Class, new Size2(127, 134), new Point(position.X + 49 + x, position.Y + 100), Color.Coral, EngineFontStyle.Regular, FontDrawFlags.Center); EngineFont.DrawText(null, "Lv. " + PlayerData[index].Level, new Size2(127, 134), new Point(position.X + 49 + x, position.Y + 120), Color.RoyalBlue, EngineFontStyle.Regular, FontDrawFlags.Center); }