public OptionSet Add <TKey, TValue>(string prototype, string description, OptionAction <TKey, TValue> action) { return(Add(new ActionOption <TKey, TValue>(prototype, description, action))); }
public OptionSet Add <TKey, TValue>(string prototype, OptionAction <TKey, TValue> action) { return(Add(prototype, null, action)); }
public OptionSet Add(string prototype, string description, OptionAction <string, string> action) { return(Add(prototype, description, action, false)); }
public OptionSet Add(string prototype, OptionAction <string, string> action) { return(Add(prototype, null, action)); }
public OptionType(string stringText, string fontName, Color color, Vector2 stringVector, OptionAction optionAction, bool activate, Rectangle highlightRect, string highlightName) { option = new StandardState(new StringType(stringText, stringVector, color), fontName); highlighted = new HighlightState(option, highlightRect, highlightName); menuLink = state.ToString(); action = optionAction; alignment = TextAlignment.right; activateTransition = activate; activateSelected = true; state = OptionState.standard; }