Beispiel #1
0
 public HitState(HighlightState highlightState, int pressedLength)
     : base(highlightState.Standard)
 {
     highlight = highlightState.Highlighter;
     counter   = 0;
     interval  = pressedLength;
 }
Beispiel #2
0
 public HitState(HighlightState highlightState)
     : base(highlightState.Standard)
 {
     highlight = highlightState.Highlighter;
     counter   = 0;
     interval  = 5;
 }
Beispiel #3
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;
        }
Beispiel #4
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;
        }