Exemple #1
0
        void menu_MenuChanged(object sender, EventArgs e)
        {
            XmlManager<Menu> xmlManager = new XmlManager<Menu>();
            menu.UnloadContent();
            menu = xmlManager.Load(menu.ID);
            menu.LoadContent();
            menu.MenuChanged += menu_MenuChanged;
            menu.Transition(0.0f);

            foreach (var menuItem in menu.Items)
            {
                menuItem.Icon.StoreEffects();
                menuItem.Icon.ActivateEffect("FadeEffect");
            }
        }
Exemple #2
0
 public MenuManager()
 {
     menu = new Menu();
     menu.MenuChanged += menu_MenuChanged;
 }