示例#1
0
        public override void Draw()
        {
            BackgroundImg.Draw(m_SBatch, null, 0.0f);
            TSOLogoImage.Draw(m_SBatch, null, 0.0f);
            BackButtonIndentImage.Draw(m_SBatch, null, 0.0f);

            foreach (UILabel Lbl in m_CreditsStrings)
            {
                //TODO: Figure out how to stop lines from displaying outside of the screen.
                if (Lbl.YPosition > m_CreditsArea.Position.Y && (Lbl.YPosition < m_CreditsArea.Size.Y))
                {
                    Lbl.Draw(m_SBatch, 0.3f);
                }
            }

            m_WillWrightDiag.Draw(m_SBatch, 0.4f);

            base.Draw();
        }
示例#2
0
        public override void Draw()
        {
            m_SBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, null, null,
                           RasterizerState.CullCounterClockwise, null, Resolution.TransformationMatrix());

            /*BackgroundImg.Draw(m_SBatch, null, 0.0f);
             * TSOLogoImage.Draw(m_SBatch, null, 0.0f);
             * BackButtonIndentImage.Draw(m_SBatch, null, 0.0f);*/

            foreach (UILabel Lbl in m_CreditsStrings)
            {
                //TODO: Clip the credits area!
                if (Lbl.YPosition > m_CreditsArea.Position.Y && (Lbl.YPosition < m_CreditsArea.Size.Y))
                {
                    Lbl.Draw(m_SBatch, 0.3f);
                }
            }

            //m_WillWrightDiag.Draw(m_SBatch, 0.4f);

            base.Draw();

            Manager.Device.Clear(Color.Black);

            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.TransformationMatrix());
             *
             *      Element.Draw(m_SBatch, 0.5f);
             *
             *      m_SBatch.End();
             *  }
             * }*/
        }