public static void loadColorFade(int duration, float startOpacity, float endOpacity, string color) { Texture2D fadeTex = singleton.screenManager.Game.Content.Load<Texture2D>(@"Textures\Maps\NonCombat\" + color); MapOverlay fade = new FadeOverlay(duration, startOpacity, endOpacity, fadeTex, ScreenManager.GraphicsDevice.Viewport.Width, ScreenManager.GraphicsDevice.Viewport.Height); fade.name = "colorfade"; mapOverlays.Add(fade); }
public static void loadFade(int duration, float startOpacity, float endOpacity) { Texture2D fadeTex = singleton.screenManager.Game.Content.Load<Texture2D>(@"Textures\GameScreens\FadeScreen"); MapOverlay fade = new FadeOverlay(duration, startOpacity, endOpacity, fadeTex, ScreenManager.GraphicsDevice.Viewport.Width, ScreenManager.GraphicsDevice.Viewport.Height); fade.name = "fade"; mapOverlays.Add(fade); }