Example #1
0
        public static void Draw()
        {
            // Imagem de (janela) fundo
            backgroundImage.Draw();

            //  Imagem de (janela) fundo personagem
            for (int n = 0; n < charBackgroundImage.Length; n++)
            {
                //Desenha a janela de fundo do personagem
                charBackgroundImage[n].Execute();
            }

            // Desenha o objeto selecionado
            selectedBackground[SelectedIndex].Draw();

            // Desenha a animação de fundo do personagem
            DrawCastAnim(SelectedIndex * 127);

            // Personagem
            for (int n = 0; n < PlayerData.Length; n++)
            {
                //Desenha a janela de fundo do personagem
                DrawPlayer(n, n * 127);
            }

            // Botoões
            for (int n = 0; n < button.Length; n++)
            {
                button[n].Draw();
            }

            // Desenha a animação para entrar no jogo
            DrawWind(SelectedIndex * 125);
        }
        /// <summary>
        /// Desenha os controles.
        /// </summary>
        public static void Draw()
        {
            //Imagem de (janela) fundo
            background.Draw();

            //Desenha a janela de fundo do personagem.
            for (int n = 0; n < MAX_OBJECT; n++)
            {
                charbackground[n].Execute();
            }                                                                     //chama o método do mouse e draw.

            //Desenha o objeto selecionado
            selected_background[SelectedIndex].Draw();

            //Desenha a animação de fundo do personagem
            DrawCastAnim(SelectedIndex * 127);

            //Desenha o personagem
            for (int n = 0; n < MAX_OBJECT; n++)
            {
                DrawPlayer(n, n * 127);
            }

            //Botões
            for (int n = 0; n < MAX_OBJECT; n++)
            {
                button[n].Draw();
            }
        }
Example #3
0
        /// <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 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));
        }
Example #5
0
        /// <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]));
        }
        /// <summary>
        /// Desenha os controles.
        /// </summary>
        public static void Draw()
        {
            if (!Visible)
            {
                return;
            }

            background.Draw();
            button[0].Draw();
            button[1].Draw();
            button[2].Draw();
            button[3].Draw();
        }
        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);
            }
        }
Example #8
0
        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);
        }