Пример #1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.DrawString(
         font,
         Text,
         ShortcutProvider.Vector2Point(Position),
         Color.White,
         0,
         Vector2.Zero,
         1,
         SpriteEffects.None,
         .2f);
 }
Пример #2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.DrawString(
         font,
         ItemName,
         ShortcutProvider.Vector2Point(ItemPosition),
         itemColor,
         0,
         Vector2.Zero,
         1,
         SpriteEffects.None,
         0.2f
         );
 }
Пример #3
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            spriteBatch.DrawString(
                FontProvider.GetFont(fontName),
                confirmText + GameVariableProvider.SaveState.PlayerName + "?",
                ShortcutProvider.Vector2Point(menuItems[0].ItemPosition - itemOffset - new Vector2(ShortcutProvider.GetFontCenter(fontName, confirmText + GameVariableProvider.SaveState.PlayerName + "?").X, 0)),
                Color.White,
                0,
                Vector2.Zero,
                1,
                SpriteEffects.None,
                .2f);
        }
Пример #4
0
        public static void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(
                font,
                displayText,
                ShortcutProvider.Vector2Point(textPosition),
                Color.White,
                0,
                Vector2.Zero,
                1,
                SpriteEffects.None,
                0.2f);

            spriteBatch.Draw(
                dialog[currentDialogue].MugShot,
                ShortcutProvider.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);
        }
        public override void Draw(GameObject obj, SpriteBatch spriteBatch)
        {
            SpriteEffects effects = SpriteEffects.None;

            if (flipped)
            {
                effects = SpriteEffects.FlipHorizontally;
            }

            spriteBatch.Draw(
                animations[currentAnimation].Texture,
                ShortcutProvider.Vector2Point(obj.Position),
                animations[currentAnimation].FrameRectangle,
                Color.White,
                0,
                Vector2.Zero,
                1,
                effects,
                drawDepth);
        }
Пример #6
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (Confirmation)
            {
                confirmDialog.Draw(spriteBatch);
                return;
            }

            base.Draw(spriteBatch);

            spriteBatch.DrawString(
                FontProvider.GetFont(fontName),
                TextBuffer,
                ShortcutProvider.Vector2Point(menuLabels[0].Position + new Vector2(FontProvider.GetFont(fontName).MeasureString(menuLabels[0].Text).X + 14, 0)),
                Color.White,
                0,
                Vector2.Zero,
                1,
                SpriteEffects.None,
                .2f);
        }