Exemple #1
0
        public virtual void Select()
        {
            if (SubMenu != null)
            {
                _state = EntryState.Selected;
                Color  = ParentMenu.Selected;
                SubMenu.ActivateScreen();
                ParentMenu.ScreenManager.AddScreen(SubMenu);
                ParentMenu.FreezeScreen();
                ParentMenu.HideMouse();
                SubMenu.EnableMouse(ParentMenu.MouseTexture);
            }

            var handler = Selected;

            if (handler != null)
            {
                _state = EntryState.Selected;
                Color  = ParentMenu.Selected;
                Selected(this, EventArgs.Empty);
            }
        }