Esempio n. 1
0
 public void Draw()
 {
     _spriteBatch.DrawString(
         _font,
         Text,
         ShortCuts.Vector2Point(Position),
         Color.White,
         0,
         Vector2.Zero,
         1,
         SpriteEffects.None,
         .2f);
 }
Esempio n. 2
0
 public void Draw()
 {
     SpriteBatch.DrawString(
         _font,
         ItemName,
         ShortCuts.Vector2Point(ItemPosition),
         _itemColor,
         0,
         Vector2.Zero,
         1,
         SpriteEffects.None,
         0.2f
         );
 }
Esempio n. 3
0
        public void Draw()
        {
            _spriteBatch.DrawString(
                _font,
                _displayText,
                ShortCuts.Vector2Point(_textPosition),
                Color.White,
                0,
                Vector2.Zero,
                1,
                SpriteEffects.None,
                0.2f);

            if (DrawMugshot)
            {
                _spriteBatch.Draw(
                    _dialog[_currentDialogue].MugShot,
                    ShortCuts.Vector2Point(_mugShotPosition),
                    new Rectangle(0, 0, CurrentMugShot.Width, CurrentMugShot.Height),
                    Color.White,
                    0,
                    Vector2.Zero,
                    1,
                    SpriteEffects.None,
                    0.2f);
            }

            _spriteBatch.DrawString(
                _font,
                CurrentName,
                new Vector2(83, 480),
                Color.White,
                0,
                Vector2.Zero,
                1,
                SpriteEffects.None,
                .2f);

            _spriteBatch.Draw(
                VariableProvider.WhiteTexture,
                new Vector2(80, 480),
                new Rectangle(0, 0, 640, 120),
                Color.Black,
                0,
                Vector2.Zero,
                1f,
                SpriteEffects.None,
                0.3f);
        }