Пример #1
0
        public MapOverlay()
        {
            pane1 = new OverlayPane();
            pane2 = new OverlayPane();
            pane3 = new OverlayPane();
            pane4 = new OverlayPane();

            drift = Vector2.Zero;

            overlays = new List<OverlayPane>();
        }
Пример #2
0
        public FadeInOverlay()
        {
            pane1 = new OverlayPane();
            pane2 = new OverlayPane();
            pane3 = new OverlayPane();
            pane4 = new OverlayPane();

            drift = Vector2.Zero;

            overlays = new List<OverlayPane>();

            lifeTimer = 0;
            startOpacity = this.opacity;
        }
Пример #3
0
        public LightFlashOverlay()
        {
            pane1 = new OverlayPane();
            pane2 = new OverlayPane();
            pane3 = new OverlayPane();
            pane4 = new OverlayPane();

            drift = Vector2.Zero;

            overlays = new List<OverlayPane>();

            flashFrames = new List<int>();
            flashFrames.Add(1100);

            lifeTimer = 0;
        }
Пример #4
0
        public MapOverlay(Vector2 drift, float opacity, Texture2D tex, int width, int height)
        {
            this.drift = drift;
            this.opacity = opacity;

            pane1 = new OverlayPane();
            pane1.TextureName = "pane1";
            pane1.FramesPerRow = 1;
            pane1.FrameDimensions = new Point(pane1.width, pane1.height);
            pane1.AddAnimation(new Animation("fog", 1, 1, 1, false));
            pane1.Texture = tex;
            pane1.position = new Vector2(0, 0);

            pane2 = new OverlayPane();
            pane2.TextureName = "pane2";
            pane2.FramesPerRow = 1;
            pane2.FrameDimensions = new Point(pane2.width, pane2.height);
            pane2.AddAnimation(new Animation("fog", 1, 1, 1, false));
            pane2.Texture = tex;
            pane2.position = new Vector2(width, 0);

            pane3 = new OverlayPane();
            pane3.TextureName = "pane3";
            pane3.FramesPerRow = 1;
            pane3.FrameDimensions = new Point(pane3.width, pane3.height);
            pane3.AddAnimation(new Animation("fog", 1, 1, 1, false));
            pane3.Texture = tex;
            pane3.position = new Vector2(0, height);

            pane4 = new OverlayPane();
            pane4.TextureName = "pane4";
            pane4.FramesPerRow = 1;
            pane4.FrameDimensions = new Point(pane4.width, pane4.height);
            pane4.AddAnimation(new Animation("fog", 1, 1, 1, false));
            pane4.Texture = tex;
            pane4.position = new Vector2(width, height);

            overlays = new List<OverlayPane>();
            overlays.Add(pane1);
            overlays.Add(pane2);
            overlays.Add(pane3);
            overlays.Add(pane4);
        }
Пример #5
0
        public FadeInOverlay(Vector2 drift, float opacity, Texture2D tex, int width, int height)
        {
            this.drift = drift;
            this.opacity = opacity;

            pane1 = new OverlayPane();
            pane1.TextureName = "pane1";
            pane1.FramesPerRow = 1;
            pane1.FrameDimensions = new Point(pane1.width, pane1.height);
            pane1.AddAnimation(new Animation("fog", 1, 1, 1, false));
            pane1.Texture = tex;
            pane1.position = Vector2.Zero;

            overlays = new List<OverlayPane>();
            overlays.Add(pane1);

            lifeTimer = 0;
            startOpacity = opacity;
        }
Пример #6
0
        public FadeOverlay(int duration, float startOpacity, float endOpacity, Texture2D tex, int width, int height)
        {
            this.drift = Vector2.Zero;
            this.opacity = 0.0f;

            pane1 = new OverlayPane();
            pane1.TextureName = "pane1";
            pane1.FramesPerRow = 1;
            pane1.FrameDimensions = new Point(pane1.width, pane1.height);
            pane1.AddAnimation(new Animation("fade", 1, 1, 1, false));
            pane1.Texture = tex;
            pane1.position = Vector2.Zero;

            overlays = new List<OverlayPane>();
            overlays.Add(pane1);

            lifeTimer = 0;
            this.startOpacity = startOpacity;
            this.endOpacity = endOpacity;
            this.duration = duration;
        }
Пример #7
0
        public LightFlashOverlay(Vector2 drift, float opacity, Texture2D tex, int width, int height, SoundEffect song)
        {
            this.drift = drift;
            this.opacity = opacity;

            pane1 = new OverlayPane();
            pane1.TextureName = "pane1";
            pane1.FramesPerRow = 1;
            pane1.FrameDimensions = new Point(pane1.width, pane1.height);
            pane1.AddAnimation(new Animation("fog", 1, 1, 1, false));
            pane1.Texture = tex;
            pane1.position = new Vector2(-9999, -9999);

            overlays = new List<OverlayPane>();
            overlays.Add(pane1);

            flashFrames = new List<int>();

            flashFrames.Add(1100);

            lifeTimer = 0;

            thunder = song;
        }