示例#1
0
 public override void Draw(Scene scene, Vector2 pos)
 {
     if (FlickerTime < 0.5f)
     {
         scene.DrawSpriteExt(Sprite, 0, pos - Sprite.Middle, Sprite.Middle, Angle, new Vector2(Scale * (float)FlickerLerp(1, FlickerScale, ScaleFlickerTime)), SpriteEffects.None, Color, 0);
     }
 }
示例#2
0
        public override void Draw(Scene scene, Vector2 pos)
        {
            int   subImage = scene.AnimationFrame(Sprite, Frame.Slide);
            float size     = Size;

            scene.DrawSpriteExt(Sprite, subImage, pos - Sprite.Middle, Sprite.Middle, Angle, new Vector2(size), SpriteEffects.None, Color, 0);
        }
示例#3
0
 public override void DrawIcon(Scene scene, Vector2 pos, DialogParams parameters, float slide)
 {
     scene.DrawSpriteExt(Sprite, 0, pos, Sprite.Middle, 0, Vector2.One, Microsoft.Xna.Framework.Graphics.SpriteEffects.None, parameters.Color, 0);
 }