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