示例#1
0
        public OptionType(string stringText, string fontName, Color color, Vector2 stringVector, string rState, Rectangle highlightRect, string highlightName, TextAlignment textAlignment)
        {
            option             = new StandardState(new StringType(stringText, stringVector, color), fontName);
            highlighted        = new HighlightState(option, highlightRect, highlightName);
            menuLink           = rState;
            action             = OptionAction.next;
            alignment          = textAlignment;
            activateTransition = true;
            activateSelected   = true;

            state = OptionState.standard;
        }
示例#2
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;
        }
示例#3
0
 public HighlightState(StandardState state)
 {
     highlight = null;
     option    = state;
 }
示例#4
0
 public HighlightState(StandardState state, string highlightName)
 {
     highlight      = new HighlightType(new Rectangle());
     highlightAsset = highlightName;
     option         = state;
 }
示例#5
0
 public HitState(StandardState state)
     : base(state)
 {
     counter  = 0;
     interval = 5;
 }