public static void ShowResistStats() { EngineFont.DrawText(null, "Res. Atordoamento", X + 140, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistStun + "", X + 295, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Res. Paralisia", X + 140, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistParalysis + "", X + 295, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Res. Silêncio", X + 140, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistSilence + "", X + 295, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Res. Cegueira", X + 140, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistBlind + "", X + 295, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Res. Taxa Crítica", X + 140, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistCriticalRate + "", X + 295, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Res. Dano Crítico", X + 140, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistCriticalDamage + "", X + 295, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Res. Taxa Crít. Mág.", X + 140, Y + 420, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistMagicCriticalRate + "", X + 295, Y + 420, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Res. Dano Crít. Mág.", X + 140, Y + 440, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.ResistMagicCriticalDamage + "", X + 295, Y + 440, Color.White, EngineFontStyle.Regular); }
/// <summary> /// Realiza o desenho da janela /// </summary> public static void Draw() { BackgroundImage.Draw(); TextBox[0].MouseButtons(); TextBox[0].Draw(); TextBox[0].DrawTextMesured(); TextBox[1].MouseButtons(); TextBox[1].Draw(); TextBox[1].DrawTextMesured(); if (TextBox[0].Text.Length == 0) { if (TextBox[0].CursorEnabled == false) { EngineFont.DrawText(null, "username", TextBox[0].Size, new Point(TextBox[0].Position.X, TextBox[0].Position.Y + 4), new Color(255, 255, 255, 120), EngineFontStyle.Regular, FontDrawFlags.Center, false); } } if (TextBox[1].Text.Length == 0) { if (TextBox[1].CursorEnabled == false) { EngineFont.DrawText(null, "password", TextBox[1].Size, new Point(TextBox[1].Position.X, TextBox[1].Position.Y + 4), new Color(255, 255, 255, 120), EngineFontStyle.Regular, FontDrawFlags.Center, false); } } Button[0].Draw(); Button[1].Draw(); }
public static void ShowPhysicalStats() { EngineFont.DrawText(null, "Ataque", X + 140, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Attack + "", X + 295, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Precisão", X + 140, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Accuracy + "", X + 295, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Defesa", X + 140, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Defense + "", X + 295, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Evasão", X + 140, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Evasion + "", X + 295, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Bloqueio (Escudo)", X + 140, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Block + "", X + 295, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Bloqueio (Arma)", X + 140, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Parry + "", X + 295, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Taxa Crítica", X + 140, Y + 420, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.CriticalRate + "", X + 295, Y + 420, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Dano Crítico", X + 140, Y + 440, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.CriticalDamage + "", X + 295, Y + 440, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Velocidade Ataque", X + 140, Y + 460, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.AttackSpeed + "", X + 295, Y + 460, Color.White, EngineFontStyle.Regular); }
public static void ShowVitalStats() { EngineFont.DrawText(null, "MaxHP", X + 140, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MaxHP + "", X + 295, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "HP", X + 140, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.HP + "", X + 295, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "MaxMP", X + 140, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MaxMP + "", X + 295, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "MP", X + 140, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MP + "", X + 295, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "MaxSP", X + 140, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MaxSP + "", X + 295, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "SP", X + 140, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.SP + "", X + 295, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Regen HP", X + 140, Y + 420, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.RegenHP + "", X + 295, Y + 420, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Regen MP", X + 140, Y + 440, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.RegenMP + "", X + 295, Y + 440, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Regen SP", X + 140, Y + 460, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.RegenSP + "", X + 295, Y + 460, Color.White, EngineFontStyle.Regular); }
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)); }
/// <summary> /// Desenha os controles. /// </summary> public static void Draw() { background.Draw(); //Nome da classe EngineFont.DrawText(null, ClasseManager.Classes[selectedClasse].Name, new Size2(450, 0), new Point(position.X, position.Y + 80), Color.DarkViolet, EngineFontStyle.Regular, FontDrawFlags.Center, false); //Descrição EngineFont.DrawText(null, ClasseManager.Classes[selectedClasse].Description, 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(); //Desenha as 7 sprites na tela para escolha. classe[0].Draw(SpriteManager.FindByID(ClasseManager.Classes[selectedClasse].Sprite[0])); classe[1].Draw(SpriteManager.FindByID(ClasseManager.Classes[selectedClasse].Sprite[1])); classe[2].Draw(SpriteManager.FindByID(ClasseManager.Classes[selectedClasse].Sprite[2])); classe[3].Draw(SpriteManager.FindByID(ClasseManager.Classes[selectedClasse].Sprite[3])); classe[4].Draw(SpriteManager.FindByID(ClasseManager.Classes[selectedClasse].Sprite[4])); classe[5].Draw(SpriteManager.FindByID(ClasseManager.Classes[selectedClasse].Sprite[5])); classe[6].Draw(SpriteManager.FindByID(ClasseManager.Classes[selectedClasse].Sprite[6])); }
public static void ShowUniqueStats() { EngineFont.DrawText(null, "Concentração", X + 140, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Concentration + "", X + 295, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Poder de Cura", X + 140, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.HealingPower + "", X + 295, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Inimizade", X + 140, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Enmity + "", X + 295, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Supressão de Dano", X + 140, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.DamageSuppression + "", X + 295, Y + 360, Color.White, EngineFontStyle.Regular); }
public static void ShowElementalStats() { EngineFont.DrawText(null, "Elemento Fogo", X + 140, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.AttributeFire + "", X + 295, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Elemento Água", X + 140, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.AttributeWater + "", X + 295, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Elemento Terra", X + 140, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.AttributeEarth + "", X + 295, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Elemento Ar", X + 140, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.AttributeWind + "", X + 295, Y + 360, Color.White, EngineFontStyle.Regular); }
public static void Draw() { if (!Visible) { return; } if (GuildName.CompareTo(string.Empty) == 0) { return; } guild_panel.Draw(); button[0].Draw(); button[1].Draw(); button[2].Draw(); button[3].Draw(); button[4].Draw(); if (Common.Configuration.Language == Language.Portuguese) { EngineFont.DrawText(null, GuildName, new Size2(430, 0), new Point(posx, posy + 40), Color.BlueViolet, EngineFontStyle.Bold, FontDrawFlags.Left, true); EngineFont.DrawText(null, "Guild Master: " + GuildMaster, new Size2(430, 0), new Point(posx, posy + 100), Color.White, EngineFontStyle.Regular, FontDrawFlags.Left, true); EngineFont.DrawText(null, "Level: " + Level, posx + 60, posy + 120, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Experiência: " + Exp + " / " + ExpMax, posx + 190, posy + 120, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Ranking: " + Ranking, posx + 60, posy + 134, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Contribuição: " + Contribution, posx + 190, posy + 140, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Membros: " + Member + " / " + MemberMax, posx + 60, posy + 160, Color.Coral, EngineFontStyle.Regular); EngineFont.DrawText(null, "Online: " + Online, posx + 190, posy + 160, Color.Coral, EngineFontStyle.Regular); EngineFont.DrawText(null, "Mensagem: ", posx + 60, posy + 180, Color.CornflowerBlue, EngineFontStyle.Regular); EngineFont.DrawText(null, Announcement, posx + 145, posy + 180, Color.White, EngineFontStyle.Regular); } if (Common.Configuration.Language == Language.Japanese) { EngineFont.DrawText(null, GuildName, new Size2(365, 0), new Point(posx, posy + 40), Color.BlueViolet, EngineFontStyle.Bold, FontDrawFlags.Left, true); EngineFont.DrawText(null, "ギルドマスター: " + GuildMaster, new Size2(365, 0), new Point(posx, posy + 100), Color.White, EngineFontStyle.Regular, FontDrawFlags.Left, true); EngineFont.DrawText(null, "レベル: " + Level, posx + 35, posy + 11, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "経験値: " + Exp + " / " + ExpMax, posx + 170, posy + 110, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "ランキング: " + Ranking, posx + 35, posy + 130, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "ポイント: " + Contribution, posx + 170, posy + 130, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "メンバー: " + Member + " / " + MemberMax, posx + 35, posy + 150, Color.Coral, EngineFontStyle.Regular); EngineFont.DrawText(null, "オンライン: " + Online, posx + 170, posy + 150, Color.Coral, EngineFontStyle.Regular); EngineFont.DrawText(null, "メッセージ: ", posx + 35, posy + 180, Color.CornflowerBlue, EngineFontStyle.Regular); EngineFont.DrawText(null, Announcement, posx + 100, posy + 180, Color.White, EngineFontStyle.Regular); } }
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); }
public void Draw() { if (String.IsNullOrEmpty(IP)) { return; } if (BackgroundImage.InsideButton()) { index = 1; } else { index = 0; } BackgroundImage.Draw(texture[index]); EngineFont.DrawText(null, Name + " " + Region + " " + Status, new Size2(384, 0), new Point(Position.X, Position.Y + 30), color, EngineFontStyle.Regular, FontDrawFlags.Center, false); }
/// <summary> /// Desenha os controles. /// </summary> public void Draw() { if (String.IsNullOrEmpty(IP)) { return; } if (background.InsideButton()) { step = 1; } else { step = 0; } //muda a textura quando selecionado background.Draw(texture[step]); EngineFont.DrawText(null, Name + " " + Region + " " + Status, new Size2(384, 0), new Point(Position.X, Position.Y + 30), color, EngineFontStyle.Regular, FontDrawFlags.Center, false); }
public static void ShowMagicStats() { EngineFont.DrawText(null, "Ataque Mágico", X + 140, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MagicAttack + "", X + 295, Y + 300, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Precisão Mágica", X + 140, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MagicAccuracy + "", X + 295, Y + 320, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Defesa Mágica", X + 140, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MagicDefense + "", X + 295, Y + 340, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Resistência Mágica", X + 140, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MagicResist + "", X + 295, Y + 360, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Taxa Crítica Mágica", X + 140, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MagicCriticalRate + "", X + 295, Y + 380, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Dano Crítico Mágico", X + 140, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.MagicCriticalDamage + "", X + 295, Y + 400, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Velocidade Conjuração", X + 140, Y + 420, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.CastSpeed + "", X + 295, Y + 420, Color.White, EngineFontStyle.Regular); }
public static void Draw() { if (!Visible) { return; } background.Draw(); button[0].Draw(); button[1].Draw(); button[2].Draw(); button[3].Draw(); button[4].Draw(); button[5].Draw(); switch (showIndex) { case 0: ShowVitalStats(); break; case 1: ShowPhysicalStats(); break; case 2: ShowMagicStats(); break; case 3: ShowElementalStats(); break; case 4: ShowResistStats(); break; case 5: ShowUniqueStats(); break; } EngineFont.DrawText(null, "Character Status", new Size2(380, 20), new Point(X, Y + 18), Color.White, EngineFontStyle.Bold, FontDrawFlags.Center, true); EngineFont.DrawText(null, Client.PlayerLocal.Name + " Lv. " + Client.PlayerLocal.Level, new Size2(380, 20), new Point(X, Y + 35), Color.White, EngineFontStyle.Bold, FontDrawFlags.Center, true); EngineFont.DrawText(null, "Strenght", X + 70, Y + 70, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Strenght + "", X + 260, Y + 70, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Dexterity", X + 70, Y + 90, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Dexterity + "", X + 260, Y + 90, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Agility", X + 70, Y + 110, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Agility + "", X + 260, Y + 110, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Constitution", X + 70, Y + 130, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Constitution + "", X + 260, Y + 130, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Intelligence", X + 70, Y + 150, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Intelligence + "", X + 260, Y + 150, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Wisdom", X + 70, Y + 170, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Wisdom + "", X + 260, Y + 170, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Will", X + 70, Y + 190, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Will + "", X + 260, Y + 190, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Mind", X + 70, Y + 210, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Mind + "", X + 260, Y + 210, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Charisma", X + 70, Y + 230, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Charisma + "", X + 260, Y + 230, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, "Points", X + 70, Y + 250, Color.White, EngineFontStyle.Regular); EngineFont.DrawText(null, Client.PlayerLocal.Points + "", X + 260, Y + 250, Color.White, EngineFontStyle.Regular); }