Esempio n. 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);
                }
            }
        }