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