/// <summary> /// Add a selectable menu options /// </summary> /// <param name="name">The name of the option displayed</param> /// <param name="action">The action that should be performed when pressed</param> public void AddMenuEntry(string name, Action action) { MenuOption mo = new MenuOption(name, RM.Font(Font.MenuFont)); mo.Action = action; options.Add(mo); fontHeight = (int)mo.Size.Y + 8; optionsHeight += fontHeight; }
/// <summary> /// Add header text /// </summary> /// <param name="text">The text</param> public void AddHeader(string text) { MenuOption mo = new MenuOption(text, RM.Font(Font.MenuFont)); header.Add(mo); }