예제 #1
0
        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);
                }
            }
        }
예제 #2
0
 public void draw(SpriteBatch sprite_batch)
 {
     // Stats Window
     Stats_Window.draw(sprite_batch, -this.loc);
     Bonus_Bg.draw(sprite_batch, -this.loc);
     Bonuses.draw(sprite_batch, -this.loc);
 }
예제 #3
0
        protected override void draw_window(SpriteBatch sprite_batch)
        {
            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            // Scroll Bar
            if (Scrollbar != null)
            {
                Scrollbar.draw(sprite_batch);
            }
            Description_Window.draw(sprite_batch);
            Description.draw(sprite_batch);
            CancelButton.Draw(sprite_batch);
            Banner.draw(sprite_batch);
            Banner_Text.draw(sprite_batch);
            sprite_batch.End();
            // Labels
            sprite_batch.GraphicsDevice.ScissorRectangle = Scene_Map.fix_rect_to_screen(Data_Scissor_Rect);
            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, Scissor_State);
            OptionsNodes.Draw(sprite_batch, Offset);
            SettingsNodes.Draw(sprite_batch, Offset);

            if (on_soloanim && SoloAnim_Allowed)
            {
                Solo_Icon.draw(sprite_batch);
            }
            sprite_batch.End();

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            // Cursor
            OptionsCursor.draw(sprite_batch);
            SettingsCursor.draw(sprite_batch);
            // Page Arrows
            Up_Page_Arrow.draw(sprite_batch);
            Down_Page_Arrow.draw(sprite_batch);
            sprite_batch.End();
        }
예제 #4
0
        public override void draw(SpriteBatch sprite_batch, Vector2 draw_offset = default(Vector2))
        {
            // Stats Window
            Stats_Window.draw(sprite_batch, draw_offset);

            foreach (var node in StatusPageNodes
                     .Where(x => x is StatusPrimaryStatUINode))
            {
                (node as StatusPrimaryStatUINode).DrawGaugeBg(
                    sprite_batch, draw_offset);
            }

            // Item Window
            Items_Window.draw(sprite_batch, draw_offset);
            SiegeBg.draw(sprite_batch, draw_offset);

            // Window Design //
            Window_Design.draw(sprite_batch, draw_offset);

            // Draw Window Contents //
            foreach (var node in StatusPageNodes)
            {
                node.Draw(sprite_batch, draw_offset);
            }
        }
예제 #5
0
        public void draw(SpriteBatch sprite_batch)
        {
            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null);
            Black_Fill.draw(sprite_batch);
            Burst.draw(sprite_batch);
            sprite_batch.End();

            Rectangle scissor_rect = new Rectangle(Banner_Scissor_Rect.X +
                                                   (int)Stereoscopic_Graphic_Object.graphic_draw_offset(Config.RANKING_BANNER_DEPTH).X,
                                                   Banner_Scissor_Rect.Y, Banner_Scissor_Rect.Width, Banner_Scissor_Rect.Height);

            sprite_batch.GraphicsDevice.ScissorRectangle = Scene_Map.fix_rect_to_screen(scissor_rect);
            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp,
                               null, new RasterizerState {
                ScissorTestEnable = true
            });
            Banner.draw(sprite_batch);
            sprite_batch.End();

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null);
            Window_Img.draw(sprite_batch);
            if (Window_Img.visible)
            {
                foreach (TextSprite text in Text)
                {
                    text.draw(sprite_batch, -Window_Img.loc);
                }
            }
            Rank.draw(sprite_batch);
            White_Screen.draw(sprite_batch);
            sprite_batch.End();
        }
예제 #6
0
        public void draw(SpriteBatch sprite_batch)
        {
            // Stats Window
            Stats_Window.draw(sprite_batch, -loc);
            // Draw Window Contents //
            // Stats Window
            foreach (var stat in Stats)
            {
                stat.DrawGaugeBg(sprite_batch, -loc);
            }
            foreach (var stat in Stats)
            {
                stat.Draw(sprite_batch, -loc);
            }

            if (!is_ready)
            {
                foreach (Spark arrow in Arrows)
                {
                    arrow.draw(sprite_batch, -loc);
                }
                foreach (Stat_Up_Num stat_up in Stat_Gains)
                {
                    stat_up.draw(sprite_batch, -loc);
                }
                foreach (Spark swirl in Swirls)
                {
                    swirl.draw(sprite_batch, -loc);
                }
            }
        }
예제 #7
0
 public void draw(SpriteBatch sprite_batch)
 {
     // Stats Window
     if (Stats_Window != null)
     {
         Stats_Window.draw(sprite_batch, -this.loc);
     }
     Supports.draw(sprite_batch, -this.loc);
 }
예제 #8
0
 protected void draw_window(SpriteBatch sprite_batch)
 {
     if (Window_Img != null && Window_Img.visible)
     {
         // Window background
         Window_Img.draw(sprite_batch, -(loc + draw_vector()));
         // Text underline
         draw_bar(sprite_batch);
     }
 }
예제 #9
0
 protected override void draw_window(SpriteBatch sprite_batch)
 {
     if (Window != null)
     {
         sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
         Window.draw(sprite_batch);
         foreach (TextSprite label in Labels)
         {
             label.draw(sprite_batch);
         }
         sprite_batch.End();
     }
 }
예제 #10
0
 public void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null);
     Window_Img.draw(spriteBatch, -this.loc);
     if (Window_Img.visible)
     {
         foreach (TextSprite text in Text)
         {
             text.draw(spriteBatch, -this.loc);
         }
         foreach (var arrow in Arrows)
         {
             arrow.draw(spriteBatch, -this.loc);
         }
     }
     spriteBatch.End();
 }
예제 #11
0
        public override void draw(SpriteBatch sprite_batch, Vector2 draw_offset = default(Vector2))
        {
            // Bonuses Window
            Bonuses_Window.draw(sprite_batch, draw_offset);
            Bonus_Bg.draw(sprite_batch, draw_offset);
            // Supports Window
            Supports_Window.draw(sprite_batch, draw_offset);
            Support_Bg.draw(sprite_batch, draw_offset);
            // Window Design //
            Window_Design.draw(sprite_batch, draw_offset);
            // Draw Window Contents //
            // Bonuses Window

            // Supports Window
            Supports.draw(sprite_batch, draw_offset);

            // Draw Window Contents //
            foreach (var node in StatusPageNodes)
            {
                node.Draw(sprite_batch, draw_offset);
            }
        }
예제 #12
0
        protected virtual void draw_window(SpriteBatch sprite_batch)
        {
            Vector2 offset = this.loc + draw_vector();

            Window_Img.draw(sprite_batch, -offset);
        }
예제 #13
0
 protected virtual void draw_window(SpriteBatch sprite_batch, Vector2 data_draw_offset)
 {
     Info_Window.draw(sprite_batch, -data_draw_offset);
 }