コード例 #1
0
        public override void Draw()
        {
            base.Draw();

            BackgroundImg.Draw(m_SBatch, null, 0.0f);

            TabBackgroundImg1.Draw(m_SBatch, null, 0.5f);
            TabBackgroundImg2.Draw(m_SBatch, null, 0.5f);
            TabBackgroundImg3.Draw(m_SBatch, null, 0.5f);

            DescriptionTabBackgroundImg1.Draw(m_SBatch, null, 0.7f);
            DescriptionTabImage1.Draw(m_SBatch, null, 0.7f);

            EnterTabBackgroundImage1.Draw(m_SBatch, null, 0.5f);
            EnterTabImage1.Draw(m_SBatch, null, 0.5f);

            DescriptionTabBackgroundImg2.Draw(m_SBatch, null, 0.7f);
            DescriptionTabImage2.Draw(m_SBatch, null, 0.7f);

            EnterTabBackgroundImage2.Draw(m_SBatch, null, 0.5f);
            EnterTabImage2.Draw(m_SBatch, null, 0.5f);

            DescriptionTabBackgroundImg3.Draw(m_SBatch, null, 0.7f);
            DescriptionTabImage3.Draw(m_SBatch, null, 0.7f);

            EnterTabBackgroundImage3.Draw(m_SBatch, null, 0.5f);
            EnterTabImage3.Draw(m_SBatch, null, 0.5f);

            //DefaultHouseImg.Draw(m_SBatch, null, 0.0f);

            CreditsBackgroundImg.Draw(m_SBatch, null, 0.0f);
            //CityThumbnailBusyImg.Draw(m_SBatch, null, 0.0f);

            m_ExitDialog.Draw(m_SBatch, 0.9f);
        }
コード例 #2
0
ファイル: SASScreen.cs プロジェクト: Ne-Ice/Project-Dollhouse
        public override void Draw()
        {
            m_SBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, null, null,
                           RasterizerState.CullCounterClockwise, null, Resolution.getTransformationMatrix());

            base.Draw();

            BackgroundImg.Draw(m_SBatch, null, 0.0f);

            TabBackgroundImg1.Draw(m_SBatch, null, 0.5f);
            TabBackgroundImg2.Draw(m_SBatch, null, 0.5f);
            TabBackgroundImg3.Draw(m_SBatch, null, 0.5f);

            DescriptionTabBackgroundImg1.Draw(m_SBatch, null, 0.7f);
            DescriptionTabImage1.Draw(m_SBatch, null, 0.7f);

            EnterTabBackgroundImage1.Draw(m_SBatch, null, 0.5f);
            EnterTabImage1.Draw(m_SBatch, null, 0.5f);

            DescriptionTabBackgroundImg2.Draw(m_SBatch, null, 0.7f);
            DescriptionTabImage2.Draw(m_SBatch, null, 0.7f);

            EnterTabBackgroundImage2.Draw(m_SBatch, null, 0.5f);
            EnterTabImage2.Draw(m_SBatch, null, 0.5f);

            DescriptionTabBackgroundImg3.Draw(m_SBatch, null, 0.7f);
            DescriptionTabImage3.Draw(m_SBatch, null, 0.7f);

            EnterTabBackgroundImage3.Draw(m_SBatch, null, 0.5f);
            EnterTabImage3.Draw(m_SBatch, null, 0.5f);

            //DefaultHouseImg.Draw(m_SBatch, null, 0.0f);

            CreditsBackgroundImg.Draw(m_SBatch, null, 0.0f);
            //CityThumbnailBusyImg.Draw(m_SBatch, null, 0.0f);

            m_ExitDialog.Draw(m_SBatch, 0.9f);

            m_SBatch.End();

            foreach (UIElement Element in m_PResult.Elements.Values)
            {
                if (Element.NeedsClipping)
                {
                    RasterizerState RasterState = new RasterizerState();
                    RasterState.ScissorTestEnable = true;
                    RasterState.CullMode          = CullMode.CullCounterClockwiseFace;

                    m_SBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, null, null,
                                   RasterState, null, Resolution.getTransformationMatrix());

                    Element.Draw(m_SBatch, 0.5f);

                    m_SBatch.End();
                }
            }
        }