예제 #1
0
 public OptionSet Add <TKey, TValue>(string prototype, string description, OptionAction <TKey, TValue> action)
 {
     return(Add(new ActionOption <TKey, TValue>(prototype, description, action)));
 }
예제 #2
0
 public OptionSet Add <TKey, TValue>(string prototype, OptionAction <TKey, TValue> action)
 {
     return(Add(prototype, null, action));
 }
예제 #3
0
 public OptionSet Add(string prototype, string description, OptionAction <string, string> action)
 {
     return(Add(prototype, description, action, false));
 }
예제 #4
0
 public OptionSet Add(string prototype, OptionAction <string, string> action)
 {
     return(Add(prototype, null, action));
 }
예제 #5
0
        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;
        }