private Menu(MenuInfo info) { this.info = info; Info = info; this.options = new List<MenuOptionCommandInfo>(); _screen = new NullTiledScreen(); }
public static MenuInfo FromXml(XElement node, string basePath) { var info = new MenuInfo(); info.Load(node, basePath); return info; }
public void Load(Project project, XElement node) { var menu = new MenuInfo(); LoadHandlerBase(menu, node, project.BaseDir); foreach (var keyNode in node.Elements("State")) { menu.States.Add(LoadMenuState(keyNode, project.BaseDir)); } project.AddMenu(menu); }
public void RemoveMenu(MenuInfo menu) { _menus.Remove(menu); }
public void AddMenu(MenuInfo menu) { _menus.Add(menu); }