public override void OnEnd() { if (MagicMenu != null) { MagicMenu.TweenOut(Drawer2D.Alignment.Right); MagicBar.TweenOut(Drawer2D.Alignment.Right); } }
public override void OnBegin() { if (MagicMenu != null) { MagicMenu.Destroy(); } // Todo: Reimplement //MagicMenu = new MagicMenu(Player.World.GUI, Player.World.GUI.RootComponent, Player) //{ // LocalBounds = new Rectangle(PlayState.Game.GraphicsDevice.Viewport.Width - 750, PlayState.Game.GraphicsDevice.Viewport.Height - 512, 700, 350), // DrawOrder = 3 //}; //MagicMenu.SpellTriggered += MagicMenu_SpellTriggered; //MagicMenu.IsVisible = true; //MagicMenu.LocalBounds = new Rectangle(GameState.Game.GraphicsDevice.Viewport.Width - 750, // GameState.Game.GraphicsDevice.Viewport.Height - 512, 700, 350); //if (MagicBar != null) //{ // MagicBar.Destroy(); //} //MagicBar = new ProgressBar(Player.World.GUI, Player.World.GUI.RootComponent, MagicMenu.Master.Spells.Mana / MagicMenu.Master.Spells.MaxMana) //{ // ToolTip = "Remaining Mana Pool", // LocalBounds = new Rectangle(GameState.Game.GraphicsDevice.Viewport.Width - 200, 68, 180, 32), // Tint = Color.Cyan, // DrawOrder = 4 //}; //MagicBar.OnUpdate += MagicBar_OnUpdate; //MagicBar.IsVisible = true; //MagicMenu.TweenIn(Drawer2D.Alignment.Right, 0.25f); //MagicBar.TweenIn(Drawer2D.Alignment.Right, 0.25f); }