protected override void Initialize() { base.Initialize(); enterTransitionDuration = 200; exitTransitionDuration = 500; char separator = Path.AltDirectorySeparatorChar; string path = "Imagem" + separator + "Tutorial" + separator; tutorialImages = new Animated2DGameObject(goManager.R2D, path, "credits", 5, -1); tutorialImages.AdaptToFrame = true; Viewport screen = parent.GraphicsDevice.Viewport; nextBtn = new Button(goManager.R2D, new Rectangle(screen.Width - 142, screen.Height - 142, 100, 100)); nextBtn.mouseClicked += new Button.MouseClicked(nextBtn_mouseClicked); nextBtn.FilePath = path; nextBtn.BaseFileName = "next"; narratorLines = new string[5] { "tut1a", "tut1b", "tut2", "tut3", "tut5" }; goManager.AddObject(tutorialImages); goManager.AddObject(nextBtn); }
protected override void Initialize() { base.Initialize(); ab = new Animated2DGameObject(goManager.R2D, "Menu" + Path.AltDirectorySeparatorChar + "Loading" + Path.AltDirectorySeparatorChar, "loading", 4, 250); goManager.AddObject(ab); enterTransitionDuration = 300; exitTransitionDuration = 100; }
protected override void Initialize() { base.Initialize(); FreezeUpdatesBelow = true; FreezeGraphicsBelow = false; char separator = Path.AltDirectorySeparatorChar; clock = new Scalable2DGameObject(goManager.R2D); clock.AdaptToFrame = true; clock.BaseFileName = "clock"; clock.FilePath = "Imagem" + separator + "ui" + separator + "bate_bola" + separator + "espera" + separator; number = new Animated2DGameObject(goManager.R2D, clock.FilePath, "num", 3, -1); number.AdaptToFrame = true; goManager.AddObject(clock); goManager.AddObject(number); }