public void draw(SpriteBatch sprite_batch)
        {
            if (visible)
            {
                Face1.draw(sprite_batch, -face_draw_vector());
                Face2.draw(sprite_batch, -face_draw_vector());

                sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
                // Window background
                Window1.draw(sprite_batch, -draw_vector());
                Window2.draw(sprite_batch, -draw_vector());
                // Text underline
                draw_bar(sprite_batch);

                draw_items(sprite_batch);
                // Cursor
                if (Grey_Cursor.visible)
                {
                    Grey_Cursor.draw(sprite_batch, -(loc + draw_vector()));
                }
                if (active)
                {
                    UICursor.draw(sprite_batch, -(loc + draw_vector()));
                }

                sprite_batch.End();
                if (is_help_active)
                {
                    Help_Window.draw(sprite_batch);
                }
            }
        }
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (DataDisplayed)
            {
                spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
                Background.draw(spriteBatch);
                FaceWindow.draw(spriteBatch);
                NameBanner.draw(spriteBatch);
                Name.draw(spriteBatch);
                spriteBatch.End();

                Rectangle faceClip = new Rectangle(
                    (int)Face.loc.X + 8 - (FaceWindow.width / 2),
                    (int)Face.loc.Y - (120 + FACE_CLIP_BOTTOM),
                    FaceWindow.width - 16, 120);
                Face.draw(spriteBatch, Vector2.Zero, faceClip);

                Window.draw(spriteBatch);

                if (FieldBaseButton != null && DataDisplayed)
                {
                    spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
                    FieldBaseButton.Draw(spriteBatch);
                    spriteBatch.End();
                }

                base.Draw(spriteBatch);
            }
        }
Exemple #3
0
        public virtual void Draw(SpriteBatch sprite_batch)
        {
            Vector2 data_draw_offset = loc + draw_vector();

            Face.draw(sprite_batch, -data_draw_offset);

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            draw_window(sprite_batch, data_draw_offset);
            if (ShowingDescription)
            {
                Item_Description.draw(sprite_batch, -data_draw_offset);
            }
            else
            {
                Type_Icon.draw(sprite_batch, -data_draw_offset);
                foreach (TextSprite label in Stat_Labels)
                {
                    label.draw(sprite_batch, -data_draw_offset);
                }
                foreach (RightAdjustedText stat in Stats)
                {
                    stat.draw(sprite_batch, -data_draw_offset);
                }
                foreach (Weapon_Triangle_Arrow arrow in Arrows)
                {
                    arrow.draw(sprite_batch, -data_draw_offset);
                }
            }
            sprite_batch.End();

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null);
            WTHelp.draw(sprite_batch, -data_draw_offset);
            sprite_batch.End();
        }
 protected override void draw_window(SpriteBatch sprite_batch)
 {
     base.draw_window(sprite_batch);
     if (Face != null)
     {
         Face.draw(sprite_batch, -(loc + draw_vector()));
     }
 }
Exemple #5
0
        protected override void draw_header(SpriteBatch sprite_batch)
        {
            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            Nameplate.draw(sprite_batch);
            Name.draw(sprite_batch);

            Stock_Banner.draw(sprite_batch);
            Owner.draw_multicolored(sprite_batch);
            SwitchButton.Draw(sprite_batch);
            sprite_batch.End();

            Face.draw(sprite_batch);
        }
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (DataDisplayed)
            {
                spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
                Background.draw(spriteBatch);
                FaceWindow.draw(spriteBatch);
                spriteBatch.End();

                Rectangle faceClip = new Rectangle(
                    (int)AuguryFace.loc.X + 8 - (FaceWindow.width / 2),
                    (int)AuguryFace.loc.Y - (96 + FACE_CLIP_BOTTOM),
                    FaceWindow.width - 16, 96);
                AuguryFace.draw(spriteBatch, Vector2.Zero, faceClip);

                TextBox.draw(spriteBatch);

                Window.draw(spriteBatch);
            }

            base.Draw(spriteBatch);
        }