Beispiel #1
0
        private void _menu_OnMenuChange()
        {
            XmlManager<Menu> xmlMenuManager = new XmlManager<Menu>();
            _menu.OnMenuChange = null;
            _menu.UnloadContent();
            _menu = xmlMenuManager.Load(_menu.ID);
            _menu.LoadContent();
            _menu.OnMenuChange = _menu_OnMenuChange;
            _menu.Transition(0.0f);

            //foreach (MenuItem item in _menu.Items)
            //{
            //    item.Image.StoreEffects();
            //    item.Image.ActivateEffect("FadeEffect");
            //}
        }
Beispiel #2
0
 public MenuManager()
 {
     _menu = new Menu();
     _menu.OnMenuChange = _menu_OnMenuChange;
 }